Vault 资讯瀑布官方2026.07.07 05:01 UTC+8

astral-sh/uv 发布 0.11.27

uv 0.11.27 发布,新增功能与预览特性,并带来多项性能优化和错误修复。

发布说明

发布于 2026-07-06。

增强

  • 在获取 wheel 元数据时继续处理被忽略的错误 (#12255)
  • --python-downloads-json-url 使用缓存 (#16749)

预览功能

  • uv workspace list --scripts 中发现无扩展名的 shebang 脚本 (#20099)

性能

  • 避免直接重装时进行完整的 site-packages 扫描 (#20119)
  • 避免冗余的 pyproject 解析 (#20076)
  • 读取锁文件时缓存默认依赖标记 (#20125)
  • 启用 SIMD 加速的 TOML 解析 (#20079)
  • 在 Simple API 解析中暂存 requires-python 说明符 (#20104)
  • 将缓存条目读入精确大小的缓冲区 (#20120)
  • 减少 VersionSpecifiers 解析分配 (#20105)
  • 减少 site-packages 扫描分配开销 (#20087)
  • 解析 wheel 文件名时复用包名 (#20110)
  • 分组后对 Simple API 文件进行排序 (#20112)

错误修复

  • 始终为 pylock.toml 生成 packages 表 (#20145)
  • 避免空 uv pip tree 输出中的空白行 (#20062)
  • 在文件路径中对哈希进行编码 (#19807)
  • 遇到无版本的注册表 uv.lock 包时抛出错误而非 panic (#19855)
  • 在导出中保留条件性 extra 标记 (#20148)
  • 跳过文件传输 VCS URL 的歧义权威检查 (#20086)
  • uv add --index 更新现有索引 URL 时同步索引格式 (#19818)

其他变更

  • 重新添加 Pixi 中使用的 pub API (#20074)
  • 将 Rust 工具链更新至 1.96.1 (#20103)

安装 uv 0.11.27

通过 shell 脚本安装预编译二进制文件

curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.11.27/uv-installer.sh | sh

通过 PowerShell 脚本安装预编译二进制文件

powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.11.27/uv-installer.ps1 | iex"

下载 uv 0.11.27

astral-sh/uv released 0.11.27

Release Notes

Released on 2026-07-06.

Enhancements

  • Continue on ignored errors when fetching wheel metadata (#12255)
  • Use caching for --python-downloads-json-url (#16749)

Preview features

  • Discover extensionless shebang scripts in uv workspace list --scripts (#20099)

Performance

  • Avoid full site-packages scans for direct reinstalls (#20119)
  • Avoid redundant pyproject parsing (#20076)
  • Cache default dependency markers when reading locks (#20125)
  • Enable SIMD-accelerated TOML parsing (#20079)
  • Intern requires-python specifiers in Simple API parsing (#20104)
  • Read cache entries into exact-sized buffers (#20120)
  • Reduce VersionSpecifiers parsing allocations (#20105)
  • Reduce site-packages scan allocation overhead (#20087)
  • Reuse package names when parsing wheel filenames (#20110)
  • Sort Simple API files after grouping (#20112)

Bug fixes

  • Always emit packages table for pylock.toml (#20145)
  • Avoid blank line for empty uv pip tree (#20062)
  • Encode hashes in file paths (#19807)
  • Error on a registry uv.lock package without a version instead of panicking (#19855)
  • Preserve conditional extra markers in exports (#20148)
  • Skip the ambiguous authority check for file transport VCS URLs (#20086)
  • Sync index format when uv add --index updates an existing index URL (#19818)

Other changes

  • Re-add pub APIs used in Pixi (#20074)
  • Update Rust toolchain to 1.96.1 (#20103)

Install uv 0.11.27

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.11.27/uv-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.11.27/uv-installer.ps1 | iex"

Download uv 0.11.27

FilePlatformChecksum
uv-aarch64-apple-darwin.tar.gzApple Silicon macOSchecksum
uv-x86_64-apple-darwin.tar.gzIntel macOSchecksum
uv-aarch64-pc-windows-msvc.zipARM64 Windowschecksum
uv-i686-pc-windows-msvc.zipx86 Windowschecksum
uv-x86_64-pc-windows-msvc.zipx64 Windowschecksum
uv-aarch64-unknown-linux-gnu.tar.gzARM64 Linuxchecksum
uv-i686-unknown-linux-gnu.tar.gzx86 Linuxchecksum
uv-powerpc64le-unknown-linux-gnu.tar.gzPPC64LE Linuxchecksum
uv-riscv64gc-unknown-linux-gnu.tar.gzRISCV Linuxchecksum
uv-s390x-unknown-linux-gnu.tar.gzS390x Linuxchecksum
uv-x86_64-unknown-linux-gnu.tar.gzx64 Linuxchecksum
uv-armv7-unknown-linux-gnueabihf.tar.gzARMv7 Linuxchecksum
uv-aarch64-unknown-linux-musl.tar.gzARM64 MUSL Linuxchecksum
uv-i686-unknown-linux-musl.tar.gzx86 MUSL Linuxchecksum
uv-riscv64gc-unknown-linux-musl.tar.gzRISCV MUSL Linuxchecksum
uv-x86_64-unknown-linux-musl.tar.gzx64 MUSL Linuxchecksum
uv-arm-unknown-linux-musleabihf.tar.gzARMv6 MUSL Linux (Hardfloat)checksum
uv-armv7-unknown-linux-musleabihf.tar.gzARMv7 MUSL Linuxchecksum

Verifying GitHub Artifact Attestations

The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:

gh attestation verify <file-path of downloaded artifact> --repo astral-sh/uv

You can also download the attestation from GitHub and verify against that directly:

gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>
查看原始发布
astral-sh/uv 发布 0.11.27 — Vault2077