-
Make sure the test suite passes
-
Update
CHANGES.md
anddoc/whats_new.rst
to document changes. Update version references inREADME.md
-
Update
__version__
in__init__.py
-
Update the version number in
doc/conf.py
-
Run
git clean -fxd
to 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__.py
back to a.dev
entry. 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
stable
branch, and push to GitHub. -
Add the new version to the build-list on readthedocs.