From d7282b96ece2bbe7b8a79f2503555555b41178bc Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 22 Aug 2024 00:45:17 -0400 Subject: [PATCH] chore: nicer location for whole archive setting Signed-off-by: Henry Schreiner --- .github/workflows/emscripten.yaml | 2 -- tests/pyproject.toml | 9 ++++++++- 2 files changed, 8 insertions(+), 3 deletions(-) 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"