File: release.sh

package info (click to toggle)
patroni 4.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,704 kB
  • sloc: python: 29,743; sh: 573; makefile: 29
file content (29 lines) | stat: -rwxr-xr-x 850 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

# Release process:
# 1. Open a PR that updates release notes, Patroni version and pyright version in the tests workflow.
# 2. Resolve possible typing issues.
# 3. Merge the PR.
# 4. Run release.sh
# 5. After the new tag is pushed, the .github/workflows/release.yaml will run tests and upload the new package to test.pypi.org
# 6. Once the release is created, the .github/workflows/release.yaml will run tests and upload the new package to pypi.org

## Bail out on any non-zero exitcode from the called processes
set -xe

if python3 --version &> /dev/null; then
    alias python=python3
    shopt -s expand_aliases
fi

python --version
git --version

version=$(python -c 'from patroni.version import __version__; print(__version__)')

python setup.py clean
python setup.py test
python setup.py flake8

git tag "v$version"
git push --tags