|
1 | | -[tool.poetry] |
| 1 | +[project] |
2 | 2 | name = "docxtpl" |
3 | | -version = "0.17.0" |
| 3 | +dynamic = ["version"] |
4 | 4 | description = "Python docx template engine" |
5 | | -authors = ["Eric Lapouyade"] |
| 5 | +authors = [{name="Eric Lapouyade", email="elapouya@proton.me"}] |
6 | 6 | readme = "README.rst" |
| 7 | +requires-python = ">=3.7" |
| 8 | +license = {text="LGPL-2.1-only"} |
| 9 | +classifiers=[ |
| 10 | + "Intended Audience :: Developers", |
| 11 | + "Development Status :: 4 - Beta", |
| 12 | + "Programming Language :: Python :: 3", |
| 13 | + "Programming Language :: Python :: 3.7", |
| 14 | + "Programming Language :: Python :: 3.8", |
| 15 | + "Programming Language :: Python :: 3.9", |
| 16 | + "Programming Language :: Python :: 3.10", |
| 17 | + "Programming Language :: Python :: 3.11", |
| 18 | + "Programming Language :: Python :: 3.12", |
| 19 | + "Programming Language :: Python :: 3.13", |
| 20 | +] |
| 21 | +keywords = ["jinja2"] |
| 22 | +dependencies = [ |
| 23 | + "python-docx", |
| 24 | + "jinja2", |
| 25 | + "lxml", |
| 26 | +] |
| 27 | + |
| 28 | +[project.optional-dependencies] |
| 29 | +subdoc = ["docxcompose"] |
| 30 | +docs = ["Sphinx", "sphinxcontrib-napoleon"] |
| 31 | + |
| 32 | +[dependency-groups] |
| 33 | +dev = [ |
| 34 | + "mypy >=1.18.2; python_version >= '3.9'", |
| 35 | + "lxml-stubs >=0.5.1; python_version >= '3.9'", |
| 36 | + "flake8 >=7.3.0; python_version >= '3.9'" |
| 37 | +] |
| 38 | + |
| 39 | +[project.urls] |
| 40 | +homepage = "https://github.com/elapouya/python-docx-template" |
| 41 | +repository = "https://github.com/elapouya/python-docx-template.git" |
| 42 | +document = "https://docxtpl.readthedocs.org" |
| 43 | + |
| 44 | +[tool.poetry] |
| 45 | +version = "0.0.0" |
| 46 | + |
| 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 |
7 | 52 |
|
8 | | -[tool.poetry.dependencies] |
9 | | -python = "^3.11" |
10 | | -python-docx = "^1.1.2" |
11 | | -docxcompose = "^1.4.0" |
12 | | -jinja2 = "^3.1.4" |
13 | | -black = "^24.4.2" |
14 | | -twine = "^6.1.0" |
| 53 | +[tool.poetry-dynamic-versioning.from-file] |
| 54 | +source = "docxtpl/__init__.py" |
| 55 | +pattern = '__version__ = "(.+)"' |
15 | 56 |
|
| 57 | +[tool.mypy] |
| 58 | +pretty = true |
| 59 | +python_version = "3.9" |
| 60 | +check_untyped_defs = true |
| 61 | +warn_unused_ignores = true |
| 62 | +exclude = ["docs", "build", "setup.py"] |
16 | 63 |
|
17 | | -[tool.poetry.group.dev.dependencies] |
18 | | -flake8 = "^7.1.0" |
| 64 | +[[tool.mypy.overrides]] |
| 65 | +module = ["docxcompose.*"] |
| 66 | +ignore_missing_imports = true |
19 | 67 |
|
20 | 68 | [build-system] |
21 | | -requires = ["poetry-core"] |
22 | | -build-backend = "poetry.core.masonry.api" |
| 69 | +requires = ["poetry-core", "poetry-dynamic-versioning >=1.0.0,<2.0.0"] |
| 70 | +build-backend = "poetry_dynamic_versioning.backend" |
0 commit comments