Skip to content

Commit 560b4b3

Browse files
committed
Use poetry-dynamic-versioning instead of pdm
1 parent e77cbf8 commit 560b4b3

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,15 @@ document = "https://docxtpl.readthedocs.org"
4444
[tool.poetry]
4545
version = "0.0.0"
4646

47-
[tool.poetry-plugin-version]
47+
[tool.poetry.requires-plugins]
48+
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
49+
50+
[tool.poetry-dynamic-versioning]
51+
enable = true
52+
53+
[tool.poetry-dynamic-versioning.from-file]
4854
source = "docxtpl/__init__.py"
55+
pattern = '__version__ = "(.+)"'
4956

5057
[tool.mypy]
5158
pretty = true
@@ -58,9 +65,6 @@ exclude = ["docs", "build", "setup.py"]
5865
module = ["docxcompose.*"]
5966
ignore_missing_imports = true
6067

61-
[tool.pdm]
62-
version = {source="file", path="docxtpl/__init__.py"}
63-
6468
[build-system]
65-
requires = ["pdm-backend"]
66-
build-backend = "pdm.backend"
69+
requires = ["poetry-core", "poetry-dynamic-versioning >=1.0.0,<2.0.0"]
70+
build-backend = "poetry_dynamic_versioning.backend"

0 commit comments

Comments
 (0)