generated from pdm-project/pdm
-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
pyproject.toml
108 lines (93 loc) · 2.37 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
[project]
# PEP 621 project metadata
# https://www.python.org/dev/peps/pep-0621
name = "pdm-backend"
description = "The build backend used by PDM that supports latest packaging standards"
authors = [
{ name = "Frost Ming", email = "me@frostming.com" }
]
license = {text = "MIT"}
requires-python = ">=3.8"
readme = "README.md"
keywords = ["packaging", "PEP 517", "build"]
dynamic = ["version"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"importlib-metadata>=3.6; python_version < \"3.10\""
]
[project.urls]
Homepage = "https://github.com/pdm-project/pdm-backend"
Repository = "https://github.com/pdm-project/pdm-backend"
Documentation = "https://backend.pdm-project.org"
[build-system]
requires = []
build-backend = "pdm.backend.intree"
backend-path = ["src"]
[tool.ruff]
src = ["src"]
target-version = "py38"
exclude = ["tests/fixtures"]
[tool.ruff.lint]
extend-select = [
"I", # isort
"C4", # flake8-comprehensions
"W", # pycodestyle
"YTT", # flake8-2020
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
known-first-party = ["pdm.backend"]
[tool.vendoring]
destination = "src/pdm/backend/_vendor/"
requirements = "src/pdm/backend/_vendor/vendor.txt"
namespace = "pdm.backend._vendor"
patches-dir = "scripts/patches"
protected-files = ["__init__.py", "README.md", "vendor.txt"]
[tool.vendoring.transformations]
substitute = []
drop = [
"bin/",
"*.so",
"typing.*",
"*/tests/",
"**/test_*.py",
"**/*_test.py"
]
[tool.pdm.version]
source = "scm"
[tool.pdm.build]
includes = ["src"]
package-dir = "src"
source-includes = ["tests"]
[tool.pdm.dev-dependencies]
test = [
"pytest",
"pytest-cov",
"pytest-xdist",
"setuptools",
]
dev = [
"editables>=0.3",
"pre-commit>=2.21.0",
"vendoring>=1.2.0; python_version ~= \"3.8\"",
"ruff>=0.4.1",
]
docs = [
"mkdocs>=1.4.2",
"mkdocstrings[python]>=0.19.0",
"mkdocs-material>=8.5.10",
"mkdocs-version-annotations>=1.0.0",
]
[tool.pdm.scripts]
build = "python scripts/build.py"
docs = "mkdocs serve"