-
Ensure that the help output in the README file is up-to-date with any changes.
-
Generate a summary of all the commits since the last release
git log $LAST_RELEASE_TAG..HEAD
-
Set the release version in
setup.py
(remove the.dev0
tag if applicable) and commit the version number change. -
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
python setup.py sdist bdist_wheel
-
Upload the distributions
twine upload dist/*
-
If working on master, bump up to the next anticipated version with a
.dev0
tag and commit
Backporting
-
Checkout the tag for the version to backport onto and create a new branch
git checkout vX.Y.Z git checkout -b backport
-
Cherry pick the relevant commits onto the
backport
branch -
Goto #1 for main release flow
-
Remove the
backport
branch