Skip to content

Commit

Permalink
Add first_value=release to bump2version
Browse files Browse the repository at this point in the history
  • Loading branch information
kiudee committed Aug 24, 2020
1 parent ddaa018 commit 215b93d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ current_version = 0.6.0-beta.0
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?(\.(?P<build>\d+))?
serialize =
serialize =
{major}.{minor}.{patch}-{release}.{build}
{major}.{minor}.{patch}

Expand All @@ -16,8 +16,9 @@ search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"

[bumpversion:part:release]
first_value = release
optional_value = release
values =
values =
beta
rc
release
Expand Down

0 comments on commit 215b93d

Please sign in to comment.