The easiest way to ship python applications.
Project description
packaged
The easiest way to ship python applications.
Installation
pip install packaged
Usage
packaged <source_directory> <output_file> <build_command> <startup_command>
Such as:
packaged path/to/project my_project.bin 'pip install .' 'python -m your_package'
Example
There's an example
folder where you can test this:
pip install packaged
cd example
packaged . curve 'pip install -r requirements.txt' 'python bubble_sort_curve.py'
This produces a ./curve
binary with:
- Python 3.11
matplotlib
numba
llvmlite
pillow
... and is directly executable. You can send this binary file to another machine with the same OS and architecture, and it will run the same.
Local Development / Testing
- Create and activate a virtual environment
- Run
pip install -r requirements-dev.txt
to do an editable install - Run
pytest
to run tests
Type Checking
Run mypy .
Create and upload a package to PyPI
Make sure to bump the version in setup.cfg
.
Then run the following commands:
rm -rf build dist
python setup.py sdist bdist_wheel
Then upload it to PyPI using twine:
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
packaged-0.1.0.tar.gz
(4.8 kB
view hashes)