-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathcibuildwheel.toml
More file actions
26 lines (24 loc) · 1.47 KB
/
cibuildwheel.toml
File metadata and controls
26 lines (24 loc) · 1.47 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
[tool.cibuildwheel]
build = "cp3*"
skip = ["cp313t-*", "cp314t-*", "*-win32", "*-manylinux_i686", "*-musllinux_*"]
build-verbosity = 1
before-build = "rm -rf {package}/osqp_sources/build"
# Install CPU-only version of torch beforehand since that allows cibuildwheel
# to satisfy the "test" dependency group install, but much faster. The runtime
# cost of torch-based osqp tests are considered negligible so torch-cpu is ok.
before-test = 'pip install scipy --prefer-binary && pip install torch --index-url https://download.pytorch.org/whl/cpu'
test-groups = ["test"]
test-command = "python -m pytest -s {project}/src/osqp/tests"
[[tool.cibuildwheel.overrides]]
# Platforms on which installing pytorch is problematic, so we skip testing
# the `osqp.nn` module
select = "*manylinux_aarch64 cp313-macosx_x86_64 cp314-macosx_x86_64"
before-test = 'pip install scipy --prefer-binary'
test-groups = ["test-no-nn"]
test-command = "python -m pytest -s {project}/src/osqp/tests --continue-on-collection-errors --ignore={project}/src/osqp/tests/nn_test.py"
[tool.cibuildwheel.pyodide]
build = "cp312-pyodide_wasm32"
before-test = ""
test-groups = ["test-no-nn"]
test-command = "python -m pytest -s {project}/src/osqp/tests --continue-on-collection-errors --ignore={project}/src/osqp/tests/multithread_test.py --ignore={project}/src/osqp/tests/nn_test.py --ignore-glob=\"{project}/src/osqp/tests/codegen*.py\""
environment = { OSQP_ENABLE_INTERRUPT = "OFF", OSQP_CODEGEN = "OFF", OSQP_BUILD_SHARED_LIB = "OFF" }