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)
预览功能
缺陷修复
- 防止
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 theresolution-inputspreview feature (#22004, #22068)
Bug fixes
- Prevent
uv python pin --rmfrom removing a global.python-versionsfile 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
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>