Repository navigation
Support installing local wheel variants - #22720
Conversation
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
123961b to
19c554c
Compare
19c554c to
3920fe5
Compare
3920fe5 to
081f4cf
Compare
081f4cf to
461c40e
Compare
461c40e to
1fef26e
Compare
1fef26e to
92328bb
Compare
92328bb to
82f48af
Compare
82f48af to
194321a
Compare
1bc2cf6 to
8d3a915
Compare
8d3a915 to
b049443
Compare
b049443 to
37646df
Compare
| pub async fn read_archive_wheel_variant( | ||
| filename: &WheelFilename, | ||
| path: &Path, | ||
| label: &VariantLabel, |
There was a problem hiding this comment.
could we get the label from filename here? let's not give a chance for the caller to mess up
There was a problem hiding this comment.
At this stage, we're in a path that has to send back the contents as response to the request, but the variant in the filename is optional, so we'd have to introduce another error variant to send back.
| if filename.variant().is_some() { | ||
| return Err(PylockTomlErrorKind::ArchivePathWheelVariantUnsupported( | ||
| filename, | ||
| )); | ||
| } |
There was a problem hiding this comment.
do we have a pip sync test for a valid -null.whl in packages.archive.path (with variants enabled)?
There was a problem hiding this comment.
I'm punting on pylock.toml support altogether, I'll add support for the extended pylock.toml format separately, after uv.lock, for now I've updated the stack to reject variant wheels from there consistently.
Allow installing variant wheels specified from a local path, not only from the index as previously.
This change only support platform-specific resolutions, that is
pip install/pip compile, but notpip compile --universal. This matches the current level of index support, universal resolution will follow separately. More broadyl, universal resolution, pylock.toml, installed-wheel invalidation, direct HTTP/Git wheel references, and arbitrary provider plugins are outside of the scope of this PR.