Created
November 25, 2012 17:36
-
-
Save borntyping/4144485 to your computer and use it in GitHub Desktop.
My python packaging cheatsheet
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
# Includes commands for multi-version python packages | |
# Ignore the commands you don't need :) | |
# Run tests | |
nosetests | |
# Create python package | |
python setup.py sdist upload | |
sudo python setup.py install | |
# Create a merge commit on master from the dev branch, and tag it | |
git checkout master | |
git merge --no-ff dev | |
git tag -m "Version $VERSION" -a "v$VERSION" | |
# Checkout dev and fast-forward merge master | |
git checkout dev | |
git merge master | |
# Push the changes and new tags, AFTER ensuring that everything else works | |
git push --tags | |
git push --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment