forked from morepath/morepath
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
216 lines (191 loc) · 5.15 KB
/
Copy pathpyproject.toml
File metadata and controls
216 lines (191 loc) · 5.15 KB
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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "morepath"
version = "0.21.dev0"
dynamic = ["readme"]
description = "A micro web-framework with superpowers"
license = "BSD-3-Clause"
license-files = ["LICENSE.txt"]
authors = [{name = "Morepath developers", email = "morepath@googlegroups.com"}]
maintainers = [{name = "Henri Hulski", email = "henri@sancode.it"}]
keywords = ["web", "wsgi", "routing", "morepath"]
classifiers = [
"Intended Audience :: Developers",
"Environment :: Web Environment",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: PyPy",
"Development Status :: 5 - Production/Stable",
]
requires-python = ">= 3.10"
dependencies = [
"WebOb >= 1.7.0",
"reg >= 0.12",
"dectate >= 0.14",
"importscan >= 0.2"
]
[project.urls]
Documentation = "https://morepath.readthedocs.io"
Repository = "https://github.com/morepath/morepath"
Issues = "https://github.com/morepath/morepath/issues"
Changelog = "https://github.com/morepath/morepath/blob/master/CHANGES.txt"
[project.optional-dependencies]
test = ["pytest >= 8", "pytest-env", "WebTest >= 2.0.14"]
docs = ["sphinx", "pyyaml", "WebTest >= 2.0.14"]
coverage = ["pytest-cov"]
lint = ["black", "flake8", "flake8-pyproject", "isort"]
mypy = ["mypy", "pytest", "types-WebOb", "types-WebTest"]
pyright = ["pyright", "pytest", "types-WebOb", "types-WebTest", "WebTest >= 2.0.14"]
[tool.setuptools.packages]
find = {}
[tool.setuptools.package-data]
morepath = ["py.typed"]
[tool.setuptools.dynamic]
readme = {file = ["README.rst", "CHANGES.txt"]}
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["morepath"]
addopts = ["-vv"]
env = ["RUN_ENV=test"]
filterwarnings = [
"ignore:'cgi' is deprecated:DeprecationWarning",
]
[tool.coverage.run]
omit = ["morepath/tests/*", "morepath/types.py"]
source = ["morepath"]
[tool.coverage.report]
show_missing = true
[tool.flake8]
ignore = ["E203", "E231", "E301", "E501", "E704", "W503"]
show-source = true
max-line-length = 90
[tool.mypy]
python_version = "3.10"
strict = true
warn_unreachable = true
untyped_calls_exclude = "morepath.tests.fixtures"
[[tool.mypy.overrides]]
module = ["morepath.tests.fixtures.*"]
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"base.*",
"entrypoint.*",
"no_mp.*",
"ns.*",
"no_mp_sub.*",
"sub.*",
"under_score.*",
]
ignore_missing_imports = true
[tool.pyright]
exclude = [
"**/pdbsupport.py",
"**/tests/fixtures/**",
]
[[tool.pyright.executionEnvironments]]
root = "morepath/tests/test_autosetup.py"
reportMissingImports = "none"
[tool.tox]
requires = ["tox>=4"]
env_list = [
"py310",
"py311",
"py312",
"py313",
"py314",
"pypy3",
"coverage",
"pre-commit",
"lint",
"docs",
]
skip_missing_interpreters = true
[tool.tox.env_run_base]
package = "editable"
extras = ["test"]
deps = [
"-r{tox_root}/requirements/corelibs.txt",
"-r{tox_root}/requirements/fixtures.txt",
]
commands = [["pytest", "{posargs:morepath}"]]
[tool.tox.env.coverage]
base_python = ["python3.11"]
extras = ["test", "coverage"]
commands = [
["pytest", "--cov", "--cov-fail-under=99", "{posargs:morepath}"],
]
[tool.tox.env.pre-commit]
base_python = ["python3.11"]
package = "skip"
deps = ["pre-commit"]
commands = [
["pre-commit", "run", "--all-files"],
]
[tool.tox.env.lint]
base_python = ["python3.11"]
extras = ["lint"]
commands = [
["flake8", "morepath"],
["black", "--check", "--diff", "--color", "."],
["isort", "--diff", "."],
]
[tool.tox.env.docs]
base_python = ["python3.11"]
extras = ["docs"]
commands = [
["sphinx-build", "-b", "doctest", "doc", "{env_tmp_dir}"],
]
[tool.tox.env.mypy]
base_python = ["python3"]
extras = ["mypy"]
commands = [
["mypy", "-p", "morepath", "--python-version", "3.10"],
["mypy", "-p", "morepath", "--python-version", "3.11"],
["mypy", "-p", "morepath", "--python-version", "3.12"],
["mypy", "-p", "morepath", "--python-version", "3.13"],
["mypy", "-p", "morepath", "--python-version", "3.14"],
]
[tool.tox.env.pyright]
base_python = ["python3"]
extras = ["pyright"]
commands = [
["pyright", "morepath", "--pythonversion", "3.10"],
["pyright", "morepath", "--pythonversion", "3.11"],
["pyright", "morepath", "--pythonversion", "3.12"],
["pyright", "morepath", "--pythonversion", "3.13"],
["pyright", "morepath", "--pythonversion", "3.14"],
]
[tool.black]
line-length = 80
target-version = ['py310', 'py311', 'py312', 'py313', 'py314']
include = '\.pyi?$'
exclude = '''
(
/(
\.git
| \.tox
| env
| venv
| .venv
| __pycache__
| build
| dist
| src
)/
)
'''
[tool.isort]
profile = 'black'
py_version = 311
skip_gitignore = true
extra_standard_library = ["typing_extensions"]
known_first_party = ["dectate", "importscan", "reg"]