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 17, 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 = 1714AC8454ADF3A3 [gpg] program = /path/to/bin/gpg
- Make sure you are part of the sev-snp-measure PyPi project, and get a PyPi API token.
- 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
- 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-
).