Skip to content

Commit 52b4398

Browse files
Support matching post-release tags like 7.9.0.post1 (#449)
1 parent 8d79a05 commit 52b4398

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Oct 16 2019 v2.0.0: Complete change of IndicoIo API through the Indico IPA platform. For IPA Platform API use only.
2+
Mar 13 2026 Unreleased: Support matching release tags that include dotted PEP 440 suffixes (for example `7.9.0.post1`) in dynamic versioning.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ source = "uv-dynamic-versioning"
3737
[tool.uv-dynamic-versioning]
3838
fallback-version = "0.0.0"
3939
vcs = "git"
40-
pattern = "^(?P<base>\\d+(?:\\.\\d+)*)(?:-(?P<stage>[a-zA-Z]+)(?P<revision>\\d+)?)?"
40+
pattern = "^(?P<base>\\d+(?:\\.\\d+)*)(?:(?:[-\\.])(?P<stage>[a-zA-Z]+)(?P<revision>\\d+)?)?$"
4141

4242
[tool.uv]
4343
cache-keys = [{ file = "pyproject.toml" }, { git = { commit = true, tags = true } }]

0 commit comments

Comments
 (0)