Skip to content

Commit 9c1f5a0

Browse files
committed
Add release instructions
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent e879882 commit 9c1f5a0

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

release-howto.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Releasing software
2+
-------------------
3+
4+
When releasing a new version, the following steps should be taken:
5+
6+
1. Make sure all automated tests pass.
7+
8+
2. Make sure the package metadata in ``setup.py`` is up-to-date. You can
9+
verify the information by re-generating the egg info::
10+
11+
python setup.py egg_info
12+
13+
and inspecting ``src/SATOSA.egg-info/PKG-INFO``. You should also make sure
14+
that the long description renders as valid reStructuredText. You can
15+
do this by using the ``rst2html.py`` utility from docutils_::
16+
17+
python setup.py --long-description | rst2html > test.html
18+
19+
If this will produce warning or errors, PyPI will be unable to render
20+
the long description nicely. It will treat it as plain text instead.
21+
22+
3. Update the version in the .bumpversion.cfg_ and setup.py_ files
23+
and report the changes in CHANGELOG.md_. Commit the changes.::
24+
25+
git add CHANGELOG.md
26+
git add setup.py
27+
git add .bumpversion.cfg
28+
git commit -v -s -m "Release version X.Y.Z"
29+
30+
4. Create a release branch_::
31+
32+
git branch vX.Y.Z
33+
34+
5. Create a release tag_::
35+
36+
git tag -a -s vX.Y.Z -m "Version X.Y.Z"
37+
38+
6. Push these changes to Github::
39+
40+
git push --follow-tags origin vX.Y.Z
41+
git push --follow-tags origin vX.Y.Z:vX.Y.Z
42+
43+
44+
From there, travis will run the tests and, on success, it will create a docker
45+
image with the tag as the image-tag, as well as it will create and upload a new
46+
PyPI package.
47+
48+
49+
.. _docutils: http://docutils.sourceforge.net/
50+
.. _bumpversion.cfg: https://github.com/IdentityPython/SATOSA/blob/master/.bumpversion.cfg
51+
.. _CHANGELOG.md: https://github.com/IdentityPython/SATOSA/blob/master/CHANGELOG.md
52+
.. _branch: https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell
53+
.. _tag: https://git-scm.com/book/en/v2/Git-Basics-Tagging#_annotated_tags

0 commit comments

Comments
 (0)