Fixes
-
Fixed warnings in documentation. 782077d
-
Refactored PEP621 tests into a class. 2a4f12a
The tests are pretty much the same but renamed for clarity.
-
Fixed: allow omitting the current version in sample-config. 6b369fe
If the current version is explicitly left empty during the
sample-config
questionnaire, the resultingtool.bumpversion
table
now lacks acurrent_version
key, and will fall back to PEP 621
project.version
(if not dynamic). The instruction text specifically
hints at this new functionality.
New
-
Add test for moveable tags. df787f1
-
New feature: retrieve and update the PEP 621 project version, if possible. 3032450
When determining the current version, and if
tool.bumpversion.current_version
is not set, attempt to retrieve the
version fromproject.version
à la PEP 621. If that setting is not
set, or if the version is explicitly marked as dynamically set, then
continue with querying SCM tags.When updating the configuration during bumping, if we previously
successfully retrieved a PEP 621 version, then update the
project.version
field inpyproject.toml
as well. We always update,
even if the true current version was read from
tool.bumpversion.current_version
instead ofproject.version
.The docs have been updated; specifically, the "multiple replacements in
one file" howto and the reference forcurrent_version
.The tests have been adapted: the new
pep621_info
property would
otherwise trip up the old test output, and theNone
default would trip
up the TOML serializer. Additionally, new tests assert that
project.version
(and correspondingly, thepep621_info
property) is
correctly honored or ignored, depending on the other circumstances.
Other
-
[pre-commit.ci] pre-commit autoupdate. 59e8634
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7
Updates
- Updated documentation. 8162dd8