How to upload a new package release into PyPi
-
List your current tags
git tag -
tag the current X.Y.Z release. We use the annotated tags to upload them to GitHub and mark releases there as well.
- If it is a bug, then increment Z.
- If it is a minor change (new feature), then increment Y
git tag -a X.Y.Z -
Register the new release in PyPi
python setup.py register -
Package and Upload at the same time
sudo python setup.py sdist upload