Registering the package
To register the package and deploy the initial release to PyPI, do:
python setup.py register -r pypi
python setup.py sdist upload -r pypi
Deploying a new release
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 setup.py file. 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