Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (10 sloc) 302 Bytes
#!/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