parse versions from .bumpversion.toml if args not passed (#2)

This commit is contained in:
Mahmoud 2024-03-03 13:14:59 +02:00 committed by GitHub
parent 5a867eb532
commit c9e019e8f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 174 additions and 74 deletions

22
.bumpversion.toml Normal file
View file

@ -0,0 +1,22 @@
[bumpversion]
current_version = 0.1.1
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<stage>[^.]*)\.(?P<devnum>\d+))?
serialize =
{major}.{minor}.{patch}-{stage}.{devnum}
{major}.{minor}.{patch}
[bumpversion:part:stage]
optional_value = stable
first_value = stable
values =
alpha
beta
stable
[bumpversion:part:devnum]
[bumpversion:file:Cargo.toml]
search = version = "{current_version}"
replace = version = "{new_version}"