Skip to content

Commit 9ba3143

Browse files
committed
fix: enable dynamic versioning
1 parent 1613d7e commit 9ba3143

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ wikipedia = "^1.4.0"
1111
transformers = "^4.40.2"
1212
sentence-transformers = "^2.7.0"
1313

14+
15+
[tool.poetry-dynamic-versioning]
16+
enable = true
17+
vcs = "git"
18+
pattern = "^(?P<base>\\d+\\.\\d+\\.\\d+)(-?((?P<stage>[a-zA-Z]+)\\.?(?P<revision>\\d+)?))?"
19+
format-jinja = """
20+
{%- if distance == 0 -%}
21+
{{- base -}}
22+
{%- else -%}
23+
{{- base }}.dev{{ distance }}+g{{commit}}
24+
{%- endif -%}
25+
"""
26+
1427
[build-system]
15-
requires = ["poetry-core"]
16-
build-backend = "poetry.core.masonry.api"
28+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
29+
build-backend = "poetry_dynamic_versioning.backend"

0 commit comments

Comments
 (0)