-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
105 lines (87 loc) · 2.53 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
[build-system]
requires = ["cython~=3.0", "setuptools>=65.6.0", "setuptools_scm[toml]>=7", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pkgcraft"
description = "python bindings for pkgcraft"
authors = [{name = "Tim Harder", email = "[email protected]"}]
requires-python = ">=3.11"
keywords = ["gentoo", "cython"]
license = {text = "MIT"}
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version", "readme"]
[project.urls]
homepage = "https://github.com/pkgcraft/pkgcraft-python"
[tool.setuptools.dynamic]
readme = {file = ["README.rst"]}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
write_to = "src/pkgcraft/__version__.py"
[project.optional-dependencies]
test = ["pytest"]
[project.entry-points.pytest11]
pkgcraft = "pkgcraft._pytest"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra"
testpaths = ["tests"]
doctest_optionflags = "ELLIPSIS"
markers = [
"parallel: marks tests as inherently parallel (deselect with '-m \"not parallel\"')",
]
[tool.coverage.run]
source = ["src/pkgcraft"]
plugins = ["Cython.Coverage"]
concurrency = ["multiprocessing", "thread"]
parallel = true
branch = true
omit = [
"src/pkgcraft/__version__.py",
"src/pkgcraft/_pytest.py",
"tests/*",
]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = true
exclude_lines = [
# re-enable the standard pragma
"pragma: no cover",
# ignore defensive assertions
"raise AssertionError",
"raise NotImplementedError",
# ignore unexecutable code
"if __name__ == .__main__.:",
]
[tool.black]
line_length = 100
include = "/benches|/doc/conf.py|/examples|/tests|/setup.py"
[tool.isort]
line_length = 100
multi_line_output = 3
include_trailing_comma = true
[tool.pylint]
disable = ["C0103", "C0114", "C0115", "C0116", "E0401", "R0902", "R0903", "R0904", "W0621"]
[tool.cibuildwheel]
build = ["cp311-*", "cp312-*"]
build-frontend = "build"
build-verbosity = 1
environment-pass = ["PKGCRAFT_C_REF"]
before-all = "{package}/.ci/buildlib"
test-requires = "pytest"
test-command = "PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest {package}/tests"
[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64", "pp64le"]
skip = "*-musllinux*"
# avoid testing on emulated architectures
test-skip = "*-*linux_{aarch64,ppc64le,s390x}"
manylinux-aarch64-image = "manylinux_2_28"
manylinux-ppc64le-image = "manylinux_2_28"
manylinux-x86_64-image = "manylinux_2_28"
[tool.cibuildwheel.macos]
archs = ["x86_64"]