@@ -6,24 +6,36 @@ Introduction
6
6
7
7
Example ``__version__ ``
8
8
9
- - 1.8 .dev0 # development version of 1.8 (release candidate 1 )
10
- - 1.8rc1 # 1.8 release candidate 1
11
- - 1.8rc2 .dev0 # development version of 1.8 (release candidate 2 )
9
+ - 1.8rc0 .dev0 # development version of 1.8 (first release candidate)
10
+ - 1.8rc0 # 1.8 release candidate 1
11
+ - 1.8rc1 .dev0 # development version of 1.8 (second release candidate)
12
12
- 1.8 # 1.8 release
13
- - 1.9 .dev0 # development version of 1.9 (release candidate 1 )
13
+ - 1.9rc0 .dev0 # development version of 1.9 (first release candidate)
14
14
15
15
Test release candidates on numpy, scipy, matplotlib, scikit-image, and networkx.
16
16
17
17
Process
18
18
-------
19
19
20
- - Review and update ``doc/release_notes.rst ``.
20
+ - Set release variables::
21
+
22
+ export VERSION=<version number>
23
+ export PREVIOUS=<previous version number>
24
+ export ORG="numpy"
25
+ export REPO="numpydoc"
26
+ export LOG="doc/release/notes.rst"
27
+
28
+ - Autogenerate release notes::
29
+
30
+ changelist ${ORG}/${REPO} v${PREVIOUS} main --version ${VERSION} --config pyproject.toml --format rst --out ${VERSION}.rst
31
+ changelist ${ORG}/${REPO} v${PREVIOUS} main --version ${VERSION} --config pyproject.toml --out ${VERSION}.md
32
+ cat ${VERSION}.rst | cat - ${LOG} > temp && mv temp ${LOG} && rm ${VERSION}.rst
21
33
22
34
- Update ``__version__ `` in ``numpydoc/_version.py ``.
23
35
24
36
- Commit changes::
25
37
26
- git add numpydoc/_version.py doc/release_notes.rst
38
+ git add numpydoc/_version.py ${LOG}
27
39
git commit -m 'Designate <version> release'
28
40
29
41
- Add the version number (e.g., `v1.2.0 `) as a tag in git::
@@ -39,16 +51,18 @@ Process
39
51
40
52
where ``origin`` is the name of the ``github.com:numpy/numpydoc`` repository
41
53
42
- - Review the github release page::
54
+ - Create release from tag::
55
+
56
+ - go to https://github.com/numpy/numpydoc/releases/new?tag=v${VERSION}
57
+ - add v${VERSION} for the `Release title`
58
+ - paste contents (or upload) of ${VERSION}.md in the `Describe this release section`
59
+ - if pre-release check the box labelled `Set as a pre-release`
43
60
44
- https://github.com/numpy/numpydoc/releases
45
61
46
- - Publish on PyPi ::
62
+ - Update https://github.com/numpy/numpydoc/milestones ::
47
63
48
- git clean -fxd
49
- pip install --upgrade build wheel twine
50
- python -m build --sdist --wheel
51
- twine upload -s dist/*
64
+ - close old milestone
65
+ - ensure new milestone exists (perhaps setting due date)
52
66
53
67
- Update ``__version__ `` in ``numpydoc/_version.py ``.
54
68
0 commit comments