astral-sh/uv 发布 0.12.14
uv 0.12.14 发布:包操作错误改用统一诊断与退出码,新增断点续传、批量导出预览及多项性能优化与修复。
中文处理结果
发布说明
发布于 2026-09-15。
包操作错误现在使用 uv 的标准诊断,具有一致的提示以及紧凑、带标签的原因链。(#17110、#21599、#21603)
包操作的退出码现在反映底层原因:预期内的失败返回 1,而已识别的操作性和内部失败返回 2。(#17110)
增强
预览功能
- 通过
batch-export预览功能,在一次uv export --batch调用中从共享锁文件导出多个依赖选择(#21618)
性能
- 通过在单个阻塞任务中读取 wheel 元数据,加快从本地 wheelhouse 进行依赖解析的速度(#21619)
- 通过在受限的后台工作线程中解析 Simple API 响应,加快针对大型包索引的冷解析速度(#21593)
- 通过在缓存读取任务中解码新的 HTTP 缓存条目,加快热缓存解析速度(#21621)
缺陷修复
- 在每个解析器分支内选择满足
required-environments的发行版,而不是跨分支合并不兼容的 wheel 覆盖范围(#21672) - 在未启用长路径支持的 Windows 系统上安装路径长度超过
MAX_PATH的包(#21625) - 防止
uv python install在 Unix 上用相对目标覆盖有效的非托管 Python 符号链接(#21639) - 从缺失路径段的 URL 错误中隐去凭据和签名(#21616)
- 当缓存的 HTTP 响应重新验证失败时,避免超出配置的重试预算(#21640)
- 在 Unix 环境中发现解释器时优先选择
bin/python而非bin/python3(#21559) - 在
--quiet下抑制托管 Python 回退警告(#21565) - 使用
-q时保持失败的uv tool upgrade错误可见,使用-qq时将其抑制(#21566)
安装 uv 0.12.14
通过 shell 脚本安装预构建二进制文件
原始正文
astral-sh/uv released 0.12.14
Release Notes
Released on 2026-09-15.
Package-operation errors now use uv's standard diagnostics, with consistent hints and compact, labeled cause chains. (#17110, #21599, #21603)
Package-operation exit codes now reflect the underlying cause: expected failures return 1, while recognized operational and internal failures return 2. (#17110)
Enhancements
- Resume interrupted downloads with HTTP Range requests when supported (#21570)
- Show underlying causes and hints in user warnings (#21565)
- Show resolver hints for failed
uv tool upgradeoperations (#21566)
Preview features
- Export multiple dependency selections from a shared lockfile in one
uv export --batchinvocation with thebatch-exportpreview feature (#21618)
Performance
- Speed up dependency resolution from local wheelhouses by reading wheel metadata in a single blocking task (#21619)
- Speed up cold resolution against large package indexes by parsing Simple API responses in bounded background workers (#21593)
- Speed up warm-cache resolution by decoding fresh HTTP cache entries in the cache-read task (#21621)
Bug fixes
- Select releases that satisfy
required-environmentswithin each resolver fork instead of combining incompatible wheel coverage across forks (#21672) - Install packages with paths longer than
MAX_PATHon Windows systems without long-path support enabled (#21625) - Prevent
uv python installfrom overwriting valid unmanaged Python symlinks with relative targets on Unix (#21639) - Redact credentials and signatures from missing-path-segment URL errors (#21616)
- Avoid exceeding the configured retry budget when cached HTTP responses fail revalidation (#21640)
- Prefer
bin/pythonoverbin/python3when discovering interpreters in Unix environments (#21559) - Suppress managed-Python fallback warnings under
--quiet(#21565) - Keep failed
uv tool upgradeerrors visible with-qwhile suppressing them with-qq(#21566)
Install uv 0.12.14
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.14/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.14/uv-installer.ps1 | iex"
Download uv 0.12.14
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>