To generate a release:
-
Generate a summary of all the commits since the last release
git log $LAST_RELEASE_TAG..HEAD
-
Tag version number and summarize changes in the tag message
git tag -a vX.Y.Z
-
Push the tag upstream
git push upstream vX.Y.Z
or
git push upstream --tags
-
Create the distributions
rm -rf dist/* python setup.py sdist bdist_wheel
-
Push to PyPI
twine upload dist/*