Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Add test case foruv python list downloads#12381

Draft
zanieb wants to merge7 commits intomain
base:main
Choose a base branch
Loading
fromzb/list-tests-downloads

Conversation

zanieb
Copy link
Member

@zaniebzanieb commentedMar 21, 2025
edited
Loading

Requires#12380
Extends new tests from#12374

Is waiting for dependent PRs to merge; for early review seea27c93e

@zaniebzanieb added the testingInternal testing of behavior labelMar 21, 2025
@zaniebzanieb changed the base branch frommain tozb/python-list-testMarch 21, 2025 18:56
@zaniebzanieb changed the base branch fromzb/python-list-test tozb/list-testsMarch 21, 2025 18:56
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"
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This might not actually be cross-platform. Testing in CI.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It's not, so we'll filter to a subset of Python versions on top of#12375

@zanieb
Copy link
MemberAuthor

Interesting, both Linux and Windows have a couple 3.7 versions

Snapshot: python_list_downloadsSource: crates/uv/tests/it/python_list.rs:143────────────────────────────────────────────────────────────────────────────────Expression: snapshot────────────────────────────────────────────────────────────────────────────────-old snapshot+new results────────────┬───────────────────────────────────────────────────────────────────    8     8 │ cpython-3.11.11-[PLATFORM]                  <download available>    9     9 │ cpython-3.10.16-[PLATFORM]                  <download available>   10    10 │ cpython-3.9.21-[PLATFORM]                   <download available>   11    11 │ cpython-3.8.20-[PLATFORM]                   <download available>         12 │+cpython-3.7.9-[PLATFORM]                    <download available>   12    13 │ pypy-3.11.11-[PLATFORM]                     <download available>   13    14 │ pypy-3.10.16-[PLATFORM]                     <download available>   14    15 │ pypy-3.9.19-[PLATFORM]                      <download available>   15    16 │ pypy-3.8.16-[PLATFORM]                      <download available>         17 │+pypy-3.7.13-[PLATFORM]                      <download available>   16    18 │    17    19 │ ----- stderr -----────────────┴───────────────────────────────────────────────────────────────────

@zaniebzaniebforce-pushed thezb/list-tests-downloads branch fromad689e3 toe403ad1CompareMarch 21, 2025 20:34
@zaniebzaniebforce-pushed thezb/list-tests-downloads branch frome403ad1 toa27c93eCompareMarch 21, 2025 22:26
Base automatically changed fromzb/list-tests tomainMarch 23, 2025 02:57
zanieb added a commit that referenced this pull requestMar 23, 2025
Allows `uv python list <request>` to filter the installed list. I oftenwant this and it's not hard to add.I tested the remote download filtering locally (#12381 is needed forsnapshot tests)```❯ cargo run -q -- python list --all-versions 3.13cpython-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.13cpython-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-installedcpython-3.13.1-macos-aarch64-none    /opt/homebrew/opt/python@3.13/bin/python3.13 -> ../Frameworks/Python.framework/Versions/3.13/bin/python3.13cpython-3.13.0-macos-aarch64-none    /Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13```
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@charliermarshcharliermarshcharliermarsh approved these changes

Assignees
No one assigned
Labels
testingInternal testing of behavior
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@zanieb@charliermarsh

[8]ページ先頭

©2009-2025 Movatter.jp