Skip to content

Commit

Permalink
Update release instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Jun 8, 2022
1 parent dfdae68 commit 1dd112a
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions RELEASE.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
$ git checkout -b release/x.y.z
* Update the version in fido/__init__.py and make sure the NEWS file has an
entry for it, and the correct release date.
* Update the debian/changelog file with the correct version.
* Update the version in pyproject.toml and fido/__init__.py and make sure the
NEWS file has an entry for it, and the correct release date.
* Commit the changes, and push the new branch.
$ git push -u origin release/x.y.z
Expand All @@ -18,37 +17,32 @@
* Build the release:
$ python setup.py sdist
$ poetry build
* Sign the release, creating both binary and ascii signatures:
* Sign the release:
$ gpg --detach-sign -a dist/fido2-x.y.z.tar.gz
$ gpg --output dist/fido2-x.y.z.tar.gz.sig --dearmor dist/fido2-x.y.z.tar.gz.asc
$ gpg --detach-sign -a dist/fido2-x.y.z-py3-none-any.whl
* Upload the release to PyPI:
$ twine upload dist/fido2-x.y.z.tar.gz dist/fido2-x.y.z.tar.gz.asc
$ poetry publish
* Add the .tar.gz and .sig files to a new Github release, using the latest NEWS
entry as description.
* Add the .tar.gz, the .whl and .sig files to a new Github release, using the
latest NEWS entry as description.
* Merge (using --ff) and delete the release branch, and push the tag:
* Merge and delete the release branch, and push the tag:
$ git checkout master
$ git merge --ff release/x.y.z
$ git branch -d release/x.y.z
$ git push && git push --tags
$ git push origin :release/x.y.z
* Bump the version number by incrementing the PATCH version and appending -dev0
* Bump the version number by incrementing the PATCH version and appending -dev.0
in fido2/__init__.py and add a new entry (unreleased) to the NEWS file.
__version__ = 'x.y.q-dev0'
* Bump the version in debian/changelog by appending `+git` to it (don't
increment PATCH).
(x.y.z+git)
__version__ = 'x.y.q-dev.0'
* Commit and push the change:
Expand Down

0 comments on commit 1dd112a

Please sign in to comment.