Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 45 lines (36 sloc) 0.987 kb
#!/bin/sh
# Exit on first error.
set -e
# Go to a known location: the directory where we ourselves live.
cd "`dirname $0`"
# Confirmation helper.
confirm () {
proceed=""
while [ "$proceed" != "y" ]; do
read -p"$1 (y/N) " proceed
if [ "$proceed" == "n" -o "$proceed" == "N" -o "$proceed" == "" ]
then
return 1
fi
done
return 0
}
# Real work.
if [ "`git tag | grep $1`" ]; then
echo "Version $1 is already git tagged."
else
confirm "Tag version $1 and upload to PyPI and push to github and heroku?"
if [ $? -eq 0 ]; then
printf "$1" > version.txt
git commit version.txt -m"Version bump for release."
git tag $1
git push
git push --tags
python2.7 setup.py sdist --formats=zip,gztar,bztar upload
printf "+" >> version.txt
git commit version.txt -m"Version bump post-release."
git push
git push heroku
rm -rf dist
fi
fi
Jump to Line
Something went wrong with that request. Please try again.