Prerequisites: python3 -m pip install --user --upgrade setuptools wheel twine
- Make sure the correct versions of the required packages are listed in
setup.py
underinstall_requires
. - Increment the
version
insetup.py
. - Run
python3 setup.py sdist bdist_wheel
to generate the dist files. - Upload to PyPI using
python3 -m twine upload dist/*
. Login using__token__
as the username and the API token as the password. - Create a new release on GitHub.
- https://stackoverflow.com/a/49684835
- https://packaging.python.org/tutorials/packaging-projects/
- https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html
Updates to the snap are built automatically once pushed to GitHub.