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
--offlineoption fromuv publishhelp (#22124)
Preview features
- Honor
--no-default-groupsinuv audit(#22090) - Report a clear error when
uv auditoruv tool auditruns offline and hide the unsupported option from help (#22114)
Configuration
- Add
UV_PYTHON_ARCHto 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
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>