-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
88 lines (76 loc) · 2.1 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
[build-system]
requires = ["poetry-core>=1.8.0"]
build-backend = "poetry.core.masonry.api"
# :see: https://greenbone.github.io/autohooks/installation.html
[tool.autohooks]
mode = "poetry"
pre-commit = [
"autohooks.plugins.black",
"autohooks.plugins.ruff",
"autohooks.plugins.mypy",
"autohooks.plugins.pytest"
]
[tool.mypy]
strict = true
# :see: https://python-poetry.org/docs/pyproject/
[tool.poetry]
name = "phx-class-registry"
version = "5.1.1"
authors = ["Phoenix Zerin <phx@phx.nz>"]
license = "MIT"
readme = "README.rst"
documentation = "https://class-registry.readthedocs.io/"
repository = "https://github.com/todofixthis/class-registry"
description = "Factory+Registry pattern for Python classes"
keywords = [
"design pattern",
"factory pattern",
"registry pattern",
"service registry",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
]
include = [
{ path = "LICENCE.txt", format = "sdist" },
{ path = "docs", format = "sdist" },
{ path = "test", format = "sdist" },
]
exclude = ["docs/_build"]
packages = [{ include = "class_registry", from = "src" }]
[tool.poetry.dependencies]
python = "^3.11"
[tool.poetry.group.dev.dependencies]
autohooks = "^24"
autohooks-plugin-black = "^23"
autohooks-plugin-mypy = "^23"
autohooks-plugin-pytest = "^23"
autohooks-plugin-ruff = "^24"
mypy = "^1"
pytest = "^8"
sphinx = "^8"
sphinx_rtd_theme = "^3"
tox = "^4"
# Used by GitHub Actions.
[tool.poetry.group.ci.dependencies]
mypy = "^1"
pytest = "^8"
sphinx = "^8"
sphinx_rtd_theme = "^3"
[tool.poetry.urls]
Changelog = "https://github.com/todofixthis/class-registry/releases"
Issues = "https://github.com/todofixthis/class-registry/issues"
[tool.pytest.ini_options]
testpaths = ["test"]
[tool.tox]
env_list = ["py313", "py312", "py311"]
[tool.tox.env_run_base]
skip_install = true
allowlist_externals = ["poetry"]
commands_pre = [["poetry", "install", "--with=ci", "--sync"]]
commands = [
["poetry", "run", "pytest"],
["poetry", "run", "mypy", "src", "test"]
]