Fix incorrect document regarding pyodide auditwheel (#2752)
* Fix incorrect document for pyodide * Fix incorrect document for pyodide * Fix test
This commit is contained in:
+25
-2
@@ -146,6 +146,29 @@ def test_pyodide_build_and_test(tmp_path, expect_failure):
|
||||
"spam-0.1.0-cp312-cp312-pyodide_2024_0_wasm32.whl",
|
||||
"spam-0.1.0-cp313-cp313-pyodide_2025_0_wasm32.whl",
|
||||
]
|
||||
print("actual_wheels", actual_wheels)
|
||||
print("expected_wheels", expected_wheels)
|
||||
assert set(actual_wheels) == set(expected_wheels)
|
||||
|
||||
|
||||
def test_pyodide_repair_wheel(tmp_path):
|
||||
if sys.platform == "win32":
|
||||
pytest.skip("pyodide-build doesn't work correctly on Windows")
|
||||
|
||||
project_dir = tmp_path / "project"
|
||||
basic_project.generate(project_dir)
|
||||
|
||||
actual_wheels = utils.cibuildwheel_run(
|
||||
project_dir,
|
||||
add_args=["--platform", "pyodide"],
|
||||
add_env={
|
||||
"CIBW_REPAIR_WHEEL_COMMAND_PYODIDE": (
|
||||
"pyodide auditwheel repair --libdir /path/to/libraries --output-dir {dest_dir} {wheel}"
|
||||
),
|
||||
},
|
||||
single_python=True,
|
||||
)
|
||||
|
||||
# check that the expected wheels are produced
|
||||
expected_wheels = [
|
||||
"spam-0.1.0-cp312-cp312-pyodide_2024_0_wasm32.whl",
|
||||
]
|
||||
assert set(actual_wheels) == set(expected_wheels)
|
||||
|
||||
Reference in New Issue
Block a user