Debian Codegraph @

pyproject.toml

raw
1 [build-system]
2 requires = ["hatchling>=1.21.0"]
3 build-backend = "hatchling.build"
4
5 [project]
6 name = "dnspython"
7 description = "DNS toolkit"
8 authors = [{ name = "Bob Halley", email = "[email protected]" }]
9 license = { text = "ISC" }
10 classifiers = [
11 "Development Status :: 5 - Production/Stable",
12 "Intended Audience :: Developers",
13 "Intended Audience :: System Administrators",
14 "License :: OSI Approved :: ISC License (ISCL)",
15 "Operating System :: POSIX",
16 "Operating System :: Microsoft :: Windows",
17 "Programming Language :: Python",
18 "Topic :: Internet :: Name Service (DNS)",
19 "Topic :: Software Development :: Libraries :: Python Modules",
20 "Programming Language :: Python :: 3",
21 "Programming Language :: Python :: 3.10",
22 "Programming Language :: Python :: 3.11",
23 "Programming Language :: Python :: 3.12",
24 "Programming Language :: Python :: 3.13",
25 ]
26 readme = "README.md"
27 requires-python = ">=3.10"
28 dependencies = []
29 dynamic = ["version"]
30
31 [project.optional-dependencies]
32 dev = [
33 "black>=25.1.0",
34 "coverage>=7.0",
35 "hypercorn>=0.17.0",
36 "flake8>=7",
37 "mypy>=1.17",
38 "pylint>=3",
39 "pytest>=8.4",
40 "pytest-cov>=6.2.0",
41 "quart-trio>=0.12.0",
42 "sphinx>=8.2.0",
43 "sphinx-rtd-theme>=3.0.0",
44 "twine>=6.1.0",
45 "wheel>=0.45.0",
46 ]
47 dnssec = ["cryptography>=45"]
48 doh = ["httpcore>=1.0.0", "httpx>=0.28.0", "h2>=4.2.0"]
49 doq = ["aioquic>=1.2.0"]
50 idna = ["idna>=3.10"]
51 trio = ["trio>=0.30"]
52 wmi = ["wmi>=1.5.1; platform_system=='Windows'"]
53
54 [project.urls]
55 homepage = "https://www.dnspython.org"
56 repository = "https://github.com/rthalley/dnspython.git"
57 documentation = "https://dnspython.readthedocs.io/en/stable/"
58 issues = "https://github.com/rthalley/dnspython/issues"
59
60 [tool.hatch.build.targets.sdist]
61 include = [
62 "/dns/*.py",
63 "/dns/**/*.py",
64 "/dns/py.typed",
65 "/examples/*.txt",
66 "/examples/*.py",
67 "/tests/*.txt",
68 "/tests/*.py",
69 "/tests/*.good",
70 "/tests/example",
71 "/tests/query",
72 "/tests/*.pickle",
73 "/tests/*.text",
74 "/tests/*.generic",
75 "/tests/tls/*.crt",
76 "/tests/tls/*.pem",
77 "/util/**",
78 ]
79
80 [tool.hatch.build.targets.wheel]
81 include = ["dns/*.py", "dns/**/*.py", "dns/py.typed"]
82
83 [tool.hatch.envs.default]
84 features = ["trio", "dnssec", "idna", "doh", "doq", "dev"]
85 #installer = "uv"
86
87 [tool.hatch.version]
88 source = "code"
89 path = "dns/version.py"
90 expression = "version"
91
92 [tool.ruff]
93 lint.select = [
94 # pycodestyle
95 "E",
96 # Pyflakes
97 "F",
98 # pyupgrade
99 "UP",
100 # flake8-bugbear
101 "B",
102 # isort
103 "I",
104 ]
105 lint.ignore = [
106 "E501",
107 "E741",
108 "I001",
109 "B904",
110 "B011",
111 "UP006",
112 "UP035",
113 ]
114 lint.exclude = ["tests/*"]
115
116 [tool.isort]
117 profile = "black"
118
119 [[tool.mypy.overrides]]
120 module = "pythoncom"
121 ignore_missing_imports = true
122
123 [[tool.mypy.overrides]]
124 module = "wmi"
125 ignore_missing_imports = true
126
127 [tool.pyright]
128 reportUnsupportedDunderAll = false
129 exclude = ["dns/win32util.py", "examples/*.py", "tests/*.py"]