astral-sh/uv 发布 0.12.19
uv 0.12.19 发布:新增 PyPy 3.11.16/3.12.14 与 GraalPy 更新,预览功能支持惰性导入构建后端与精简锁文件解析输入,并修复多项问题。
中文处理结果
发布说明
发布于 2026-09-24。
Python
增强
- 在
uv publish错误信息中用反引号格式化上传 URL(#21934)
预览功能
- 在 CPython 3.15 及更高版本上,通过
build-lazy-imports预览功能以惰性导入方式运行构建后端钩子(#21967) - 通过
resolution-inputs预览功能,从uv.lock中省略未使用的解析设置,并在检查锁文件新鲜度时忽略对这些设置的更改(#21913)
缺陷修复
- 在直接 URL 元数据中保留带签名和编码的查询参数,避免重新安装未变更的包(#21971)
- 在已安装包检查中,识别
1.0.0满足===1,与解析行为保持一致(#21931) - 避免 Git 检出就绪标记与依赖中的
.ok文件发生冲突(#21891) - 在解析始终为假的
python_version标记的序列化形式时保留该标记(#21939)
Rust API
- 恢复公开的
FlatDistributions导出及其BTreeMap转换,供下游解析器使用(#21965)
文档
- 使各个预览功能参考条目可按名称链接(#21950)
安装 uv 0.12.19
通过 shell 脚本安装预编译二进制文件
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.19/uv-installer.sh | sh
通过 powershell 脚本安装预编译二进制文件
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.12.19/uv-installer.ps1 | iex"
下载 uv 0.12.19
原始正文
astral-sh/uv released 0.12.19
Release Notes
Released on 2026-09-24.
Python
Enhancements
- Format upload URLs with backticks in
uv publisherrors (#21934)
Preview features
- Run build-backend hooks with lazy imports on CPython 3.15 and later using the
build-lazy-importspreview feature (#21967) - Omit unused resolution settings from
uv.lockand ignore changes to them when checking lockfile freshness with theresolution-inputspreview feature (#21913)
Bug fixes
- Preserve signed and encoded query parameters in direct-URL metadata to avoid reinstalling unchanged packages (#21971)
- Recognize
1.0.0as satisfying===1during installed-package checks, matching resolution (#21931) - Avoid collisions between Git checkout readiness markers and
.okfiles in dependencies (#21891) - Preserve always-false
python_versionmarkers when parsing their serialized form (#21939)
Rust API
- Restore the public
FlatDistributionsexport and itsBTreeMapconversion for downstream resolvers (#21965)
Documentation
- Make individual preview-feature reference entries linkable by name (#21950)
Install uv 0.12.19
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.19/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.19/uv-installer.ps1 | iex"
Download uv 0.12.19
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>