Skip to content

Commit e2e3c0a

Browse files
Add Pyodide-related config for cibuildwheel
1 parent 4abeba6 commit e2e3c0a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,23 @@ config-settings = "setup-args=-Davx2=disabled"
163163
select = "*-macosx_arm64"
164164
config-settings = {setup-args = ["-Davx2=disabled", "-Dsse2=disabled"]}
165165

166+
[[tool.cibuildwheel.overrides]]
167+
select = "*-pyodide_wasm32"
168+
before-build = "patch -p1 < tools/ci/patches/0001-disable-multiprocessing-and-pthreads.patch && patch -p1 < tools/ci/patches/0002-add-missing-unistd-headers.patch -d c-blosc/internal-complibs/zlib-1.3.1/"
169+
config-settings = {setup-args = ["-Dsse2=disabled", "-Davx2=disabled"]}
170+
test-requires = [
171+
"pytest",
172+
# "pytest-cov",
173+
# "pyzstd", # TODO: add back once Pyodide 314.0.0 stable includes compression.zstd builtin
174+
"msgpack",
175+
"crc32c",
176+
"zfpy",
177+
"zarr>=3",
178+
"importlib_metadata",
179+
]
180+
# Override addopts over to speed up test suite and not run coverage
181+
test-command = "python -m pytest -p no:cacheprovider --override-ini=addopts= -svra {project}/tests"
182+
166183
[tool.ruff]
167184
line-length = 100
168185
extend-exclude = ["c-blosc"]

0 commit comments

Comments
 (0)