astral-sh/uv 发布 0.12.17
uv 0.12.17 发布:锁文件拒绝不支持的 Git 归档路径,预览功能新增 minimum-libc-version 等,并含性能优化与修复。
中文处理结果
发布说明
发布于 2026-09-18。
增强
- 在锁文件中拒绝不支持的 Git 归档路径,并给出清晰错误,而不是在冻结导出期间发生 panic(#21780)
预览功能
- 通过
minimum-libc-version设置通用解析必须支持的最低 glibc 和 musl 版本(#21651) - 拒绝 wheel 文件名与其声明的包名或版本不匹配的
pylock.toml文件(#20746) - 除非提供
--sync,否则保持uv workspace metadata只读(#21821) - 在获取工作区元数据时应用
uv check锁模式(#21821)
性能
缺陷修复
- 防止
required-environments选择那些 wheel 所需 macOS 版本高于所配置 Darwin 基线的包版本(#21825)
文档
- 澄清 0.12.14 和 0.12.15 的发布说明(#21817)
安装 uv 0.12.17
通过 shell 脚本安装预构建二进制文件
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.17/uv-installer.sh | sh
通过 powershell 脚本安装预构建二进制文件
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.12.17/uv-installer.ps1 | iex"
下载 uv 0.12.17
原始正文
astral-sh/uv released 0.12.17
Release Notes
Released on 2026-09-18.
Enhancements
- Reject unsupported Git archive paths in lockfiles with a clear error instead of panicking during frozen exports (#21780)
Preview features
- Set minimum glibc and musl versions that universal resolutions must support with
minimum-libc-version(#21651) - Reject
pylock.tomlfiles whose wheel filenames do not match their declared package names or versions (#20746) - Keep
uv workspace metadataread-only unless--syncis provided (#21821) - Apply
uv checklock modes when retrieving workspace metadata (#21821)
Performance
- Speed up builds with many exclusion patterns by avoiding quadratic deduplication (#21650)
- Reduce resolver allocations when deduplicating package and distribution requests (#21810)
Bug fixes
- Prevent
required-environmentsfrom selecting package versions whose wheels require a newer macOS version than the configured Darwin baseline (#21825)
Documentation
- Clarify the 0.12.14 and 0.12.15 release notes (#21817)
Install uv 0.12.17
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.17/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.17/uv-installer.ps1 | iex"
Download uv 0.12.17
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>