@@ -6,24 +6,36 @@ Introduction
66
77Example ``__version__ ``
88
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)
1212- 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)
1414
1515Test release candidates on numpy, scipy, matplotlib, scikit-image, and networkx.
1616
1717Process
1818-------
1919
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
2133
2234- Update ``__version__ `` in ``numpydoc/_version.py ``.
2335
2436- Commit changes::
2537
26- git add numpydoc/_version.py doc/release_notes.rst
38+ git add numpydoc/_version.py ${LOG}
2739 git commit -m 'Designate <version> release'
2840
2941- Add the version number (e.g., `v1.2.0 `) as a tag in git::
@@ -39,16 +51,18 @@ Process
3951
4052 where ``origin`` is the name of the ``github.com:numpy/numpydoc`` repository
4153
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`
4360
44- https://github.com/numpy/numpydoc/releases
4561
46- - Publish on PyPi ::
62+ - Update https://github.com/numpy/numpydoc/milestones ::
4763
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)
5266
5367- Update ``__version__ `` in ``numpydoc/_version.py ``.
5468
0 commit comments