forked from pdm-project/pdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
216 lines (192 loc) · 4.67 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
[project]
# PEP 621 project metadata
# See https://www.python.org/dev/peps/pep-0621/
authors = [
{name = "frostming", email = "[email protected]"},
]
dynamic = ["version"]
requires-python = ">=3.7"
license = {text = "MIT"}
dependencies = [
"blinker",
"click>=7",
"findpython",
"importlib-metadata; python_version < \"3.8\"",
"installer>=0.5.1,<0.6",
"packaging==21.3",
"pdm-pep517>=0.9,<1",
"pep517>=0.11.0",
"pip>=20.1",
"html5lib",
"platformdirs",
"python-dotenv>=0.15",
"resolvelib>=0.8,<0.9",
"shellingham>=1.3.2",
"tomli>=1.1.0",
"tomlkit>=0.8.0,<1",
"typing-extensions; python_version < \"3.8\"",
"wheel>=0.36.2",
]
name = "pdm"
description = "Python Development Master"
readme = "README.md"
keywords = ["packaging", "dependency", "workflow"]
classifiers = [
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
[project.urls]
Homepage = "https://pdm.fming.dev"
Repository = "https://github.com/pdm-project/pdm"
Documentation = "https://pdm.fming.dev"
Changelog = "https://pdm.fming.dev/dev/changelog/"
[project.optional-dependencies]
[project.scripts]
pdm = "pdm.core:main"
[tool.pdm]
includes = ["pdm"]
source-includes = ["tests", "CHANGELOG.md", "LICENSE", "README.md"]
# editables backend doesn't work well with namespace packages
editable-backend = "path"
version = {use_scm = true}
[tool.pdm.scripts]
pre_release = "python tasks/max_versions.py"
release = "python tasks/release.py"
test = "pytest tests/"
doc = {shell = "cd docs && mkdocs serve", help = "Start the dev server for doc preview"}
lint = "pre-commit run --all-files"
complete = {call = "tasks.complete:main", help = "Create autocomplete files for bash and fish"}
benchmark = "python tasks/benchmarks/main.py"
[tool.pdm.dev-dependencies]
test = [
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-xdist>=1.31.0"
]
doc = [
"mkdocs>=1.1",
"mkdocs-material>=7.3",
"mkdocstrings[python]>=0.18",
"markdown-include>=0.5.1",
]
workflow = [
"parver>=0.3.1",
"towncrier>=20",
"vendoring; python_version >= \"3.8\"",
"pycomplete~=0.3"
]
[tool.black]
line-length = 88
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| pdm/_vendor
| tests/fixtures
)/
'''
[tool.towncrier]
package = "pdm"
filename = "CHANGELOG.md"
issue_format = "[#{issue}](https://github.com/pdm-project/pdm/issues/{issue})"
directory = "news/"
title_format = "Release v{version} ({project_date})"
template = "news/towncrier_template.md"
underlines = "-~^"
[[tool.towncrier.type]]
directory = "feature"
name = "Features & Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "dep"
name = "Dependencies"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "Removals and Deprecations"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Miscellany"
showcontent = true
[[tool.towncrier.type]]
directory = "refactor"
name = "Refactor"
showcontent = true
[build-system]
requires = ["pdm-pep517>=0.12.0"]
build-backend = "pdm.pep517.api"
[tool.isort]
profile = "black"
atomic = true
skip_glob = ["*/setup.py", "pdm/_vendor/*"]
filter_files = true
known_first_party = ["pdm"]
known_third_party = [
"appdirs",
"click",
"cfonts",
"distlib",
"halo",
"packaging",
"pip_shims",
"pytest",
"pythonfinder",
"tomlkit"
]
[tool.vendoring]
destination = "pdm/_vendor/"
requirements = "pdm/_vendor/vendors.txt"
namespace = "pdm._vendor"
protected-files = ["__init__.py", "README.md", "vendors.txt"]
patches-dir = "tasks/patches"
[tool.vendoring.transformations]
substitute = [
{match = 'import halo\.', replace = 'import pdm._vendor.halo.'}
]
drop = [
"bin/",
"*.so",
"typing.*",
"*/tests/"
]
[tool.vendoring.typing-stubs]
halo = []
log_symbols = []
spinners = []
termcolor = []
colorama = []
[tool.vendoring.license.directories]
[tool.vendoring.license.fallback-urls]
[tool.pytest.ini_options]
filterwarnings = [
"ignore::DeprecationWarning"
]
markers = [
"network: Tests that require network",
"integration: Run with all Python versions",
"path: Tests that compare with the system paths",
"deprecated: Tests about deprecated features",
]
addopts = "-ra"