feat: support uv with Android (#2587)

This commit is contained in:
Henry Schreiner
2025-11-10 19:43:52 -05:00
committed by GitHub
parent 1337e50f74
commit ccbae30b53
4 changed files with 78 additions and 35 deletions
+4 -3
View File
@@ -118,16 +118,17 @@ def test_expected_wheels(tmp_path, spam_env):
)
def test_frontend_good(tmp_path):
@needs_emulator
def test_frontend_good(tmp_path, build_frontend_env):
new_c_project().generate(tmp_path)
wheels = cibuildwheel_run(
tmp_path,
add_env={**cp313_env, "CIBW_BUILD_FRONTEND": "build"},
add_env={**cp313_env, **build_frontend_env, "CIBW_TEST_COMMAND": "python -m site"},
)
assert wheels == [f"spam-0.1.0-cp313-cp313-android_21_{native_arch.android_abi}.whl"]
@pytest.mark.parametrize("frontend", ["build[uv]", "pip"])
@pytest.mark.parametrize("frontend", ["pip"])
def test_frontend_bad(frontend, tmp_path, capfd):
new_c_project().generate(tmp_path)
with pytest.raises(CalledProcessError):