Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/tests-cibw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
PYODIDE_BUILD_EXPORTS: whole_archive
with:
package-dir: tests
only: cp312-pyodide_wasm32
only: cp313-pyodide_wasm32

build-ios:
name: iOS wheel ${{ matrix.runs-on }}
Expand All @@ -47,7 +47,6 @@ jobs:
- uses: pypa/[email protected]
env:
CIBW_PLATFORM: ios
CIBW_SKIP: cp314-* # https://github.com/pypa/cibuildwheel/issues/2494
with:
package-dir: tests

Expand Down
17 changes: 7 additions & 10 deletions tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ build-backend = "scikit_build_core.build"
[project]
name = "pybind11_tests"
version = "0.0.1"
dependencies = ["pytest", "pytest-timeout"]


[dependency-groups]
numpy = ["numpy"]
scipy = ["scipy"]
dependencies = [
"pytest",
"pytest-timeout",
"numpy; sys_platform != 'android' and not (sys_platform == 'ios' and python_version >= '3.14')",
"scipy; sys_platform != 'android' and sys_platform != 'ios'",
]


[tool.scikit-build]
Expand All @@ -28,11 +28,8 @@ PYBIND11_FINDPYTHON = true
[tool.cibuildwheel]
test-sources = ["tests", "pyproject.toml"]
test-command = "python -m pytest -o timeout=0 -p no:cacheprovider tests"
environment.PIP_ONLY_BINARY = "numpy"
environment.PIP_ONLY_BINARY = "numpy,scipy"
environment.PIP_PREFER_BINARY = "1"

android.environment.ANDROID_API_LEVEL = "24" # Needed to include libc++ in the wheel.
pyodide.test-groups = ["numpy", "scipy"]
ios.test-groups = ["numpy"]
ios.xbuild-tools = ["cmake", "ninja"]
ios.environment.PIP_EXTRA_INDEX_URL = "https://pypi.anaconda.org/beeware/simple"
Loading