mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-15 07:43:51 +01:00
more consistent internal naming (release -> tag)
This commit is contained in:
parent
879ff4a945
commit
98647519c2
4 changed files with 31 additions and 28 deletions
|
|
@ -374,7 +374,7 @@ def incr(
|
|||
old_version: str,
|
||||
raw_pattern: str = "{pycalver}",
|
||||
*,
|
||||
release : typ.Optional[str] = None,
|
||||
tag : typ.Optional[str] = None,
|
||||
major : bool = False,
|
||||
minor : bool = False,
|
||||
patch : bool = False,
|
||||
|
|
@ -410,8 +410,8 @@ def incr(
|
|||
cur_vinfo = cur_vinfo._replace(patch=cur_vinfo.patch + 1)
|
||||
if release_num:
|
||||
raise NotImplementedError("--release-num not supported for old style patterns")
|
||||
if release:
|
||||
cur_vinfo = cur_vinfo._replace(tag=release)
|
||||
if tag:
|
||||
cur_vinfo = cur_vinfo._replace(tag=tag)
|
||||
|
||||
new_version = format_version(cur_vinfo, raw_pattern)
|
||||
if new_version == old_version:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue