-
Notifications
You must be signed in to change notification settings - Fork 65
/
pyproject.toml
28 lines (24 loc) · 949 Bytes
/
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
[build-system]
requires = [
"setuptools>=42",
"wheel",
"cmake>=3.18",
"scikit-build>=0.13",
"ninja>=1.10.0",
]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
testpaths = 'tests'
[tool.cibuildwheel]
archs = ["auto64"] # 64-bit only
build = "cp39-* cp310-* cp311-* cp312-* cp313-*" # Only build Python 3.9-3.13 wheels
skip = ["pp*", "*musllinux*"] # disable PyPy and musl-based wheels
manylinux-x86_64-image = "ghcr.io/akaszynski/manylinux2014-centos7-opencv/manylinux2014_x86_64_opencv3:v3.4.5.2"
test-requires = "pytest"
test-command = "pytest {project}/tests"
[tool.cibuildwheel.windows]
# Use delvewheel on windows
before-build = "pip install delvewheel"
# manually specify the following, replacing path with the location of opencv
# CIBW_ENVIRONMENT_WINDOWS "OpenCV_DIR='<PATH>/opencv'"
# CIBW_REPAIR_WHEEL_COMMAND_WINDOWS "delvewheel repair -w {dest_dir} {wheel} --add-path <PATH>/opencv/build/bin"