Skip to content
This repository
tag: 0.4.6
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 14 lines (10 sloc) 0.302 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash

RELEASE_NUM=`./setup.py --version`
git tag | grep $RELEASE_NUM > /dev/null && \
echo "New version number required ($RELEASE_NUM already used)" && exit 1

# Push to PyPi
./setup.py sdist upload

# Tag in Git
git tag $RELEASE_NUM -m "Tagging release $RELEASE_NUM"
git push --tags
git push
Something went wrong with that request. Please try again.