-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathpyproject.toml
68 lines (62 loc) · 1.65 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
[tool.isort]
force_single_line = true # one import per line
lines_after_imports = 2 # blank spaces after import section
[tool.coverage.report]
include = [
"*psutil*"
]
omit = [
"psutil/_compat.py",
"psutil/tests/*",
"setup.py",
]
exclude_lines = [
"enum.IntEnum",
"except ImportError:",
"globals().update",
"if __name__ == .__main__.:",
"if _WINDOWS:",
"if BSD",
"if enum is None:",
"if enum is not None:",
"if FREEBSD",
"if has_enums:",
"if LINUX",
"if LITTLE_ENDIAN:",
"if MACOS",
"if NETBSD",
"if OPENBSD",
"if ppid_map is None:",
"if PY3:",
"if SUNOS",
"if sys.platform.startswith",
"if WINDOWS",
"import enum",
"pragma: no cover",
"raise NotImplementedError",
]
[build-system]
requires = ["setuptools>=43", "wheel"]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
skip = ["pp*", "*-musllinux*"]
test-extras = "test"
test-command = [
"PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_DEBUG=1 python {project}/psutil/tests/runner.py",
"PYTHONWARNINGS=always PYTHONUNBUFFERED=1 PSUTIL_DEBUG=1 python {project}/psutil/tests/test_memleaks.py"
]
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
[tool.cibuildwheel.windows]
# psutil tests do not like running from a virtualenv with python>=3.7
# restrict build & tests to cp36
# cp36-abi3 wheels will need to be tested outside cibuildwheel for python>=3.7
build = "cp36-*"
test-command = [
"python {project}/psutil/tests/runner.py",
"python {project}/psutil/tests/test_memleaks.py"
]
[tool.cibuildwheel.windows.environment]
PYTHONWARNINGS = "always"
PYTHONUNBUFFERED = "1"
PSUTIL_DEBUG = "1"