Skip to content

Commit 79fda89

Browse files
author
Charly Laurent
authored
ci: fix poetry-dynamic-versioning configuration (#161)
- poetry-dynamic-versioning default regex doesn't find the version in our tags. It expects something like `v0.1.2`, but we use `0.1.2` (without the `v` prefix). - PyPI doesn't support the local version in the build name. poetry-dynamic-versioning create something like `sql_compare-0.0.0.post1.dev0+fa3962d-py3-none-any.whl`, whild PyPI expects something like `sql_compare-0.1.7-py3-none-any.whl`
1 parent fa3962d commit 79fda89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
5353

5454
[tool.poetry-dynamic-versioning]
5555
enable = true
56+
vcs = "git"
57+
pattern = "^(?P<base>\\d+(\\.\\d+)*)"
58+
format = "{base}"
5659

5760
[build-system]
5861
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]

0 commit comments

Comments
 (0)