|
1 | 1 | Release checklist
|
2 | 2 | =================
|
3 | 3 |
|
4 |
| -for stable releases |
5 |
| -------------------- |
| 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 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
6 | 19 |
|
7 |
| -* open "https://github.com/sphinx-doc/sphinx/actions?query=branch:X.Y.x" and all tests has passed |
8 |
| -* Run ``git fetch; git status`` and check nothing changed |
9 | 20 | * ``python utils/bump_version.py X.Y.Z``
|
10 | 21 | * Check diff by ``git diff``
|
11 | 22 | * ``git commit -am 'Bump to X.Y.Z final'``
|
12 |
| -* ``make clean`` |
13 |
| -* ``python -m build .`` |
14 |
| -* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]`` |
15 |
| -* open https://pypi.org/project/Sphinx/ and check there are no obvious errors |
16 |
| -* ``sh utils/bump_docker.sh X.Y.Z`` |
17 | 23 | * ``git tag vX.Y.Z -m "Sphinx X.Y.Z"``
|
18 |
| -* ``python utils/bump_version.py --in-develop X.Y.Zb0`` (ex. 1.5.3b0) |
19 |
| -* Check diff by ``git diff`` |
20 |
| -* ``git commit -am 'Bump version'`` |
21 |
| -* ``git push origin X.Y.x --tags`` |
22 |
| -* ``git checkout X.x`` |
23 |
| -* ``git merge X.Y.x`` |
24 |
| -* ``git push origin X.x`` |
25 |
| -* Add new version/milestone to tracker categories |
26 |
| -* Write announcement and send to sphinx-dev, sphinx-users and python-announce |
27 |
| - |
28 |
| -for first beta releases |
29 |
| ------------------------ |
30 |
| - |
31 |
| -* open "https://github.com/sphinx-doc/sphinx/actions?query=branch:master" and all tests has passed |
32 |
| -* Run ``git fetch; git status`` and check nothing changed |
33 |
| -* ``python utils/bump_version.py X.Y.0b1`` |
34 |
| -* Check diff by ``git diff`` |
35 |
| -* ``git commit -am 'Bump to X.Y.0 beta1'`` |
36 |
| -* ``make clean`` |
37 |
| -* ``python -m build .`` |
38 |
| -* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]`` |
39 |
| -* open https://pypi.org/project/Sphinx/ and check there are no obvious errors |
40 |
| -* ``git tag vX.Y.0b1 -m "Sphinx X.Y.0b1"`` |
41 |
| -* ``python utils/bump_version.py --in-develop X.Y.0b2`` (ex. 1.6.0b2) |
42 |
| -* Check diff by ``git diff`` |
43 |
| -* ``git commit -am 'Bump version'`` |
44 |
| -* ``git checkout -b X.x`` |
45 |
| -* ``git push origin X.x --tags`` |
46 |
| -* ``git checkout master`` |
47 |
| -* ``git merge X.x`` |
48 |
| -* ``python utils/bump_version.py --in-develop A.B.0b0`` (ex. 1.7.0b0) |
49 |
| -* Check diff by ``git diff`` |
50 |
| -* ``git commit -am 'Bump version'`` |
51 |
| -* ``git push origin master`` |
52 |
| -* open https://github.com/sphinx-doc/sphinx/settings/branches and make ``X.Y`` branch protected |
53 |
| -* Add new version/milestone to tracker categories |
54 |
| -* Write announcement and send to sphinx-dev, sphinx-users and python-announce |
55 | 24 |
|
56 |
| -for other beta releases |
57 |
| ------------------------ |
| 25 | +for beta releases |
| 26 | +~~~~~~~~~~~~~~~~~ |
58 | 27 |
|
59 |
| -* open "https://github.com/sphinx-doc/sphinx/actions?query=branch:X.x" and all tests has passed |
60 |
| -* Run ``git fetch; git status`` and check nothing changed |
61 | 28 | * ``python utils/bump_version.py X.Y.0bN``
|
62 | 29 | * Check diff by ``git diff``
|
63 | 30 | * ``git commit -am 'Bump to X.Y.0 betaN'``
|
64 |
| -* ``make clean`` |
65 |
| -* ``python -m build .`` |
66 |
| -* ``twine upload dist/Sphinx-* --sign --identity [your GPG key]`` |
67 |
| -* open https://pypi.org/project/Sphinx/ and check there are no obvious errors |
68 |
| -* ``git tag vX.Y.0bN -m "Sphinx X.Y.0bN"`` |
69 |
| -* ``python utils/bump_version.py --in-develop X.Y.0bM`` (ex. 1.6.0b3) |
70 |
| -* Check diff by `git diff`` |
71 |
| -* ``git commit -am 'Bump version'`` |
72 |
| -* ``git push origin X.x --tags`` |
73 |
| -* ``git checkout master`` |
74 |
| -* ``git merge X.x`` |
75 |
| -* ``git push origin master`` |
76 |
| -* Add new version/milestone to tracker categories |
77 |
| -* Write announcement and send to sphinx-dev, sphinx-users and python-announce |
| 31 | +* ``git tag vX.Y.0b1 -m "Sphinx X.Y.0bN"`` |
78 | 32 |
|
79 |
| -for major releases |
80 |
| ------------------- |
| 33 | +Build Sphinx |
| 34 | +------------ |
81 | 35 |
|
82 |
| -* open "https://github.com/sphinx-doc/sphinx/actions?query=branch:X.x" and all tests has passed |
83 |
| -* Run ``git fetch; git status`` and check nothing changed |
84 |
| -* Run ``git add sphinx`` |
85 |
| -* Run ``git commit -am 'Update message catalogs'`` |
86 |
| -* ``python utils/bump_version.py X.Y.0`` |
87 |
| -* Check diff by ``git diff`` |
88 |
| -* ``git commit -am 'Bump to X.Y.0 final'`` |
89 | 36 | * ``make clean``
|
90 | 37 | * ``python -m build .``
|
91 | 38 | * ``twine upload dist/Sphinx-* --sign --identity [your GPG key]``
|
92 |
| -* open https://pypi.org/project/Sphinx/ and check there are no obvious errors |
| 39 | +* open https://pypi.org/project/Sphinx/ and check for any obvious errors |
| 40 | + |
| 41 | +for stable and major releases |
| 42 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 43 | + |
93 | 44 | * ``sh utils/bump_docker.sh X.Y.Z``
|
94 |
| -* ``git tag vX.Y.0 -m "Sphinx X.Y.0"`` |
95 |
| -* ``python utils/bump_version.py --in-develop X.Y.1b0`` (ex. 1.6.1b0) |
| 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`` (ex. 1.5.3b0) |
| 53 | + |
| 54 | +for beta releases |
| 55 | +~~~~~~~~~~~~~~~~~ |
| 56 | + |
| 57 | +* ``python utils/bump_version.py --in-develop X.Y.0bN+1`` (ex. 1.6.0b2) |
| 58 | + |
| 59 | +Commit version bump |
| 60 | +------------------- |
| 61 | + |
96 | 62 | * Check diff by ``git diff``
|
97 | 63 | * ``git commit -am 'Bump version'``
|
98 |
| -* ``git push origin X.x --tags`` |
99 |
| -* ``git checkout master`` |
100 |
| -* ``git merge X.x`` |
101 |
| -* ``git push origin master`` |
102 |
| -* open https://github.com/sphinx-doc/sphinx/settings/branches and make ``A.B`` branch *not* protected |
103 |
| -* ``git checkout A.B`` (checkout old stable) |
104 |
| -* Run ``git tag A.B -m "Sphinx A.B"`` to paste a tag instead branch |
105 |
| -* Run ``git push origin :A.B --tags`` to remove old stable branch |
106 |
| -* open https://readthedocs.org/dashboard/sphinx/versions/ and enable the released version |
| 64 | +* ``git push origin master --tags`` |
| 65 | + |
| 66 | +Final steps |
| 67 | +----------- |
| 68 | + |
107 | 69 | * Add new version/milestone to tracker categories
|
108 | 70 | * Write announcement and send to sphinx-dev, sphinx-users and python-announce
|
0 commit comments