Debian Codegraph @

docs/development.rst

raw
1 Development
2 ===========
3
4 Making a release
5 ----------------
6
7 Update ``docs/changes.rst`` (the heading of the new section belongs onto the
8 last commit that goes into the release) and merge that via a pull request.
9 Then put an annotated, signed tag named like the version (no ``v`` prefix) onto
10 the "update CHANGES" commit and push it::
11
12 git tag -s -m "tagged/signed release 0.7.0" 0.7.0
13 git push origin 0.7.0
14
15 Pushing the tag runs ``.github/workflows/release.yml``, which builds the sdist,
16 checks that it is complete and installable, and creates a *draft* GitHub
17 release with it. The upload to PyPI happens in the ``pypi`` job, which uses
18 trusted publishing (no API token) and waits for an approval if the ``pypi``
19 environment has required reviewers configured.
20
21 Finally, write the release notes and publish the draft release.