Files
patroni/release.sh
T
Feike Steenbergen e96265e4d1 Make Patroni suitable for packaging.
- Restructured the repository: Moved patroni into its own directory.
- Changed readme into reStructuredText
2015-09-01 17:05:05 +02:00

29 lines
427 B
Bash
Executable File

#!/bin/sh
if [ $# -ne 1 ]; then
>&2 echo "usage: $0 <version>"
exit 1
fi
set -xe
python3 --version
git --version
version=$1
sed -i "s/__version__ = .*/__version__ = '${version}'/" __init__.py
python3 setup.py clean
python3 setup.py test
python3 setup.py flake8
git add __init__.py
git commit -m "Bumped version to $version"
git push
python3 setup.py sdist bdist_wheel upload
git tag ${version}
git push --tags