Skip to content
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

tests: optional uv #807

Merged
merged 1 commit into from
Sep 5, 2024
Merged

tests: optional uv #807

merged 1 commit into from
Sep 5, 2024

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]

tests/test_env.py Outdated Show resolved Hide resolved
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
58 checks passed
@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