Github PyPi release workflow will push tagged commits to PyPI. Here are the steps:
- Run
scripts/prepare_release.sh
./scripts/prepare_release.sh
-
Complete the changes in
doc/changes.rst
:- Replace
Version ?.?.?
with the release version. - Organize commits into sub-sections like "New features" or "Bug Fixes", see earlier releases for inspiration.
- Replace
-
Commit these changes and create a pull request.
-
After merging those changes into
main
branch, create a new Github release:- Choose the merge commit in
main
. - Choose a new tag with release version prefixed with
v
, e.g.v2.2.0
. - Add the same release note from
doc/changes.rst
.
Creating the release also creates the tag chosen, which will trigger the PyPi release workflow.
- Choose the merge commit in
-
Once the PyPi release workflow completes, a new version will appear on PyPI shortly.