Created
January 19, 2012 17:31
-
-
Save codeinthehole/1641354 to your computer and use it in GitHub Desktop.
Simple script for releasing python packages to PyPi
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
#!/bin/bash | |
# Extract version number from setup.py | |
RELEASE_NUM=`grep version setup.py | cut -d\' -f2` | |
# Push to PyPi | |
python setup.py sdist upload | |
# Tag in Git and push to remote | |
git tag $RELEASE_NUM -m "Tagging release $RELEASE_NUM" | |
git push --tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment