The --tag-num option fails to increment the tagnum
csadorf opened this issue · 3 comments
csadorf commented
I am not able to increment the tag number using the --tag-num
option.
To reproduce:
$ bumpver test v22.01.0rc0 'v0Y.0M.INC0[PYTAGNUM]' --tag-num
New Version: v22.01.1rc0
PEP440 : 22.1.1rc0
It seems like I either misunderstand how --tag-num
is supposed to work or this is a bug.
csadorf commented
Excellent package by the way!! 👍 🙏
mbarkhau commented
You're falling prey to the rollover behaviour which takes president over the --tag-num
Old Version: v22.01.0rc0
New Version: v22.01.1rc0
The INC0
part is auto-incremented. If a part increments, this causes certain parts (not persistent parts) to the right of it to rollover/reset to their default value.
Maybe this pattern would work for you?
$ bumpver test v22.01.0rc0 'v0Y.0M.PATCH[PYTAGNUM]' --tag-num
New Version: v22.01.0rc1
PEP440 : 22.1.0rc1
csadorf commented
Got it. I think using patch should work. Thanks for the help!