Releasing a new version of the library - staglibrary/stagpy GitHub Wiki
The process for releasing a new version of the library is as follows.
- Create a new branch named
release-X.Y.Z
- Update the
VERSION
string insetup.py
- Update the 'PROJECT_NUMBER' in
docs/Doxyfile
- Update the 'VERSION' definition in
stag/stag_internal.i
- Update the changelog with the release date
- Commit the changes and push the branch to GitHub
- Merge the release branch into the main one
- In GitHub, on the main page click 'create new release' and fill in the details:
- create a new tag named
vX.Y.Z
- release name
Version X.Y.Z
- Copy the changelog section corresponding to this release.
- Add a link to the documentation for the release. See previous releases for the format.
- Creating the new release will trigger a GitHub action which builds and uploads the package to PyPI. Make sure this completes successfully (will take around 30mins).
- Create a new branch named
docs-X.Y.Z
from the main branch. The will trigger the docs to be updated on the STAG website. - On the stag library website github repo, update the
docs/python/index.html
anddocs/python/version.txt
files to reference the latest version. - If this release required any tweaking to the STAG C++ code, make sure that any changes are made and checked-in to the main branch of STAG C++.
Take a break to reward yourself :)