diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index f9d29326..422f1326 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml @@ -46,11 +46,9 @@ jobs: persist-credentials: false - name: Build and test PyWavelets - uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4 + uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 env: CIBW_PLATFORM: pyodide - CIBW_TEST_REQUIRES: pytest matplotlib - CIBW_TEST_COMMAND: python -c "import pywt; pywt.test(extra_argv=['-m', 'not slow'])" # https://anaconda.org/scientific-python-nightly-wheels/pywavelets # WARNING: this job will overwrite existing wheels. diff --git a/.github/workflows/wheel_tests_and_release.yml b/.github/workflows/wheel_tests_and_release.yml index f068ec74..1ef4808c 100644 --- a/.github/workflows/wheel_tests_and_release.yml +++ b/.github/workflows/wheel_tests_and_release.yml @@ -60,7 +60,7 @@ jobs: python-version: "3.12" - name: Build the wheel - uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4 + uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 with: output-dir: dist env: @@ -92,7 +92,7 @@ jobs: python-version: "3.12" - name: Build the wheel - uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4 + uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 with: output-dir: dist env: @@ -130,7 +130,7 @@ jobs: - name: Build wheels for CPython (macOS) (x86_64) if: matrix.cibw_arch == 'x86_64' - uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4 + uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 with: output-dir: dist env: @@ -139,7 +139,7 @@ jobs: - name: Build wheels for CPython (macOS) (arm64) if: matrix.cibw_arch == 'arm64' - uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4 + uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 with: output-dir: dist env: @@ -198,7 +198,7 @@ jobs: architecture: arm64 - name: Build Windows wheels for CPython - uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4 + uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5 with: output-dir: dist env: diff --git a/pyproject.toml b/pyproject.toml index 496b9ac5..a7965ff3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,15 @@ documentation = "https://pywavelets.readthedocs.io/" config-settings = {setup-args = ["--vsenv"]} before-build = "bash {project}/util/cibw_before_build_win.sh" +[tool.cibuildwheel.pyodide] +test-requires = ["pytest", "matplotlib"] +test-command = '''python -c "import pywt; pywt.test(extra_argv=['-m', 'not slow'])"''' + +[[tool.cibuildwheel.overrides]] +# matplotlib is not available for cp315 on Pyodide yet +select = "cp315-pyodide_wasm32" +test-requires = ["pytest"] + [tool.ruff] line-length = 88