Add test case for uv python list downloads#12381
Merged
Conversation
zanieb
commented
Mar 21, 2025
crates/uv/tests/it/python_list.rs
Outdated
| let context: TestContext = TestContext::new_with_versions(&[]).with_filtered_python_keys(); | ||
|
|
||
| // We show all interpreters | ||
| uv_snapshot!(context.filters(), context.python_list().env_remove("UV_PYTHON_DOWNLOADS"), @r" |
Member
Author
There was a problem hiding this comment.
This might not actually be cross-platform. Testing in CI.
Member
Author
There was a problem hiding this comment.
It's not, so we'll filter to a subset of Python versions on top of #12375
Member
Author
|
Interesting, both Linux and Windows have a couple 3.7 versions |
e403ad1 to
a27c93e
Compare
charliermarsh
approved these changes
Mar 21, 2025
zanieb
added a commit
that referenced
this pull request
Mar 23, 2025
Allows `uv python list <request>` to filter the installed list. I often want this and it's not hard to add. I tested the remote download filtering locally (#12381 is needed for snapshot tests) ``` ❯ cargo run -q -- python list --all-versions 3.13 cpython-3.13.2-macos-aarch64-none <download available> cpython-3.13.1-macos-aarch64-none /opt/homebrew/opt/python@3.13/bin/python3.13 -> ../Frameworks/Python.framework/Versions/3.13/bin/python3.13 cpython-3.13.1-macos-aarch64-none <download available> cpython-3.13.0-macos-aarch64-none /Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13 ❯ cargo run -q -- python list --all-versions 3.13 --only-installed cpython-3.13.1-macos-aarch64-none /opt/homebrew/opt/python@3.13/bin/python3.13 -> ../Frameworks/Python.framework/Versions/3.13/bin/python3.13 cpython-3.13.0-macos-aarch64-none /Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13 ```
a27c93e to
6cda803
Compare
6cda803 to
d386b41
Compare
d386b41 to
8800d5b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requires #12380
Extends new tests from #12374
Is waiting for dependent PRs to merge; for early review see a27c93e