Skip to content

Commit 9a52b6c

Browse files
committed
added root cibuildwheel
1 parent 9152134 commit 9a52b6c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

cibuildwheel.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[tool.cibuildwheel]
2+
build = "cp3*"
3+
skip = ["cp36-*", "cp37-*", "*-win32", "*-manylinux_i686", "*-musllinux_*"]
4+
build-verbosity = 1
5+
before-build = "rm -rf {package}/osqp_sources/build"
6+
# Install CPU-only version of torch beforehand since that allows cibuildwheel
7+
# to satisfy the "test" dependency group install, but much faster. The runtime
8+
# cost of torch-based osqp tests are considered negligible so torch-cpu is ok.
9+
before-test = "pip install torch --index-url https://download.pytorch.org/whl/cpu"
10+
test-groups = ["test"]
11+
test-command = "python -m pytest -s {project}/src/osqp/tests"
12+
13+
[tool.cibuildwheel.macos]
14+
# 02/13/25 - Skip testing on cp313-macosx_x86_64 because torch/numpy deps are unsatisfiable
15+
test-skip = "cp313-macosx_x86_64"
16+
17+
[tool.cibuildwheel.pyodide]
18+
build = "cp312-pyodide_wasm32"
19+
before-test = ""
20+
test-groups = ["test-no-nn"]
21+
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\""
22+
environment = { OSQP_ENABLE_INTERRUPT = "OFF", OSQP_CODEGEN = "OFF", OSQP_BUILD_SHARED_LIB = "OFF" }

0 commit comments

Comments
 (0)