Skip to content

Commit

Permalink
Add rc support to bumpversion cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Dec 21, 2023
1 parent 0333891 commit a3f2fd0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
current_version = 1.22.1
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)([-](?P<release>(pre|rc))(?P<build>\d+))?
serialize =
{major}.{minor}.{patch}-{release}{build}
{major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = prod
first_value = rc
values =
rc
prod

[bumpversion:part:build]
first_value = 1

[bumpversion:file:setup.py]
search = version="{current_version}"
Expand Down

0 comments on commit a3f2fd0

Please sign in to comment.