Skip to content

Commit a553a0b

Browse files
committed
docs: Performing a release
1 parent 59a33a2 commit a553a0b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.rst

+38
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,44 @@ Use ``paver`` to run common project tasks::
6262
paver coverage
6363

6464

65+
Performing a Release
66+
--------------------
67+
68+
#. Check Travis CI status at https://travis-ci.org/pyroscope/pyrobase
69+
70+
#. Check for and fix ``pylint`` violations::
71+
72+
paver lint -m
73+
74+
#. Verify ``debian/changelog`` for completeness and the correct version, and bump the release date::
75+
76+
dch -r
77+
78+
#. Remove ‘dev’ version tagging from ``setup.cfg``, and perform a release check::
79+
80+
sed -i -re 's/^(tag_[a-z ]+=)/##\1/' setup.cfg
81+
paver release
82+
83+
#. Commit and tag the release::
84+
85+
git status # check all is committed
86+
tag="v$(dpkg-parsechangelog | grep '^Version:' | awk '{print $2}')"
87+
git tag -a "$tag" -m "Release $tag"
88+
89+
#. Build the final release and upload it to PyPI::
90+
91+
paver sdist bdist_wheel
92+
twine upload dist/*.{zip,whl}
93+
94+
#. Create the ZIP file with the API documentation::
95+
96+
paver dist_docs
97+
98+
#. Upload the docs from the ``dist`` directory to ``pythonhosted.org``::
99+
100+
xdg-open "https://pypi.python.org/pypi?%3Aaction=pkg_edit&name=pyrobase" &
101+
102+
65103
Acknowledgements
66104
----------------
67105

0 commit comments

Comments
 (0)