-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathpyproject.toml
More file actions
276 lines (255 loc) · 7.8 KB
/
pyproject.toml
File metadata and controls
276 lines (255 loc) · 7.8 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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
[build-system]
requires = [
"setuptools>=45",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "testplan"
dynamic = ["version"]
description = "Testplan testing framework"
readme = "README.rst"
license = {file="LICENSE.md"}
authors = [
{ name = "Morgan Stanley", email = "[email protected]" }
]
keywords = ["testplan", "test", "unittest", "integrationtest", ]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Unit"
]
dependencies = [
"setuptools",
"pytest",
"psutil",
"schema",
"tzlocal",
"lxml",
"reportlab",
"marshmallow<4.0.0",
"termcolor",
"colorama",
"pyzmq",
"terminaltables",
"requests>=2.31.0",
"boltons",
"validators<=0.20.0",
"Pillow",
"rpyc",
"matplotlib",
"coverage",
"typing_extensions",
"dill",
"parse",
"paramiko[gssapi]",
"orjson",
"exceptiongroup>=1.2.2 ; python_full_version < '3.11'",
"jinja2>=3.1.6",
"click>=8.1.8",
"gherkin-official>=32.1.2",
"uv>=0.7.18",
"zstandard>=0.25.0",
]
requires-python = ">=3.9"
[project.urls]
homepage = "https://github.com/morganstanley/testplan"
documentation = "https://testplan.readthedocs.io"
[project.scripts]
tpsreport = "testplan.cli.tpsreport:cli"
[project.optional-dependencies]
interactive = [
"flask>=2.2.5",
"werkzeug>=2.2.3",
"flask-restx>=1.1.0",
"cheroot>=10.0.1",
"flask-orjson>=2.0.0",
]
observability = [
"opentelemetry-api==1.38.0",
"opentelemetry-exporter-otlp-proto-grpc==1.38.0",
"opentelemetry-exporter-otlp-proto-http==1.38.0",
"opentelemetry-instrumentation==0.59b0",
"opentelemetry-sdk==1.38.0",
]
plotly = [
"pandas>=2.2.3",
"plotly>=6.1.0",
]
all = ["testplan[interactive,observability,plotly]"]
[tool.setuptools.dynamic]
version = {attr = "testplan.version.__build_version__"}
[tool.setuptools.packages.find]
include = ["testplan", "testplan.*"]
namespaces = false
[tool.setuptools.package-data]
"testplan" = ["py.typed"]
"testplan.web_ui" = ["testing/build/**/*"]
[tool.setuptools.exclude-package-data]
"testplan.web_ui" = ["testing/build/**/*.map"]
[tool.bumpver]
current_version = "25.8.0"
version_pattern = "YY.MM.INC0"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = true
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'current_version = "{version}"',
]
"testplan/version.py" = [
'__version__ = "{version}"',
]
[tool.releaseherald]
news_fragments_directory = 'doc/newsfragments'
unreleased = true
news_file = 'doc/news_template.rst'
template = 'doc/news_version_template.rst'
latest = false
update = true
[tool.releaseherald.filename_metadata_extractor]
type="re"
pattern='''^(((?P<id>\d+)_?)?((?P<type>changed|new|deprecated|removed))?\.)?.*$'''
[tool.pytest.ini_options]
filterwarnings = [
"ignore::pytest.PytestWarning",
"ignore:.*flask_restx.*:DeprecationWarning",
# jsonschema warning from flask_restx
"ignore:.*jsonschema.*:DeprecationWarning",
"ignore:.*load_module.*:DeprecationWarning",
"ignore:.*LogMatcher.*:UserWarning",
# under most cases, included files are not hit
"ignore:No data was collected:coverage.exceptions.CoverageWarning",
]
norecursedirs = "tests/helpers"
[tool.uv.sources]
releaseherald = { git = "https://github.com/morganstanley/releaseherald.git", rev = "main" }
[dependency-groups]
dev = [
"doit>=0.34.2",
"mypy>=1.9.0",
"types-paramiko>=3.0.0",
"types-requests>=2.28.0",
"pre-commit>=2.21.0",
"pylint>=2.13.9",
"pytest-dotenv>=0.5.2",
"pytest-mock>=3.11.1",
"ruff>=0.11.13",
]
docs = [
"releaseherald",
"sphinx>=5.3.0",
"sphinx-click>=4.4.0",
"sphinx-rtd-theme>=2.0.0",
]
test = [
{ include-group = "dev" },
"confluent-kafka>=2.10.0",
"kazoo>=2.10.0",
"numpy>=1.21.6",
]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
no_implicit_optional = true
# Start permissive - enable strict per-module as typing progresses
disallow_untyped_defs = false
disallow_incomplete_defs = false
# Ignore missing stubs for third-party libraries without type information
ignore_missing_imports = true
# Opentelemetry stubs vary across versions; suppress unused-ignore so that
# type: ignore comments needed on CI (older stubs) don't error locally (newer stubs).
[[tool.mypy.overrides]]
module = [
"testplan.common.utils.observability.tracing",
"testplan.common.utils.observability.loki_exporter",
]
warn_unused_ignores = false
# Exclude vendored code from type checking
[[tool.mypy.overrides]]
module = "testplan.vendor.*"
ignore_errors = true
# Skip type checking of third-party internals (match statements require Python 3.10+)
[[tool.mypy.overrides]]
module = [
"_pytest.*",
"coverage.*",
]
follow_imports = "skip"
# Strictly typed modules - enforced per-module as typing progresses
[[tool.mypy.overrides]]
module = [
"testplan.common.utils.timing",
"testplan.common.utils.logger",
"testplan.common.config.base",
"testplan.common.entity.base",
"testplan.testing.base",
"testplan.testing.multitest.base",
"testplan.runnable.base",
"testplan.report.testing.base",
"testplan.runners.pools.base",
"testplan.testing.multitest.driver.base",
"testplan.common.remote.remote_resource",
"testplan.base",
"testplan.parser",
"testplan.testing.result",
"testplan.runners.local",
"testplan.common.utils.comparison",
"testplan.testing.multitest.driver.app",
"testplan.runners.pools.remote",
"testplan.testing.multitest.entries.assertions",
"testplan.runners.pools.connection",
"testplan.runners.pools.process",
"testplan.testing.multitest.driver.http.server",
"testplan.testing.multitest.driver.connection.connection_extractor",
"testplan.monitor.resource",
"testplan.common.utils.logfile",
"testplan.common.utils.process",
"testplan.common.utils.helper",
"testplan.common.utils.convert",
"testplan.testing.multitest.driver.fix.client",
"testplan.testing.multitest.driver.tcp.client",
"testplan.testing.multitest.driver.kafka",
"testplan.common.utils.sockets.client",
"testplan.common.utils.match",
"testplan.common.remote.remote_runtime",
"testplan.testing.listing",
"testplan.common.remote.ssh_client",
"testplan.common.exporters.pdf",
"testplan.runners.pools.tasks.base",
"testplan.testing.filtering",
"testplan.testing.pyunit",
"testplan.testing.py_test",
"testplan.exporters.testing.xml",
"testplan.testing.multitest.driver.http.client",
"testplan.testing.multitest.driver.connection.connection_info",
"testplan.runnable.interactive.base",
"testplan.common.utils.observability.tracing",
]
disallow_untyped_defs = true
disallow_incomplete_defs = true
[tool.ruff]
line-length = 79
exclude = ["testplan/vendor", "releaseherald"]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
# "I", # isort
# "UP", # pyupgrade
]
ignore = [
"A001",
"A002",
"A004",
]