Skip to content

Commit 0c5fa88

Browse files
committed
feat: add dynamic versioning
1 parent 36382e3 commit 0c5fa88

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
.idea
1+
.idea
2+
*.tar.gz
3+
*.whl

pyproject.toml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "contextplus"
3-
version = "0.1.0"
3+
version = "0.0.0"
44
description = ""
55
authors = ["Florian Wunderlich"]
66
readme = "README.md"
@@ -11,7 +11,18 @@ wikipedia = "^1.4.0"
1111
transformers = "^4.40.2"
1212
sentence-transformers = "^2.7.0"
1313

14+
[tool.poetry-dynamic-versioning]
15+
enable = true
16+
vcs = "git"
17+
pattern = "^(?P<base>\\d+\\.\\d+\\.\\d+)(-?((?P<stage>[a-zA-Z]+)\\.?(?P<revision>\\d+)?))?"
18+
format-jinja = """
19+
{%- if distance == 0 -%}
20+
{{- base -}}
21+
{%- else -%}
22+
{{- base }}.dev{{ distance }}+g{{commit}}
23+
{%- endif -%}
24+
"""
1425

1526
[build-system]
16-
requires = ["poetry-core"]
17-
build-backend = "poetry.core.masonry.api"
27+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
28+
build-backend = "poetry_dynamic_versioning.backend"

0 commit comments

Comments
 (0)