Debian Codegraph @

pyproject.toml

raw
1 [build-system]
2 requires = ["pdm-backend"]
3 build-backend = "pdm.backend"
4
5 [project]
6 name = "mkdocstrings-python"
7 description = "A Python handler for mkdocstrings."
8 authors = [{name = "Timothée Mazzucotelli", email = "[email protected]"}]
9 license = "ISC"
10 license-files = ["LICENSE"]
11 readme = "README.md"
12 requires-python = ">=3.10"
13 keywords = []
14 dynamic = ["version"]
15 classifiers = [
16 "Development Status :: 4 - Beta",
17 "Intended Audience :: Developers",
18 "Programming Language :: Python",
19 "Programming Language :: Python :: 3",
20 "Programming Language :: Python :: 3 :: Only",
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 "Programming Language :: Python :: 3.14",
26 "Topic :: Documentation",
27 "Topic :: Software Development",
28 "Topic :: Software Development :: Documentation",
29 "Topic :: Utilities",
30 "Typing :: Typed",
31 ]
32 dependencies = [
33 "mkdocstrings>=0.30",
34 "mkdocs-autorefs>=1.4",
35 "griffelib>=2.0",
36 "typing-extensions>=4.0; python_version < '3.11'",
37 ]
38
39 [project.urls]
40 Homepage = "https://mkdocstrings.github.io/python"
41 Documentation = "https://mkdocstrings.github.io/python"
42 Changelog = "https://mkdocstrings.github.io/python/changelog"
43 Repository = "https://github.com/mkdocstrings/python"
44 Issues = "https://github.com/mkdocstrings/python/issues"
45 Discussions = "https://github.com/mkdocstrings/python/discussions"
46 Gitter = "https://gitter.im/mkdocstrings/python"
47 Funding = "https://github.com/sponsors/pawamoy"
48
49 [tool.pdm.version]
50 source = "call"
51 getter = "scripts.get_version:get_version"
52
53 [tool.pdm.build]
54 package-dir = "src"
55 includes = ["src/mkdocstrings_handlers"]
56 editable-backend = "editables"
57
58 # Include as much as possible in the source distribution, to help redistributors.
59 excludes = ["**/.pytest_cache", "**/.mypy_cache"]
60 source-includes = [
61 "config",
62 "docs",
63 "scripts",
64 "share",
65 "tests",
66 "duties.py",
67 "mkdocs.yml",
68 "*.md",
69 "LICENSE",
70 ]
71
72 [tool.pdm.build.wheel-data]
73 # Manual pages can be included in the wheel.
74 # Depending on the installation tool, they will be accessible to users.
75 # pipx supports it, uv does not yet, see https://github.com/astral-sh/uv/issues/4731.
76 data = [
77 {path = "share/**/*", relative-to = "."},
78 ]
79
80 [dependency-groups]
81 maintain = [
82 "build>=1.2",
83 "git-changelog>=2.5",
84 "twine>=5.1",
85 "yore>=0.3.3",
86 ]
87 ci = [
88 "beautifulsoup4>=4.12.3",
89 "black>=25.1",
90 "duty>=1.6",
91 "griffe>=2.1",
92 "inline-snapshot>=0.25",
93 "mypy>=1.10",
94 "pytest>=8.2",
95 "pytest-cov>=5.0",
96 "pytest-randomly>=3.15",
97 "pytest-xdist>=3.6",
98 "types-markdown>=3.6",
99 "types-pyyaml>=6.0",
100 "ruff>=0.4",
101 ]
102 docs = [
103 "markdown-callouts>=0.4",
104 "markdown-exec>=1.8",
105 "mkdocs>=1.6",
106 "mkdocs-coverage>=1.0",
107 "mkdocs-git-revision-date-localized-plugin>=1.2",
108 "mkdocs-llmstxt>=0.2",
109 "mkdocs-material>=9.5",
110 "mkdocs-minify-plugin>=0.8",
111 "mkdocs-redirects>=1.2",
112 "mkdocs-section-index>=0.3",
113 "mkdocstrings>=0.29",
114 "pydantic>=2.10",
115 # YORE: EOL 3.10: Remove line.
116 "tomli>=2.0; python_version < '3.11'",
117 ]
118
119 [tool.inline-snapshot]
120 storage-dir = "tests/snapshots"
121 format-command = "ruff format --config config/ruff.toml --stdin-filename {filename}"
122
123 [tool.uv]
124 default-groups = ["maintain", "ci", "docs"]