Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 1.49 KB

RELEASE.adoc

File metadata and controls

54 lines (33 loc) · 1.49 KB

Release instructions

  • Create a release branch:

    $ 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.

  • Commit the changes, and push the new branch.

    $ git push -u origin release/x.y.z
  • Wait for CI to complete, and make sure nothing fails.

  • Create a signed tag using the version number as name:

    $ git tag -s -m x.y.z x.y.z
  • Build the release:

    $ python setup.py sdist
  • Sign the release, creating both binary and ascii signatures:

    $ 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
  • Upload the release to PyPI:

    $ twine upload dist/fido2-x.y.z.tar.gz dist/fido2-x.y.z.tar.gz.asc
  • Add the .tar.gz 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:

    $ 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 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.

    (x.y.q+git)
  • Commit and push the change:

    $ git commit -a -m "Bump version." && git push