Skip to content

tests: optional uv#807

Merged
henryiii merged 1 commit intopypa:mainfrom
carlwgeorge:optional-uv
Sep 5, 2024
Merged

tests: optional uv#807
henryiii merged 1 commit intopypa:mainfrom
carlwgeorge:optional-uv

Conversation

@carlwgeorge
Copy link
Contributor

Skip the tests that need uv when uv is not installed. This makes it easier for Linux distros that package build to avoid a build-time dependency on uv.

@carlwgeorge
Copy link
Contributor Author

It looks like the only test failures are the same ones that are currently already failing on HEAD.

  • tests/test_main.py::test_output[False-via-sdist-isolation]
  • tests/test_main.py::test_output[False-wheel-direct-isolation]

Skip the tests that need uv when uv is not installed.  This makes it
easier for Linux distros that package build to avoid a build-time
dependency on uv.

Update tests/test_env.py
@henryiii henryiii merged commit 9a52c50 into pypa:main Sep 5, 2024
@carlwgeorge carlwgeorge deleted the optional-uv branch September 5, 2024 05:05
@layday
Copy link
Member

layday commented Sep 5, 2024

There’s two ways that we detect the presence of uv and this only checks one. The tests might be skipped even if uv is present (e.g. if it’s on the PYTHONPATH but its executable isn’t on PATH).

@henryiii
Copy link
Contributor

henryiii commented Sep 5, 2024

Yes, we should add the other way to the check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants