Skip to content

Commit

Permalink
reuse setup.cfg in .bumpversion.cfg
Browse files Browse the repository at this point in the history
No-Issue
  • Loading branch information
jerabekjiri committed Dec 15, 2023
1 parent 07ed688 commit bb39b62
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,32 @@
current_version = 4.10.0dev
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+))?
serialize =
{major}.{minor}.{patch}.{release}
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+))?((?P<build>\d+))?
serialize =
{major}.{minor}.{patch}{release}{build}
{major}.{minor}.{patch}{release}
{major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = prod
first_value = dev
values =
optional_value = stable
first_value = stable
values =
stable
dev
prod
a
b

[bumpversion:part:build]
first_value = 0

[bumpversion:file:setup.py]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:./galaxy_ng/app/__init__.py]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:./setup.py]
[bumpversion:file:./galaxy_ng/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"

0 comments on commit bb39b62

Please sign in to comment.