Created
September 25, 2014 12:58
-
-
Save jerith/865fafea21ac0298bb4d to your computer and use it in GitHub Desktop.
Releasing a Python thing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You'll need these to release stuff. | |
pip install wheel twine | |
# Versioning and merging. | |
./utils/bump-version.sh <version> | |
git commit -m 'Release version <version>.' | |
git push origin develop | |
git checkout master | |
git merge --ff develop | |
git tag besnappy-<version> | |
git push origin master | |
git push --tags | |
# Build and release. | |
rm ./dist/* | |
python setup.py sdist bdist_wheel | |
python setup.py register | |
twine upload dist/* | |
# Post-release stuff. | |
git checkout develop | |
./utils/bump-version.sh <next-version> | |
git commit -m 'Bump version to <next-version> post-release.' | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git commit -a -m ...