.travis/release.py in pulpcore creates the wrong version for the final .dev version commit
Noticed that when I was releasing 3.4.0 and ran
python3 .travis/release.py major
The final version was set to 4.0.0.dev when it should have been 3.5.0.dev
Updated by fao89 over 2 years ago
- Tags Documentation added
How can we document better this script?
Currently it depends on:
it has a help from argparse:
❯ python .travis/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"] $ python .travis/realease.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_part 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
python .travis/release.py minor
python .travis/release.py minor --lower 3.3.5 --upper 3.4.0
lower and upper are for pulpcore requirement, from the previous example, it should return: