-
Notifications
You must be signed in to change notification settings - Fork 234
Making a release to PyPI
Robin Edwards edited this page Oct 12, 2018
·
5 revisions
We should really automate some of this.
- Get the latest code:
$ git checkout master
$ git pull
- Get the tag of the last release
$ git describe --abbrev=0 --tags
- Inspect the changes since then and update the Changelog
$ git log 3.2.9... $ vi Changelog
Change log format like so
Version <VERSION_NUMBER> 2018-10-04
* Add check for wiping db on test run - Athanasios
* Correct function name in doc string - Henry Jordan
- Update the version number in setup.py
$ vi setup.py
- Commit the changes, tag and push
$ git commit -a -m "<VERSION_NUMBER> release"
$ git tag <VERSION_NUMBER>
$ git push --tags
- Make sure you have twine and are auth'd with PyPi
$ pip install twine
- Create and upload the dists
$ rm -rf dist/*
$ python setup.py sdist
$ twine upload dist/*
- Update read the docs with the latest