astral-sh/uv 发布 0.12.7
uv 0.12.7 发布:升级时替换托管Python,支持Linux s390x等目标,预览内容寻址缓存,多项修复。
中文处理结果
发布说明
发布于 2026-08-27。
Python
- 升级到相同版本的较新构建时,替换托管的 Python 安装(#21323)
增强
- 支持 Linux
s390x、ppc64le和loongarch64目标,用于跨平台依赖解析(#21313) - 当 Azure Storage 拒绝匿名访问通过
UV_AZURE_ENDPOINT_URL配置的端点时,使用配置的凭据重试下载(#21318)
预览功能
- 使用基于内容的目录哈希,在
content-addressed-cache预览功能中缓存中提取的 wheel 进行去重(#19693)
错误修复
- 在将提取内容持久化到缓存之前,拒绝哈希不匹配的源归档(#21248)
其他更改
安装 uv 0.12.7
通过 shell 脚本安装预构建二进制文件
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.7/uv-installer.sh | sh
通过 powershell 脚本安装预构建二进制文件
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.12.7/uv-installer.ps1 | iex"
下载 uv 0.12.7
原始正文
astral-sh/uv released 0.12.7
Release Notes
Released on 2026-08-27.
Python
- Replace managed Python installations when upgrading to a newer build of the same version (#21323)
Enhancements
- Support Linux
s390x,ppc64le, andloongarch64targets for cross-platform dependency resolution (#21313) - Retry downloads with configured credentials when Azure Storage denies anonymous access to an endpoint configured via
UV_AZURE_ENDPOINT_URL(#21318)
Preview features
- Use content-based directory hashes to deduplicate extracted wheels in the cache with the
content-addressed-cachepreview feature (#19693)
Bug fixes
- Reject source archives with hash mismatches before persisting their extracted contents to the cache (#21248)
Other changes
Install uv 0.12.7
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.7/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.7/uv-installer.ps1 | iex"
Download uv 0.12.7
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>