2020-07-30 21:19:56 +00:00
# Release process
2020-10-05 09:01:36 +00:00
* Ensure you have a backup of all working files and then remove files not tracked by git
`git clean -xdf` . **NOTE** : this will delete all files in the tuf tree that aren't
tracked by git
2020-09-09 10:07:23 +00:00
* Ensure `docs/CHANGELOG.md` contains a one-line summary of each [notable
2020-08-04 08:49:08 +00:00
change](https://keepachangelog.com/) since the prior release
2021-10-21 09:53:35 +00:00
* Update `setup.cfg` and `tuf/__init__.py` to the new version number vA.B.C
2020-07-30 21:19:56 +00:00
* Test packaging, uploading to Test PyPI and installing from a virtual environment
2020-10-05 09:01:36 +00:00
(ensure commands invoking `python` below are using Python 3)
2020-07-30 21:19:56 +00:00
* Remove existing dist build dirs
2021-10-19 20:06:15 +00:00
* Create source dist and wheel `python3 -m build`
2020-07-30 21:19:56 +00:00
* Sign the dists `gpg --detach-sign -a dist/tuf-vA.B.C.tar.gz`
* Upload to test PyPI `twine upload --repository testpypi dist/*`
* Verify the uploaded package https://testpypi.python.org/pypi/tuf/
2020-09-09 10:07:23 +00:00
* Create a PR with updated `CHANGELOG.md` and version bumps
2020-07-30 21:19:56 +00:00
* Once the PR is merged, pull the updated `develop` branch locally
* Create a signed tag matching the updated version number on the merge commit
2020-08-04 14:11:18 +00:00
`git tag --sign vA.B.C -m "vA.B.C"`
* Push the tag to GitHub `git push origin vA.B.C`
2020-09-09 10:07:23 +00:00
* Create a new release on GitHub, copying the `CHANGELOG.md` entries for the
release
2020-07-30 21:19:56 +00:00
* Create a package for the formal release
2020-10-05 09:01:36 +00:00
(ensure commands invoking `python` below are using Python 3)
2020-07-30 21:19:56 +00:00
* Remove existing dist build dirs
2021-10-19 20:06:15 +00:00
* Create source dist and wheel `python3 -m build`
2020-07-30 21:19:56 +00:00
* Sign source dist `gpg --detach-sign -a dist/tuf-vA.B.C.tar.gz`
2021-09-06 12:29:51 +00:00
* Sign wheel `gpg --detach-sign -a dist/tuf-vA.B.C-py3-none-any.whl`
2020-07-30 21:19:56 +00:00
* Upload to test PyPI `twine upload --repository testpypi dist/*`
* Verify the uploaded package https://testpypi.python.org/pypi/tuf/
* Upload to PyPI `twine upload dist/*`
2021-10-19 20:06:15 +00:00
* Attach both signed dists and their detached signatures to the release on GitHub
2020-07-30 21:19:56 +00:00
* Announce the release on [#tuf on CNCF Slack ](https://cloud-native.slack.com/archives/C8NMD3QJ3 )
* Ensure [POUF 1 ](https://github.com/theupdateframework/taps/blob/master/POUFs/reference-POUF/pouf1.md ), for the reference implementation, is up-to-date