Skip to content

Commit f5fc8d7

Browse files
Move Pyodide configuration to pyproject.toml
1 parent 6eb56d8 commit f5fc8d7

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

pyproject.toml

+10-9
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,6 @@ test-command = """
156156
pd.test(extra_args=["-m not clipboard and single_cpu and not slow and not network and not db", "--no-strict-data-files"]);' \
157157
"""
158158

159-
# Commented out for now and environment variables are being used instead
160-
# because this feature is not yet there in a stable cibuildwheel release
161-
# [tool.cibuildwheel.pyodide]
162-
# test-requires = "pytest>=7.3.2 hypothesis>=6.46.1"
163-
# test-command = """
164-
# PANDAS_CI='1' python -c 'import pandas as pd; \
165-
# pd.test(extra_args=["-m not clipboard and single_cpu and not slow and not network and not db", "--no-strict-data-files"]);' \
166-
# """
167-
168159
[tool.cibuildwheel.windows]
169160
before-build = "pip install delvewheel"
170161
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"
@@ -187,6 +178,16 @@ test-command = ""
187178
select = "*-macosx*"
188179
environment = {CFLAGS="-g0"}
189180

181+
[[tool.cibuildwheel.overrides]]
182+
select = "*pyodide*"
183+
test-requires = "pytest>=7.3.2 hypothesis>=6.46.1"
184+
# Pyodide repairs wheels on its own, using auditwheel-emscripten
185+
repair-wheel-command = ""
186+
test-command = """
187+
PANDAS_CI='1' python -c 'import pandas as pd; \
188+
pd.test(extra_args=["-m not clipboard and single_cpu and not slow and not network and not db", "--no-strict-data-files"]);' \
189+
"""
190+
190191
[tool.ruff]
191192
line-length = 88
192193
target-version = "py310"

0 commit comments

Comments
 (0)