Vault 资讯瀑布官方2026.10.02 08:20 UTC+8

astral-sh/uv 发布 0.12.22

uv 0.12.22 发布:新增 CPython 3.10.22–3.14.8,锁文件记录工作区默认组与依赖组 Python 要求,并修复多项问题。

发布说明

发布于 2026-10-01。

Python

  • 新增 CPython 3.10.22、3.11.17、3.12.15、3.13.16 和 3.14.8(#22147)

增强

  • 在 wheel 平台标签中接受大写发布后缀(#22113)
  • 在锁文件中记录工作区成员的默认组(#22010、#22103)
  • 在锁文件中记录工作区成员的依赖组 Python 要求(#22044、#22103)
  • 在锁文件中记录非项目工作区根目录的默认组(#22104)
  • 在锁文件中记录非项目工作区根目录的依赖组 Python 要求(#22104)
  • 在 CLI 消息中统一格式化 URL 与路径(#21937)
  • 在 uv publish 帮助中隐藏不受支持的 --offline 选项(#22124)

预览功能

  • 在 uv audit 中遵循 --no-default-groups(#22090)
  • 当 uv audit 或 uv tool audit 离线运行时报告清晰错误,并在帮助中隐藏不受支持的选项(#22114)

配置

  • 新增 UV_PYTHON_ARCH,可独立于 Python 版本选择解释器架构(#22098)

性能

  • 通过压缩内嵌的 Python 下载元数据减小 uv 的二进制体积(#22126)

缺陷修复

  • 重新锁定(relock)时,将未变更的要求与现有锁文件哈希进行校验(#22083)
  • 在非项目工作区根目录遵循依赖组 Python 要求(#22101)
  • 冻结同步(frozen sync)期间使用每个所选工作区成员记录的默认组(#22015)
  • 避免对必需的工作区成员产生错误的入口点警告(#22112)

其他变更

  • 将构建 uv 的最低支持 Rust 版本提升至 1.97,并将工具链更新至 Rust 1.99(#22121)

安装 uv 0.12.22

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

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

通过 powershell 脚本安装预编译二进制

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

下载 uv 0.12.22

astral-sh/uv released 0.12.22

Release Notes

Released on 2026-10-01.

Python

  • Add CPython 3.10.22, 3.11.17, 3.12.15, 3.13.16, and 3.14.8 (#22147)

Enhancements

  • Accept uppercase release suffixes in wheel platform tags (#22113)
  • Record workspace-member default groups in lockfiles (#22010, #22103)
  • Record workspace-member dependency-group Python requirements in lockfiles (#22044, #22103)
  • Record default groups for non-project workspace roots in lockfiles (#22104)
  • Record dependency-group Python requirements for non-project workspace roots in lockfiles (#22104)
  • Format URLs and paths consistently in CLI messages (#21937)
  • Hide the unsupported --offline option from uv publish help (#22124)

Preview features

  • Honor --no-default-groups in uv audit (#22090)
  • Report a clear error when uv audit or uv tool audit runs offline and hide the unsupported option from help (#22114)

Configuration

  • Add UV_PYTHON_ARCH to select an interpreter architecture independently of its Python version (#22098)

Performance

  • Reduce uv's binary size by compressing embedded Python download metadata (#22126)

Bug fixes

  • Verify unchanged requirements against existing lockfile hashes when relocking (#22083)
  • Honor dependency-group Python requirements at non-project workspace roots (#22101)
  • Use each selected workspace member's recorded default groups during frozen sync (#22015)
  • Avoid false entry-point warnings for required workspace members (#22112)

Other changes

  • Raise the minimum supported Rust version for building uv to 1.97 and update the toolchain to Rust 1.99 (#22121)

Install uv 0.12.22

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

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

Download uv 0.12.22

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