How to make a Gammapy release#
This page contains step-by-step instructions how to make a Gammapy release.
We have structured the procedure in three phases:
“Pre release” – on a day (or several days) before making the release
“Make release” – on the day of making the release (tag the stable version and make source release on PyPI)
“Post release” – on the day when announcing the release (ideally only two or three days after making the release)
The purpose of writing the procedure down explicitly is to make it easy for anyone to make a release (as opposed to one or a few people with secret knowledge how to do it). It’s also good to not have to remember this stuff, and to avoid errors or forgotten steps.
Note that we currently don’t do bugfix releases, i.e. making a release is always simple in the sense
that you just need to create a branch off of
Making bugfix releases would be more difficult and involve identifying commits with bug fixes and
backporting those to the stable branches.
In these notes we’ll use the Gammapy 0.14 release as an example.
Steps to prepare for the release (e.g. a week before) to check that things are in order:
Try to get developers to finish up their PRs, try to help fix bugs, and postpone non-critical issues to the next release.
Do these extra checks and clean up any warnings / errors that come up:
make polish make pylint make flake8
Check external HTML links from the docs (see here).
Check that the GitHub actions CI build is working.
Links are at https://github.com/gammapy/gammapy#status-shields
Check that the release notes are complete, by going through the list of GitHub issues for the release milestone.
Check the author list in CITATION.cff by running the
dev/authors.pyscript. Manually fi any mismatches and finally sort by commits.
Steps for the day of the release:
Follow the instructions how to release an Astropy affiliated package:
In the gammapy repo:
docs/getting-started/index.rstand change the version numbers in the text.
In the gammapy-docs repo:
docs/devfolder as a new
stable/index.htmlto point to
stable/switcher.jsonto add the new version.
In the gammapy-web repo:
Mention the release on the front page and on the news page.
Adapt the dependency conda env name and versions as required in this file.
Update the Gammapy conda-forge package at https://github.com/conda-forge/gammapy-feedstock
Encourage the Gammapy developers to try out the new stable version (update and run tests) via the GitHub issue for the release and wait a day or two for feedback.
Steps for the day to announce the release:
Send release announcement to the Gammapy mailing list and on Gammapy Slack (using the version you drafted in https://github.com/gammapy/gammapy/tree/master/dev/notes).
If it’s a big release with important new features or fixes, also send the release announcement to the following mailing lists (decide on a case by case basis, if it’s relevant to the group of people):
Make sure the release milestone and issue is closed on GitHub
Update these release notes with any useful infos / steps that you learned while making the release (ideally try to script / automate the task or check, e.g. as a
Update version number in Binder
Dockerfilein gammapy-webpage repository master branch and tag the release for Binder.
Open a milestone and issue for the next release (and possibly also a milestone for the release after, so that low-priority issues can already be moved there) Find a release manager for the next release, assign the release issue to her / him, and ideally put a tentative date (to help developers plan their time for the coming weeks and months).
Start working on the next release. :-)