File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,26 @@ current_version = 3.9.27
33commit = True
44tag = True
55
6+ # Teaches bumpversion how to read and break down a version string that may or may not have a prerelease tag.
7+ parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<prerelease_label>[a-z]+)\.(?P<prerelease>\d+))?
8+
9+ # Teaches bumpversion how to build the new version string. It will try the first format, and if prerelease parts are
10+ # missing, it will fall back to the second format.
11+ serialize =
12+ {major}.{minor}.{patch}-{prerelease_label}.{prerelease}
13+ {major}.{minor}.{patch}
14+
15+ # Configures the new 'prerelease' number part
16+ [bumpversion:part:prerelease]
17+ first_value = 0
18+
19+ [bumpversion:part:prerelease_label]
20+ optional_value = rc
21+ values =
22+ alpha
23+ beta
24+ rc
25+
626[bumpversion:file:setup.py]
727search = version =' {current_version}'
828replace = version =' {new_version}'
You can’t perform that action at this time.
0 commit comments