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 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
|
[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.9"
readme = "README.md"
keywords = ["packaging", "PEP 517", "build"]
version = "2.4.4"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3",
"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",
]
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
"UP", # pyupgrade
"FA", # flake8-annotations
]
[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 = [
{match = "import packaging", replace = "import pdm.backend._vendor.packaging"},
]
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-gitconfig",
"pytest-xdist",
"setuptools",
]
dev = [
"editables>=0.3",
"pre-commit>=2.21.0",
"vendoring>=1.2.0; python_version ~= \"3.8\"",
]
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"
test = "pytest"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
ignore_errors = true
[tool.mypy]
ignore_missing_imports = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_untyped_decorators = true
explicit_package_bases = true
namespace_packages = true
[[tool.mypy.overrides]]
module = "pdm.backend._vendor.*"
ignore_errors = true
|