mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
- Restructured the repository: Moved patroni into its own directory. - Changed readme into reStructuredText
29 lines
427 B
Bash
Executable File
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
|