Closed chfast closed 3 years ago
You have to search for current_version
, not new_version
.
If you don't specify parse
or serialize
for a file then those settings are taken from the main configuration.
You have to search for
current_version
, notnew_version
.
I want to search for {new_version}
as stated.
That's not possible... The new_version
is not yet known at that point.
First, current_version
is searched and only then is this used to calculate new_version
.
To clarify, searching current_version
is done for all files, and bumpversion enforces that all the files have the same version number.
I'm going to classify this as an unsupported use case.
This config does not work, I get
KeyError
of"new_version"
.It is also unclear if parsing/serializing is done for every file individually or if the result values are taken from main config if
parse
andserialize
sections are not present in[file]
section.Why this can be useful?