Skip to content

Commit 5c05062

Browse files
feat: Configure bumpversion for 'release' command
1 parent bedb955 commit 5c05062

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.bumpversion.cfg

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ current_version = 3.9.29-alpha.0
33
commit = True
44
tag = True
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<prerelease_label>[a-z]+)\.(?P<prerelease>\d+))?
6-
serialize =
6+
serialize =
77
{major}.{minor}.{patch}-{prerelease_label}.{prerelease}
88
{major}.{minor}.{patch}
99

@@ -12,7 +12,7 @@ first_value = 0
1212

1313
[bumpversion:part:prerelease_label]
1414
optional_value = rc
15-
values =
15+
values =
1616
alpha
1717
beta
1818
rc
@@ -40,3 +40,8 @@ replace = __version__ = '{new_version}'
4040
[bumpversion:file:.cookiecutterrc]
4141
search = version: {current_version}
4242
replace = version: {new_version}
43+
44+
[bumpversion:part:release]
45+
# This is a "virtual" part. It's not in the version string itself.
46+
# Its purpose is to enable the 'bumpversion release' command,
47+
# which will intelligently drop the pre-release suffix.

0 commit comments

Comments
 (0)