So you’ve made some cool new improvements to your Python package and you want to deploy a new release. It’s just a few easy steps.
- After your package modules have been updated, you have to update the version number in your
__init__.pyfile. The format is major.minor.micro depending on what you changed. For example, a small bug fix to v0.2.3 would increment to v0.2.4 while a new feature might increment to v0.3.0. - Then make sure all the changes are committed and pushed to Github.
- Build with
python setup.py sdist - Twine with
twine upload dist/compressed_package_filename
That’s it!