Debian Codegraph @

releasing.rst

raw
1 How to release new version
2 ##########################
3
4 Part 1: Git release
5 *******************
6
7 #. Choose version.
8
9 #. Describe new version in ``docs/rn.rst``.
10
11 #. Increment version in setup.py.
12
13 #. Create commit with message "release <version>".
14
15 #. Run local tests
16
17 $ tox
18
19 #. Push
20
21 $ git push origin HEAD
22
23 #. Wait for CI.
24
25 #. If they CI passed, stay on master branch, tag just released commit as "vX.Y.Z"
26
27 $ git tag -a vX.Y.Z
28 $ git push origin HEAD
29
30 Part 2: PyPI release
31 ********************
32
33 #. If no errors so far, build with
34
35 $ tox -e build
36
37 that creates sdist and wheel in dist/.
38
39 #. Upload to TestPyPI
40
41 $ tox -e publish
42
43 and go to https://test.pypi.org/project/sphinx-reredirects/<version>/
44
45 #. If you are happy with it, upload to PyPI.
46
47 $ tox -e publish -- --repository pypi