Repository navigation
Conversation
Wheels that are built in the same repository or that are not on an index cannot be used with a uv.lock today. Add pip.parse(local_wheels = [...]), which matches the wheels to the locked package versions with the PEP 440 == semantics and prefers them over the locked wheels on the platforms that they support. A local wheel that matches no locked version fails.
Also ignore the uv.lock files without a URL (path sources), so that local wheels can be used for them, and clarify that the local wheels need to be source files.
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.
Wheels that are checked in or that come from another repository, e.g. because
they are not published on an index, cannot be used together with a
uv.lock.rules_pycross has
local_wheelsfor this.This adds
pip.parse(local_wheels = [...]), supported withuv_lock. Eachlocal wheel is matched to the locked package with the same name and a PEP 440
==equal version. On the platforms that a local wheel supports it ispreferred over the locked wheels; the locked wheels are used on the other
platforms. The local wheels are extracted with
whl_library(whl_file = ...)without
pip. A local wheel that matches no locked version fails. Lockedfiles without a URL (uv
pathsources) are ignored, so that local wheels canreplace them.
Stack (fork test PRs): on top of #8.