-
Make sure the test suite passes
-
Update
CHANGES.mdanddoc/whats_new.rstto document changes. Update version references inREADME.md -
Update
__version__in__init__.py -
Update the version number in
doc/conf.py -
Run
git clean -fxdto remove any non-committed files -
Run
python setup.py sdist --format=gztar
and make sure that the generated file is good to go by going inside
dist, expanding the tar file, and running the tests withpython setup.py test
-
Re-run
git clean -fxd -
Commit the changes to CHANGES.md and setup.py: git commit -m "Preparing release "
-
Tag commit with
v<version> -
Change version in
__init__.pyback to a.deventry. Add a new entry to CHANGES.md -
Commit with message: git commit -m "Back to development: <next_version>"
-
Release the commit: git co -v git clean -fxd python setup.py sdist --format=gztar upload
-
Fast-forward the
stablebranch, and push to GitHub. -
Add the new version to the build-list on readthedocs.