#!/bin/bash set -xe if [ -z "$1" ]; then echo 'pass a version as first argument' exit 1 fi git tag $1 git push --tags python setup.py sdist upload