Vault 资讯瀑布官方2026.09.30 05:14 UTC+8

astral-sh/uv 发布 0.12.21

uv 0.12.21 发布:CPython 升级至 OpenSSL 3.5.9,锁文件省略空 manifest 表,预览功能精简解析输入并修复多项问题。

发布说明

发布于 2026-09-29。

Python

  • 更新 CPython 以使用 OpenSSL 3.5.9(#22076)

增强

  • 对于仅包含 manifest 子表的锁文件,省略空的 [manifest] 表(#22070)

预览功能

  • 借助 resolution-inputs 预览功能,从 uv.lock 中省略冗余的运行时约束,包括涉及预发布版本的约束(#22004、#22068)

缺陷修复

  • 防止 uv python pin --rm 在未指定 --global 时删除全局 .python-versions 文件(#21992)
  • 修复已安装包检查错误地将后发布版本报告为与预发布版本的排他性下界不兼容的问题(#22049)

安装 uv 0.12.21

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

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

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

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

下载 uv 0.12.21

astral-sh/uv released 0.12.21

Release Notes

Released on 2026-09-29.

Python

  • Update CPython to use OpenSSL 3.5.9 (#22076)

Enhancements

  • Omit empty [manifest] tables from lockfiles that contain only manifest subtables (#22070)

Preview features

  • Omit redundant runtime constraints from uv.lock, including those involving pre-releases, with the resolution-inputs preview feature (#22004, #22068)

Bug fixes

  • Prevent uv python pin --rm from removing a global .python-versions file without --global (#21992)
  • Fix installed-package checks incorrectly reporting post-releases as incompatible with exclusive lower bounds on pre-releases (#22049)

Install uv 0.12.21

Install prebuilt binaries via shell script

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

Download uv 0.12.21

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