Project

Profile

Help

Release script

Install the pip dependencies:

pip install bump2version gitpython python-redmine towncrier

it has a help from argparse:

❯ python3 .ci/scripts/release.py --help
usage: release.py [-h] [--lower LOWER] [--upper UPPER] release_part

Start the release process.

Example:
    setup.py on plugin before script:
        version="2.0.dev"
        requirements = ["pulpcore>=3.4"]

    $ python3 .ci/scripts/release.py minor 4.0 4.1

    setup.py on plugin after script:
        version="2.1.dev"
        requirements = ["pulpcore>=4.0,<4.1"]

positional arguments:
  release_type   Whether the release should be major, minor or patch.

optional arguments:
  -h, --help     show this help message and exit
  --lower LOWER  Lower bound of pulpcore requirement.
  --upper UPPER  Upper bound of pulpcore requirement.

Release: x.y.z = major, minor, patch

pulpcore example:

python3 .ci/scripts/release.py minor

pulp_file example:

python3 .ci/scripts/release.py patch --lower 3.7 --upper 3.10

lower and upper are for pulpcore requirement, from the previous example, it should return:

pulpcore>=3.3.5,<3.4.0