mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-20 11:56:03 +00:00
Add zstandard support for wheels (#15645)
## Summary
This PR allows pyx to send down hashes for zstandard-compressed
tarballs. If the hash is present, then the file is assumed to be present
at `${wheel_url}.tar.zst`, similar in design to PEP 658
`${wheel_metadata}.metadata` files. The intent here is that the index
must include the wheel (to support all clients and support
random-access), but can optionally include a zstandard-compressed
version alongside it.
This commit is contained in:
parent
7606f1ad3c
commit
4e48d759c4
13 changed files with 279 additions and 29 deletions
|
|
@ -305,6 +305,7 @@ impl<'a> FlatIndexClient<'a> {
|
|||
upload_time_utc_ms: None,
|
||||
url: FileLocation::AbsoluteUrl(UrlString::from(url)),
|
||||
yanked: None,
|
||||
zstd: None,
|
||||
};
|
||||
|
||||
let Some(filename) = DistFilename::try_from_normalized_filename(filename) else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue