Skip to content

Instantly share code, notes, and snippets.

@borntyping
Created November 25, 2012 17:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borntyping/4144485 to your computer and use it in GitHub Desktop.
Save borntyping/4144485 to your computer and use it in GitHub Desktop.
My python packaging cheatsheet
# 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