Skip to content

feat: option to build directly with uv #2322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tests: add uv to tests
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Apr 9, 2025
commit 7d97481d8b4640112a839f581a52eaa9561987e0
8 changes: 5 additions & 3 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,13 @@ def docker_warmup_fixture(
return None


@pytest.fixture(params=["pip", "build"])
@pytest.fixture(params=["pip", "build", "uv"])
def build_frontend_env_nouv(request: pytest.FixtureRequest) -> dict[str, str]:
frontend = request.param
if platform == "pyodide" and frontend == "pip":
pytest.skip("Can't use pip as build frontend for pyodide platform")
if platform == "pyodide" and frontend in {"pip", "uv"}:
pytest.skip("Can't use pip or uv as build frontend for pyodide platform")
if frontend == "uv" and find_uv() is None:
pytest.skip("Can't find uv")

return {"CIBW_BUILD_FRONTEND": frontend}

Expand Down