generated from IBM/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 15
Publishing a new version
Dov Murik edited this page Jun 18, 2024
·
6 revisions
This is the process maintainers need to follow to publish a new sev-snp-measure version.
- Make sure you have a GPG key which is registered with your github account.
- Your
.git/config
should have something like:[user] name = ... email = ... signingkey = ... # the gpg key ID [gpg] program = /path/to/bin/gpg
- Make sure you are part of the sev-snp-measure PyPi project, and get a PyPi API token.
- Install Python dependencies needed for the publishing process:
pip install build twine
- Pull latest
main
. - Make sure
CHANGELOG.md
is up-to-date with items under the top-mostUnreleased
section. If not, add the relevant items and push tomain
. - Make the following code changes (see example in commit c3bf176d5):
-
CHANGELOG.md
: ChangeUnreleased
to the new version number and release date, and create a newUnreleased
section on top. -
setup.cfg
: Update version -
sevsnpmeasure/cli.py
: Update version
-
- Commit these changes with commit message:
Version X.Y.Z Signed-off-by: First Last <[email protected]>
- Push to main.
- Tag the new version (it will ask you for the GPG passphrase):
git tag vX.Y.Z -a -s -m "Version X.Y.Z"
- Push the tag:
git push --tags
- In the Releases page, create a new release from the new vX.Y.Z tag. In the description, paste the relevant section from
CHANGELOG.md
. - Create the Python packages:
make build_packages
- Publish the packages to PyPi:
When it asks for username, literally type
make publish_packages
__token__
; for password, paste your PyPi API token (which starts withpypi-
). - Check the project page in PyPi and make sure it shows the new published version.
- If there are any open/closed issues in sev-snp-measure that this release fixes, open them and add a comment mentioning that the issue should be solved by X.Y.Z which was just released on PyPi.