forked from python-telegram-bot/python-telegram-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Releasing a new version
Leandro Toledo edited this page Jun 10, 2016
·
4 revisions
This project adheres to the Semantic Versioning specification by Tom Preston-Werner.
Packages:
$ pip install -r requirements-dev.txt -r docs/requirements-docs.txt $ pip install wheel twine
-
Bump version:
- telegram/__init__.py
-
Log changes to:
- CHANGES.rst
-
Run tests:
$ make test
-
Build source distribution:
$ python setup.py sdist bdist_wheel
-
Register new version:
$ python setup.py register
-
Upload to PyPI (-s to sign the package with your GnuPG key):
$ twine upload -s dist/python*
-
Commit the version bump and add tag:
$ git commit -a -m 'Bump version to v<VERSION>' $ git push
-
Create a new release:
- Tag version: v<VERSION>
- Release title: v<VERSION>
- Description: <logs from CHANGES.rst>
-
Build documentation:
$ python setup.py build_sphinx
-
Upload documentation (Upload failed (503): backend read error may happen but not really an issue):
$ python setup.py upload_sphinx
-
Close milestones for this version.
-
Test in a clean virtualenv that
pip install python-telegram-botworks with the new version.
Please use the following channels/groups to announce a new version release:
Wiki of python-telegram-bot – © Copyright 2015-2016 – Licenced by Creative Commons