Debian Codegraph @

utils/release-checklist.rst

raw
1 Release checklist
2 =================
3
4 A stable release is a release where the minor or micro version parts are
5 incremented.
6 A major release is a release where the major version part is incremented.
7
8 Checks
9 ------
10
11 * open "https://github.com/sphinx-doc/sphinx/actions?query=branch:master" and all tests has passed
12 * Run ``git fetch; git status`` and check that nothing has changed
13
14 Bump version
15 ------------
16
17 for stable and major releases
18 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19
20 * ``python utils/bump_version.py X.Y.Z``
21 * Check diff by ``git diff``
22 * ``git commit -am 'Bump to X.Y.Z final'``
23 * ``git tag vX.Y.Z -m "Sphinx X.Y.Z"``
24
25 for beta releases
26 ~~~~~~~~~~~~~~~~~
27
28 * ``python utils/bump_version.py X.Y.0bN``
29 * Check diff by ``git diff``
30 * ``git commit -am 'Bump to X.Y.0 betaN'``
31 * ``git tag vX.Y.0b1 -m "Sphinx X.Y.0bN"``
32
33 Build Sphinx
34 ------------
35
36 * ``make clean``
37 * ``python -m build .``
38 * ``twine upload dist/Sphinx-*``
39 * open https://pypi.org/project/Sphinx/ and check for any obvious errors
40
41 for stable and major releases
42 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43
44 * ``sh utils/bump_docker.sh X.Y.Z``
45
46 Bump to next development version
47 --------------------------------
48
49 for stable and major releases
50 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51
52 * ``python utils/bump_version.py --in-develop X.Y.Z+1b0`` (e.g. 1.5.3b0)
53
54 for beta releases
55 ~~~~~~~~~~~~~~~~~
56
57 * ``python utils/bump_version.py --in-develop X.Y.0bN+1`` (e.g. 1.6.0b2)
58
59 Commit version bump
60 -------------------
61
62 * Check diff by ``git diff``
63 * ``git commit -am 'Bump version'``
64 * ``git push origin master --tags``
65
66 Final steps
67 -----------
68
69 * Add new version/milestone to tracker categories
70 * Write announcement and send to sphinx-dev, sphinx-users and python-announce