git checkout master
# Edit setup.py, update with new version number
git commit -m 'Releasing X.Y.Z' setup.py
git tag vX.Y.Z
git tag upstream/X.Y.Z
git checkout debian
git merge master
git-dch -R -D unstable -a --debian-branch=debian
git commit -m 'Updated changelog for X.Y.Z' debian/changelog
git tag debian/X.Y.Z
git push origin --all
git push origin --tags
# Change upstream version in first line to match X.Y.Z-1
git-buildpackage --git-debian-branch=debian --git-upstream-branch=master --git-builder='pdebuild --configfile ~/.pbuilderrc'
debsign -k KEYID ../tablesnap_X.Y.Z-1_source.changes
dput ppa:synack/tablesnap ../tablesnap_X.Y.Z-1_source.changes
python setup.py sdist
twine upload dist/tablesnap-X.Y.Z.tar.gz
rm -rf dist *.egg-info
