diff --git a/.github/workflows/emscripten.yaml b/.github/workflows/emscripten.yaml index 14b2b9dc..45b30213 100644 --- a/.github/workflows/emscripten.yaml +++ b/.github/workflows/emscripten.yaml @@ -23,8 +23,6 @@ jobs: fetch-depth: 0 - uses: pypa/cibuildwheel@v2.20 - env: - PYODIDE_BUILD_EXPORTS: whole_archive with: package-dir: tests only: cp312-pyodide_wasm32 diff --git a/tests/pyproject.toml b/tests/pyproject.toml index c0641e8c..dc9c949a 100644 --- a/tests/pyproject.toml +++ b/tests/pyproject.toml @@ -2,7 +2,7 @@ # builder for the tests (yet). Specifically, wheels can't be built from SDists. [build-system] -requires = ["scikit-build-core"] +requires = ["scikit-build-core>=0.10"] build-backend = "scikit_build_core.build" [project] @@ -13,5 +13,12 @@ classifiers = [ "Private :: Do Not Upload", ] +[tool.scikit-build] +minimum-version = "build-system.requires" + [tool.cibuildwheel] test-command = "pytest -o timeout=0 -p no:cacheprovider {project}/tests/test_*.py" + +[[tool.cibuildwheel.overrides]] +select = ["*-pyodide_wasm32"] +environment.PYODIDE_BUILD_EXPORTS = "whole_archive"