Skip to content

Commit

Permalink
fix: enable dynamic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
lkaesberg committed May 7, 2024
1 parent 1613d7e commit 9ba3143
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ wikipedia = "^1.4.0"
transformers = "^4.40.2"
sentence-transformers = "^2.7.0"


[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "^(?P<base>\\d+\\.\\d+\\.\\d+)(-?((?P<stage>[a-zA-Z]+)\\.?(?P<revision>\\d+)?))?"
format-jinja = """
{%- if distance == 0 -%}
{{- base -}}
{%- else -%}
{{- base }}.dev{{ distance }}+g{{commit}}
{%- endif -%}
"""

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"

0 comments on commit 9ba3143

Please sign in to comment.