Closed unkcpz closed 2 years ago
With some investigation, the pattern_str
used for this case is:
'aiidalab\\-qe\\-workchain@https://github\\.com/aiidalab/aiidalab\\-qe/releases/download/v(?P<year_y>[0-9]{2})\\.(?P<month>1[0-2]|0[1-9])\\.(?P<patch>[0-9]+)(?:(?P<pytag>post|rc|a|b)(?P<num>[0-9]+))?/aiidalab_qe_workchain\\-0Y\\.(?P<month>1[0-2]|[1-9])\\.PATCH(?:PYTAGNUM)?\\-py3\\-none\\-any\\.whl'
I think only the group index needs to be increased to match the position when more than one pattern is used in one line.
Nice catch, yes it should be possible to handle this somehow.
@mbarkhau thanks a lot for the quick fix. 🚀
The
bumpver
tool is really great but we now can not figure out how to use it for our new version replacement case. We have a package dependency defined insetup.cfg
that needs to update with every releaseWe defined the pattern as:
However,
bumpver update --dry-run
end up with the error:Is that already supported to have two matches in one line? If not how can I set the pattern for the replacement. Thanks!