Debian Codegraph @

pyproject.toml

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 [build-system]
2 requires = ["flit_core>=3.12"]
3 build-backend = "flit_core.buildapi"
4
5 # project metadata
6 [project]
7 name = "Sphinx"
8 description = "Python documentation generator"
9 readme = "README.rst"
10 urls.Changelog = "https://www.sphinx-doc.org/en/master/changes.html"
11 urls.Code = "https://github.com/sphinx-doc/sphinx"
12 urls.Documentation = "https://www.sphinx-doc.org/"
13 urls.Download = "https://pypi.org/project/Sphinx/"
14 urls.Homepage = "https://www.sphinx-doc.org/"
15 urls."Issue tracker" = "https://github.com/sphinx-doc/sphinx/issues"
16 license = "BSD-2-Clause"
17 license-files = [
18 "LICENSE.rst",
19 ]
20 requires-python = ">=3.12"
21
22 # Classifiers list: https://pypi.org/classifiers/
23 classifiers = [
24 "Development Status :: 5 - Production/Stable",
25 "Environment :: Console",
26 "Environment :: Web Environment",
27 "Intended Audience :: Developers",
28 "Intended Audience :: Education",
29 "Intended Audience :: End Users/Desktop",
30 "Intended Audience :: Information Technology",
31 "Intended Audience :: Other Audience",
32 "Intended Audience :: Science/Research",
33 "Intended Audience :: System Administrators",
34 "Operating System :: OS Independent",
35 "Programming Language :: Python",
36 "Programming Language :: Python :: 3",
37 "Programming Language :: Python :: 3 :: Only",
38 "Programming Language :: Python :: 3.12",
39 "Programming Language :: Python :: 3.13",
40 "Programming Language :: Python :: 3.14",
41 "Programming Language :: Python :: 3.15",
42 "Programming Language :: Python :: Implementation :: CPython",
43 "Programming Language :: Python :: Implementation :: PyPy",
44 "Framework :: Sphinx",
45 "Framework :: Sphinx :: Domain",
46 "Framework :: Sphinx :: Extension",
47 "Framework :: Sphinx :: Theme",
48 "Topic :: Documentation",
49 "Topic :: Documentation :: Sphinx",
50 "Topic :: Education",
51 "Topic :: Internet :: WWW/HTTP :: Site Management",
52 "Topic :: Internet :: WWW/HTTP :: Site Management :: Link Checking",
53 "Topic :: Printing",
54 "Topic :: Software Development",
55 "Topic :: Software Development :: Documentation",
56 "Topic :: Text Editors :: Documentation",
57 "Topic :: Text Processing",
58 "Topic :: Text Processing :: General",
59 "Topic :: Text Processing :: Indexing",
60 "Topic :: Text Processing :: Markup",
61 "Topic :: Text Processing :: Markup :: HTML",
62 "Topic :: Text Processing :: Markup :: LaTeX",
63 "Topic :: Text Processing :: Markup :: Markdown",
64 "Topic :: Text Processing :: Markup :: reStructuredText",
65 "Topic :: Text Processing :: Markup :: XML",
66 "Topic :: Utilities",
67 "Typing :: Typed",
68 ]
69 dependencies = [
70 "sphinxcontrib-applehelp>=1.0.7",
71 "sphinxcontrib-devhelp>=1.0.6",
72 "sphinxcontrib-htmlhelp>=2.0.6",
73 "sphinxcontrib-jsmath>=1.0.1",
74 "sphinxcontrib-qthelp>=1.0.6",
75 "sphinxcontrib-serializinghtml>=1.1.9",
76 "Jinja2>=3.1",
77 "Pygments>=2.17",
78 "docutils>=0.21,<0.23",
79 "snowballstemmer>=2.2",
80 "babel>=2.13",
81 "alabaster>=0.7.14",
82 "imagesize>=1.3",
83 "requests>=2.30.0",
84 "roman-numerals>=1.0.0",
85 "packaging>=23.0",
86 "colorama>=0.4.6; sys_platform == 'win32'",
87 ]
88 dynamic = ["version"]
89
90 [[project.authors]]
91 name = "Adam Turner"
92 email = "[email protected]"
93
94 [[project.authors]]
95 name = "Georg Brandl"
96 email = "[email protected]"
97
98 [project.scripts]
99 sphinx-build = "sphinx.cmd.build:main"
100 sphinx-quickstart = "sphinx.cmd.quickstart:main"
101 sphinx-apidoc = "sphinx.ext.apidoc:main"
102 sphinx-autogen = "sphinx.ext.autosummary.generate:main"
103
104 [dependency-groups]
105 docs = [
106 "sphinxcontrib-websupport",
107 ]
108 lint = [
109 "ruff==0.14.9",
110 "sphinx-lint>=0.9",
111 ]
112 package = [
113 "build",
114 "pypi-attestations==0.0.28",
115 "twine>=6.1",
116 ]
117 test = [
118 "pytest>=9.0",
119 "pytest-xdist[psutil]>=3.4",
120 "cython>=3.0", # for Cython compilation
121 "defusedxml>=0.7.1", # for secure XML/HTML parsing
122 "setuptools>=70.0", # for Cython compilation
123 "typing_extensions>=4.9", # for typing_extensions.Unpack
124 ]
125 translations = [
126 "babel>=2.13",
127 "Jinja2>=3.1",
128 ]
129 types = [
130 "mypy==1.19.1",
131 "pyrefly",
132 "pyright==1.1.407",
133 "ty",
134 { include-group = "type-stubs" },
135 ]
136 type-stubs = [
137 # align with versions used elsewhere
138 "types-colorama==0.4.15.20250801",
139 "types-defusedxml==0.7.0.20250822",
140 "types-docutils==0.22.3.20251115",
141 "types-Pillow==10.2.0.20240822",
142 "types-Pygments==2.19.0.20251121",
143 "types-requests==2.32.4.20250913",
144 "types-urllib3==1.26.25.14",
145 ]
146
147 [tool.flit.module]
148 name = "sphinx"
149
150 [tool.flit.sdist]
151 include = [
152 "LICENSE.rst",
153 "AUTHORS.rst",
154 "CHANGES.rst",
155 # Documentation
156 "doc/",
157 "CODE_OF_CONDUCT.rst", # used as an include in the Documentation
158 "EXAMPLES.rst", # used as an include in the Documentation
159 # Tests
160 "tests/",
161 "tox.ini",
162 # Utilities
163 "utils/",
164 "babel.cfg",
165 ]
166 exclude = [
167 "doc/_build",
168 ]
169
170 [tool.mypy]
171 files = [
172 "doc/conf.py",
173 "doc/development/tutorials/examples/autodoc_intenum.py",
174 "doc/development/tutorials/examples/helloworld.py",
175 "sphinx",
176 "tests",
177 "utils",
178 ]
179 exclude = [
180 "tests/roots",
181 ]
182 python_version = "3.12"
183 strict = true
184 show_column_numbers = true
185 show_error_context = true
186 strict_equality = false
187 warn_return_any = false
188 enable_error_code = [
189 "type-arg",
190 "redundant-self",
191 "truthy-iterable",
192 "ignore-without-code",
193 "unused-awaitable",
194 ]
195
196 [[tool.mypy.overrides]]
197 module = [
198 "sphinx.domains.c",
199 "sphinx.domains.c._ast",
200 "sphinx.domains.c._parser",
201 "sphinx.domains.c._symbol",
202 "sphinx.domains.cpp",
203 "sphinx.domains.cpp._ast",
204 "sphinx.domains.cpp._parser",
205 "sphinx.domains.cpp._symbol",
206 ]
207 strict_optional = false
208
209 [[tool.mypy.overrides]]
210 module = [
211 "imagesize",
212 "pyximport",
213 "snowballstemmer",
214 ]
215 ignore_missing_imports = true
216
217 [[tool.mypy.overrides]]
218 module = [
219 # tests/
220 "tests.test_search",
221 # tests/test_config
222 "tests.test_config.test_config",
223 # tests/test_directives
224 "tests.test_directives.test_directive_other",
225 # tests/test_domains
226 "tests.test_domains.test_domain_c",
227 "tests.test_domains.test_domain_cpp",
228 "tests.test_domains.test_domain_js",
229 "tests.test_domains.test_domain_py",
230 "tests.test_domains.test_domain_py_fields",
231 "tests.test_domains.test_domain_py_pyfunction",
232 "tests.test_domains.test_domain_py_pyobject",
233 "tests.test_domains.test_domain_std",
234 # tests/test_environment
235 "tests.test_environment.test_environment_toctree",
236 # tests/test_ext_autodoc
237 "tests.test_ext_autodoc.test_ext_autodoc",
238 "tests.test_ext_autodoc.test_ext_autodoc_mock",
239 # tests/test_ext_autosummary
240 "tests.test_ext_autosummary.test_ext_autosummary",
241 # tests/test_ext_intersphinx
242 "tests.test_ext_intersphinx.test_ext_intersphinx",
243 # tests/test_ext_napoleon
244 "tests.test_ext_napoleon.test_ext_napoleon_docstring",
245 # tests/test_extensions
246 "tests.test_extensions.test_ext_apidoc",
247 "tests.test_extensions.test_ext_inheritance_diagram",
248 # tests/test_util
249 "tests.test_util.test_util_inspect",
250 "tests.test_util.test_util_nodes",
251 "tests.test_util.test_util_typing",
252 ]
253 check_untyped_defs = false
254 disable_error_code = [
255 "annotation-unchecked",
256 ]
257 disallow_untyped_calls = false
258 disallow_untyped_defs = false
259
260 [[tool.mypy.overrides]]
261 module = ["tests.test_util.typing_test_data"]
262 ignore_errors = true
263
264 [tool.coverage.run]
265 branch = true
266 parallel = true
267 source = ['sphinx']
268
269 [tool.coverage.report]
270 exclude_lines = [
271 # Have to re-enable the standard pragma
272 'pragma: no cover',
273 # Don't complain if tests don't hit defensive assertion code:
274 'raise NotImplementedError',
275 # Don't complain if non-runnable code isn't run:
276 'if __name__ == .__main__.:',
277 ]
278 ignore_errors = true
279
280 [tool.pyright]
281 typeCheckingMode = "strict"
282 include = [
283 "doc/conf.py",
284 "doc/development/tutorials/examples/autodoc_intenum.py",
285 "doc/development/tutorials/examples/helloworld.py",
286 "sphinx",
287 "tests",
288 "utils",
289 ]
290 exclude = [
291 "tests/roots",
292 ]
293
294 reportArgumentType = "none"
295 reportAssignmentType = "none"
296 reportAttributeAccessIssue = "none"
297 reportCallIssue = "none"
298 reportConstantRedefinition = "none"
299 reportGeneralTypeIssues = "none"
300 reportIncompatibleMethodOverride = "none"
301 reportIncompatibleVariableOverride = "none"
302 reportIndexIssue = "none"
303 reportInvalidTypeForm = "none"
304 reportMissingImports = "none"
305 reportMissingModuleSource = "none"
306 reportMissingParameterType = "none"
307 reportMissingTypeArgument = "none"
308 reportMissingTypeStubs = "none"
309 reportOperatorIssue = "none"
310 reportOptionalMemberAccess = "none"
311 reportOptionalSubscript = "none"
312 reportPossiblyUnboundVariable = "none"
313 reportPrivateUsage = "none"
314 reportRedeclaration = "none"
315 reportReturnType = "none"
316 reportUnknownArgumentType = "none"
317 reportUnknownLambdaType = "none"
318 reportUnknownMemberType = "none"
319 reportUnknownParameterType = "none"
320 reportUnknownVariableType = "none"
321 reportUnnecessaryComparison = "none"
322 reportUnnecessaryIsInstance = "none"
323 reportUntypedBaseClass = "none"
324 reportUntypedNamedTuple = "none"
325 reportUnusedClass = "none"
326 reportUnusedFunction = "none"
327 reportUnusedImport = "none"
328 reportUnusedVariable = "none"
329
330 [tool.uv]
331 default-groups = "all"