-
Notifications
You must be signed in to change notification settings - Fork 44
/
RELEASE.txt
66 lines (42 loc) · 1.93 KB
/
RELEASE.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
How to make a new release of ``permute``
========================================
- Check ``TODO.txt`` for any outstanding tasks.
- Update release notes.
1. Review and cleanup ``doc/release/release_dev.txt``
- To show a list of merges and contributors, run
``doc/release/contribs.py <tag of prev release>``.
2. Rename to ``doc/release/release_<version>.txt``
3. Copy ``doc/release/release_template.txt`` to
``doc/release/release_dev.txt`` for the next release.
4. Make PR, review, and merge.
- Update the version number in ``permute/__init__.py`` by removing the
``.dev0`` suffix from ``__version__ = <version>.dev0``, commit, and push::
git add permute/__init__.py
git commit -m "Designate <version> release"
- Update the docs:
- Build a clean version of the docs. Run ``python setup.py install`` in the
root dir, then ``make clean; make html; make pdflatex`` in the docs.
- Deploy: ``make github``.
- Add the version number as a tag in git::
git tag -s permute-<version> -m 'signed <version> tag'
(If you do not have a gpg key, use -m instead; it is important for
Debian packaging that the tags are annotated)
- Push the new meta-data to github::
git push --tags upstream main
- Review GitHub release page::
https://github.com/statlab/cryptorandom/releases
- Publish on PyPi::
git clean -fxd
python setup.py sdist
python setup.py bdist_wheel
twine upload dist/*
- On the main branch, update the version number in ``permute/__init__.py``
to ``__version__ = <newversion>.dev0``. For example, if
``<version> == 0.1``, then ``<newversion> == 0.2rc1``. Note that,
if ``<version> == 0.2rc1``, ``<newversion> == 0.2rc2``; but, if all goes well,
the next release may be ``0.2``. Then add, commit, and push::
git add permute/__init__.py
git commit -m 'Bump version'
git push <...>
- Post release notes on mailing lists, blog, G+, etc.