Skip to content
Alastair Porter edited this page Jan 9, 2020 · 10 revisions

Making a release

  • Run tests on python2 and python3 (use tox, which runs pytest for each supported version of python)
  • Make sure CHANGES is up to date (group items by new features, removed things, bug fixes. Within each group order by importance or date (oldest at top)).
  • Change version number
  • Create a commit for the version. Message 'Release version 0.x)
  • Create a tag (git tag -a v0.4 -m '0.4')
  • Build (python setup.py sdist bdist_wheel --universal)
  • Upload to testpypi if wanted (twine upload --repository-url https://test.pypi.org/legacy/ dist/*)
  • Upload to pypi (twine upload dist/*)
  • Push to github (git push --tags)
  • Prepare for next version (version number 0.xdev, add stub to CHANGES)
  • Enable the new tag on RTD (admin->versions), latest is updated automatically
Clone this wiki locally