Skip to content

Commit 02374e6

Browse files
committed
fix: remove pinning on pyodide
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 653d766 commit 02374e6

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

cibuildwheel/pyodide.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def setup_python(
111111

112112
log.step("Setting up build environment...")
113113
venv_path = tmp / "venv"
114-
env = virtualenv(base_python, venv_path, [])
114+
env = virtualenv(python_configuration.version, base_python, venv_path, [])
115115
venv_bin_path = venv_path / "bin"
116116
assert venv_bin_path.exists()
117117
env["PIP_DISABLE_PIP_VERSION_CHECK"] = "1"
@@ -164,7 +164,7 @@ def setup_python(
164164
"--upgrade",
165165
"auditwheel-emscripten",
166166
"build[virtualenv]",
167-
"pyodide-build",
167+
"git+https://github.com/pyodide/pyodide.git@main#subdirectory=pyodide-build",
168168
*dependency_constraint_flags,
169169
env=env,
170170
)

noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def update_constraints(session: nox.Session) -> None:
7373
if session.venv_backend != "uv":
7474
session.install("uv>=0.1.23")
7575

76-
for minor_version in [12]:
76+
for minor_version in range(7, 14):
7777
python_version = f"3.{minor_version}"
7878
env = os.environ.copy()
7979
# CUSTOM_COMPILE_COMMAND is a pip-compile option that tells users how to
@@ -83,7 +83,6 @@ def update_constraints(session: nox.Session) -> None:
8383
"uv",
8484
"pip",
8585
"compile",
86-
"--prerelease=allow",
8786
f"--python-version={python_version}",
8887
"--upgrade",
8988
"cibuildwheel/resources/constraints.in",

test/test_build_frontend_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_build_frontend_args(tmp_path, capfd, frontend_name):
1717
utils.cibuildwheel_run(
1818
project_dir,
1919
add_env={
20-
"CIBW_BUILD": "cp311-*",
20+
"CIBW_BUILD": "cp312-*",
2121
"CIBW_BUILD_FRONTEND": f"{frontend_name}; args: -h",
2222
},
2323
)

test/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ def expected_wheels(
211211
wheels = []
212212

213213
if platform == "pyodide":
214-
python_abi_tag = "cp311-cp311"
215-
platform_tag = "emscripten_3_1_32_wasm32"
214+
python_abi_tag = "cp312-cp312"
215+
platform_tag = "emscripten_3_1_52_wasm32"
216216
return [f"{package_name}-{package_version}-{python_abi_tag}-{platform_tag}.whl"]
217217

218218
for python_abi_tag in python_abi_tags:

0 commit comments

Comments
 (0)