-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
126 lines (110 loc) · 3.41 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
[build-system]
requires = ["meson-python", "pybind11==2.13.6", "jinja2", "pycparser", "packaging"]
build-backend = "mesonpy"
[project]
name = "spead2"
description = "High-performance SPEAD implementation"
readme = "README.rst"
# TODO: add license-files with COPYING once PEP 639 is supported by meson-python
license = {file = "COPYING.LESSER"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Networking"
]
dependencies = [
"numpy>=1.9.2"
]
requires-python = ">=3.9"
dynamic = ["version"]
[project.optional-dependencies]
test = [
"netifaces",
"pytest",
"pytest-asyncio",
"pytest-timeout"
]
test-numba = [
"numba",
"scipy"
]
[project.scripts]
"spead2_send.py" = "spead2.tools.send_asyncio:main"
"spead2_recv.py" = "spead2.tools.recv_asyncio:main"
"spead2_bench.py" = "spead2.tools.bench_asyncio:main"
[[project.authors]]
name = "Bruce Merry"
email = "[email protected]"
[project.urls]
Homepage = "https://github.com/ska-sa/spead2"
Repository = "https://github.com/ska-sa/spead2"
Documentation = "https://spead2.readthedocs.io/"
Changelog = "https://spead2.readthedocs.io/en/latest/changelog.html"
[tool.meson-python.args]
# Disable all the binaries that wouldn't get included in the wheel anyway
setup = [
"-Dtools=disabled",
"-Dunit_test=disabled",
"-Dcuda=disabled",
"-Dgdrapi=disabled",
"-Dcap=disabled",
"-Dpython=true",
]
install = ["--tags=python-runtime"]
[tool.cibuildwheel]
build-frontend = "build"
manylinux-x86_64-image="manylinux_2_28"
manylinux-i686-image="manylinux_2_28"
manylinux-aarch64-image="manylinux_2_28"
# We'd like to show sccache stats (to confirm that it's working) after builds.
# there is no separate after-build in cibuildwheel so we cram it into before-test.
before-test = "sccache --show-stats && (cd {package} && .ci/py-requirements.sh)"
test-command = "pytest -v {package}/tests"
[tool.cibuildwheel.linux.config-settings]
# Ensure that all the libraries are enabled. Unfortunately
# -Dauto_features=enabled isn't viable as it also force-enables some
# features that are architecture- or OS-specific rather than relying
# on external libraries.
setup-args = [
"-Dibv=enabled",
"-Dmlx5dv=enabled",
"-Dibv_hw_rate_limit=enabled",
"-Dpcap=enabled",
"-Db_lto=true",
"-Dpython_split_debug=true",
]
builddir = "build-cibuildwheel"
[tool.cibuildwheel.linux]
archs = ["aarch64", "x86_64"]
environment-pass = ["SCCACHE_GHA_ENABLED", "ACTIONS_CACHE_URL", "ACTIONS_RUNTIME_TOKEN"]
before-all = ".ci/before_all_linux.sh"
[tool.cibuildwheel.macos.config-settings]
setup-args = [
"-Dpcap=enabled",
"-Db_lto=true",
"--native-file=ci.ini",
]
[tool.cibuildwheel.macos]
# Note: archs is not set here. before_all only supports one arch at a time,
# and it's set from .github/workflows/test.yml.
before-all = ".ci/before_all_macos.sh"
[tool.isort]
profile = "black"
combine_as_imports = true
line_length = 100
py_version = 39
[tool.black]
line-length = 100
target-versions = ["py39", "py310", "py311", "py312", "py313"]
[tool.ruff]
select = ["E", "F", "W", "UP", "PYI", "RUF100"]
line-length = 100
[tool.mypy]
ignore_missing_imports = true
files = ["src/spead2", "examples", "tests"]
python_version = "3.9"