-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
109 lines (94 loc) · 2.68 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[build-system]
requires = [
"setuptools==75.2.0",
"setuptools-scm==8.1.0",
"wheel==0.44.0",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_file = "src/phantom/_version.py"
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
readme = {file = "README.md", content-type = "text/markdown; charset=UTF-8"}
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[project]
name = "phantom-types"
description = "Phantom types for Python"
requires-python = ">=3.9"
authors = [
{ name="Anton Agestam", email="[email protected]" },
]
license = {text = "BSD-3-Clause"}
classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Development Status :: 5 - Production/Stable",
]
dynamic = ["version", "readme"]
dependencies = [
# typeguard 4.3.0 breaks "intersection" protocols, see linked issue. I didn't figure
# out a way to work around this at the moment, so it needs to be pinned.
# https://github.com/antonagestam/phantom-types/issues/299
"typeguard>=4,!=4.3.*",
"typing_extensions>=4.3.0",
"numerary>=0.4.3",
]
[project.optional-dependencies]
phonenumbers = ["phonenumbers>=8.12.41"]
pydantic = ["pydantic>=1.9.0,<2"]
dateutil = ["python-dateutil>=2.8.2"]
hypothesis = ["hypothesis[zoneinfo]>=6.68.0"]
all = [
"phantom-types[phonenumbers]",
"phantom-types[pydantic]",
"phantom-types[dateutil]",
"phantom-types[hypothesis]",
]
test = [
"mypy>=0.991",
"pytest",
"pytest-mypy-plugins>=1.9.3",
"coverage",
]
type-check = [
"phantom-types[all]",
"mypy",
"pytest",
"types-python-dateutil",
]
docs = [
"phantom-types[all]",
"sphinx",
"sphinx-autodoc-typehints",
"furo",
]
[project.urls]
"Source Repository" = "https://github.com/antonagestam/phantom-types/"
"Documentation" = "https://phantom-types.readthedocs.io/en/stable/"
[tool.check-manifest]
ignore = ["src/phantom/_version.py"]
[tool.pip-tools]
generate-hashes = true
strip-extras = true
upgrade = true
unsafe-package = ["phantom-types"]
[tool.black]
target-version = ["py39"]
[tool.pytest.ini_options]
testpaths = ["tests", "src", "docs"]
addopts = "--mypy-ini-file=setup.cfg --mypy-only-local-stub --doctest-modules --import-mode=importlib"
markers = [
"external: mark tests that require extra dependencies",
"no_external: mark tests that will fail if run with extra dependencies",
]