Release process:
- Document all changes in CHANGES.rst.
- Update __version__ in __init__.py.
- Update version in docs/conf.py
- Tag the version in git. (ex: git tag 4.8.2 && git push --tags)
- Create a release in GitHub. https://github.com/mixpanel/mixpanel-python/releases
- Rebuild docs and publish to GitHub Pages (if appropriate -- see below)
- Publish to PyPI. (see below)
Run tests:
tox
Publish to PyPI:
pip install twine wheel python setup.py sdist bdist_wheel twine upload dist/*
Build docs:
pip install sphinx python setup.py build_sphinx
Publish docs to GitHub Pages:
pip install ghp-import ghp-import -n -p build/sphinx/html