generated from Hochfrequenz/python_template_repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
88 lines (74 loc) · 2.46 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[project]
name = "ebd-toolchain"
description = "Combines the features of ebdamame and rebdhuhn to automatically generate SVGs from EBD.docx files"
license = { text = "GPL-3.0-or-later" }
requires-python = ">=3.11"
authors = [{ name = "Hochfrequenz Unternehmensberatung GmbH", email = "[email protected]" }]
keywords = ["EBD", "rebdhuhn", "ebdamame", "scraping", "python-docx", "kroki", "entscheidungsbaumdiagramm"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"ebdamame>=0.4.0",
"rebdhuhn>=0.8.0",
"cattrs",
"click",
"pydantic-settings"
# add all the dependencies here
]
dynamic = ["readme", "version"]
[project.optional-dependencies]
coverage = ["coverage==7.6.10"]
formatting = ["black==24.10.0", "isort==5.13.2"]
linting = ["pylint==3.3.3"]
spellcheck = ["codespell==2.3.0"]
test_packaging = ["build==1.2.2.post1", "twine==6.0.1"]
tests = ["pytest==8.3.4"]
type_check = ["mypy==1.14.1"]
[project.urls]
Changelog = "https://github.com/Hochfrequenz/ebd_toolchain/releases"
Homepage = "https://github.com/Hochfrequenz/ebd_toolchain"
[tool.black]
line-length = 120
target_version = ["py311", "py312"]
[tool.isort]
line_length = 120
profile = "black"
[tool.pylint."MESSAGES CONTROL"]
max-line-length = 120
[mypy]
truethy-bool = true
[tool.mypy]
disable_error_code = []
[project.scripts]
scrape_and_plot = "ebd_toolchain.main:main"
# `package.model:func` syntax:
# 1. `ebd_toolchain` is the package in the src directory
# 2. `.main` means the main.py module inside the ebd_toolchain package
# 3. `:main` means the main(...) function inside the main.py module
[build-system]
requires = ["hatchling>=1.8.0", "hatch-vcs", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
fragments = [{ path = "README.md" }]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/_ebd_toolchain_version.py"
template = '''
version = "{version}"
'''
[tool.hatch.build.targets.sdist]
exclude = ["/unittests"]
[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]