Use Packse in uv check tests#19913
Merged
Merged
Conversation
zsol
force-pushed
the
zsol/use-packse-for-uv-check
branch
from
June 18, 2026 17:14
364c368 to
0a012a9
Compare
zsol
force-pushed
the
zsol/use-packse-for-uv-check
branch
from
June 18, 2026 17:17
0a012a9 to
a4fbef8
Compare
zsol
marked this pull request as ready for review
June 18, 2026 17:25
zanie-oai
reviewed
Jun 18, 2026
uv test inventory changesThis PR changes the tests when compared with the latest
|
zsol
force-pushed
the
zsol/use-packse-for-uv-check
branch
from
June 18, 2026 18:13
3e9a2cf to
8c32817
Compare
zsol
force-pushed
the
zsol/use-packse-for-uv-check
branch
from
June 19, 2026 10:04
8c32817 to
2e682db
Compare
zanieb
approved these changes
Jun 22, 2026
zsol
added a commit
that referenced
this pull request
Jun 24, 2026
`uv check` currently resolves its standalone `ty` executable from uv’s built-in compatible range, even when the project’s locked development dependencies select a different version or source. When `uv.lock` contains an applicable `ty` package, `uv check` now runs that exact locked package. It first looks in the project’s `dev` group, then falls back to a direct runtime dependency. With `--no-sync` (or when `ty` is excluded by the selected dependency groups), uv materializes only the locked `ty` subgraph into a cached environment without modifying the project environment. The precedence order for ty version selection is now: - the `TY` executable override - an explicit `--ty-version` - the applicable `ty` package from `uv.lock` (if any) - uv’s default constrained range when the lock contains no applicable `ty` development dependency This work was split into several focused pull requests, which are now dependencies of this PR: - [[#19907](https://github.com/astral-sh/uv/pull/19907)](https://github.com/astral-sh/uv/pull/19907) adds the locked-subgraph materialization and cached-installation primitives this PR uses. This PR is stacked on it. - [[#19909](https://github.com/astral-sh/uv/pull/19909)](https://github.com/astral-sh/uv/pull/19909) makes `uv check --no-sync` perform the normal lock operation while skipping environment synchronization. - [[#19892](https://github.com/astral-sh/uv/pull/19892)](https://github.com/astral-sh/uv/pull/19892) adds the hidden `uv check --show-version` flag used to verify version selection. - [[#19913](https://github.com/astral-sh/uv/pull/19913)](https://github.com/astral-sh/uv/pull/19913) moves related `uv check` tests from live PyPI dependencies to deterministic Packse fixtures.
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.
Replace live-PyPI dependencies in
uv checkproject lock and sync tests with existing Packse fixtures. The tests now pass the local index explicitly and use deterministic package metadata instead ofanyio,iniconfig, and unnecessary CLI--exclude-newercutoffs.This also moves declared-dependency and isolated-project coverage into the
test-r2shard. TheTYexecutable precedence test remainstest-pypigated because it requires installing a realtyexecutable; existingTYprecedence and ty download tests are otherwise unchanged.