Vault 资讯瀑布官方2026.07.21 04:48 UTC+8

astral-sh/uv 发布 0.11.30

uv 0.11.30 发布,包含 CPython 3.15.0b4 支持、多项性能优化、错误修复及文档更新。

Release Notes

发布于 2026-07-20。

Python

  • 添加 CPython 3.15.0b4 (#20519)

预览功能

  • 允许 uv workspace metadata --sync 通过 --active 定向到当前虚拟环境 (#20500)
  • 当工作区通过符号链接访问时,复用集中式项目环境 (#20436)

性能

  • 跳过其文件全部被 exclude-newer 排除的解析器候选 (#20460)
  • 限制并行缓存读取以减少解析器调度和分配开销 (#20427)
  • 使用 toml_writer 加速锁文件序列化 (#20450)
  • 压缩缓存的 Simple API 分发元数据和哈希 (#20463, #20483)
  • 在单个阻塞任务中解码过期的缓存条目 (#20486)
  • 在解析器工作线程之外解码缓存的有效载荷 (#20464)
  • 缓存解析器的 Python 需求标记 (#20461)
  • 在记录偏好时复用解析器分支标记 (#20462)

错误修复

  • 防止跳过的 tar-wheel 条目在卸载期间导致无关文件被删除 (#20429)
  • 在 Unix 上保留 pyvenv.cfg 中的字面 extends-environment 路径 (#20466)

文档

安装 uv 0.11.30

通过 shell 脚本安装预构建二进制文件

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

通过 powershell 脚本安装预构建二进制文件

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

下载 uv 0.11.30

astral-sh/uv released 0.11.30

Release Notes

Released on 2026-07-20.

Python

  • Add CPython 3.15.0b4 (#20519)

Preview features

  • Allow uv workspace metadata --sync to target the active virtual environment with --active (#20500)
  • Reuse centralized project environments when workspaces are accessed through symlinks (#20436)

Performance

  • Skip resolver candidates whose files are all excluded by exclude-newer (#20460)
  • Limit parallel cache reads to reduce resolver scheduling and allocation overhead (#20427)
  • Accelerate lockfile serialization with toml_writer (#20450)
  • Compact cached Simple API distribution metadata and hashes (#20463, #20483)
  • Decode stale cache entries in a single blocking task (#20486)
  • Decode cached payloads outside resolver workers (#20464)
  • Cache resolver Python requirement markers (#20461)
  • Reuse resolver fork markers while recording preferences (#20462)

Bug fixes

  • Prevent skipped tar-wheel entries from causing unrelated files to be removed during uninstall (#20429)
  • Preserve literal extends-environment paths in pyvenv.cfg on Unix (#20466)

Documentation

Install uv 0.11.30

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.11.30/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.30/uv-installer.ps1 | iex"

Download uv 0.11.30

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>
查看原始发布