The instructions below detail how to finalise a new release
for version {X.Y.Z}
.
In all commands below that placeholder should be replaced with an actual release version.
-
Create a new branch on which to update the OS packaging files:
git checkout -b finalise-{X.Y.Z}
-
Bump the version in the Python package
ciecplib/__init__.py
file -
Bump versions and add changelog entries in OS packaging files:
debian/changelog
rpm/python-ciecplib.spec
and then commit the changes to the branch.
-
Push this branch to your fork:
git push -u origin finalise-{X.Y.Z}
-
Open a merge request on GitHub to finalise the packaging update.
-
Draft release notes by looking through the merge requests associated with the relevant milestone on GitHub.
-
Create an annotated, signed tag in
git
using the release notes as the tag message:git tag --sign {X.Y.Z}
-
Push the tag to the project on GitLab:
git push -u upstream {X.Y.Z}
-
Create a Release on GitLab, copying the same release notes from the tag message.
Make sure and correctly associated the correct Tag to the Release.
-
Generate a new source distribution and binary wheel for this release:
git clean -dfX python -m build --sdist --wheel
-
Upload these distributions to PyPI:
python -m twine upload --sign dist/ciecplib-{X.Y.Z}*