astral-sh/uv 发布 0.12.16
uv 0.12.16 发布:新增 Pyodide 版本,校验下载包哈希,改进锁文件与预览功能并修复多项崩溃问题。
中文处理结果
发布说明
发布于 2026-09-17。
Python
- 新增 Pyodide 314.0.7、0.29.5 和 0.27.8(#21741)
增强
- 依据包索引提供的哈希校验下载的 wheel 与源码分发包(#21562)
- 允许
build-constraint-dependencies条目包含哈希,以校验下载的构建依赖(#21467) - 在
required-environments中依据 macOS wheel 部署目标支持 Darwinplatform_release标记(#21766) - 在解析锁文件时拒绝不支持的 Git URL 方案,而不是在冻结导出期间 panic(#21779)
预览功能
- 在所有依赖类型中支持
lock-without-metadata,同时为远程 URL 依赖保留package.metadata以支持离线校验(#21163) - 在
uv upgrade中遵循已配置及命令行的索引设置,包括凭据(#21776) - 允许
uv check在非 uv 管理的项目及工作区之外运行(#21777) - 在为
uv check选择 Python 版本时遵循--python和UV_PYTHON(#21744)
缺陷修复
- 在显示和记录的 URL 中隐去 Azure 共享访问签名(#21755)
- 在复用缓存分发包之前检查
pylock.toml中的归档大小(#21609) - 当后端元数据报告绝对路径时,在锁文件中保持用户编写的本地依赖路径为相对路径(#20631)
- 仅当捆绑的
uv_build后端版本与当前版本锁定匹配时才使用它(#21742) - 在配置了凭据时处理格式错误的索引 URL 而不 panic(#21784)
- 对没有主机的代理 URL 报告配置错误而不是 panic(#21781)
- 当 URL 无法转换为路径时返回隐去凭据的错误而不是 panic(#21783)
安装 uv 0.12.16
通过 shell 脚本安装预构建二进制文件
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.16/uv-installer.sh | sh
通过 powershell 脚本安装预构建二进制文件
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.12.16/uv-installer.ps1 | iex"
下载 uv 0.12.16
原始正文
astral-sh/uv released 0.12.16
Release Notes
Released on 2026-09-17.
Python
- Add Pyodide 314.0.7, 0.29.5, and 0.27.8 (#21741)
Enhancements
- Verify downloaded wheels and source distributions against hashes supplied by package indexes (#21562)
- Allow
build-constraint-dependenciesentries to include hashes for verifying downloaded build dependencies (#21467) - Honor Darwin
platform_releasemarkers inrequired-environmentsusing macOS wheel deployment targets (#21766) - Reject unsupported Git URL schemes while parsing lockfiles instead of panicking during frozen exports (#21779)
Preview features
- Support
lock-without-metadataacross all dependency types while retainingpackage.metadatafor remote URL dependencies to enable offline validation (#21163) - Honor configured and command-line index settings, including credentials, in
uv upgrade(#21776) - Allow
uv checkto run in projects that are not managed by uv and outside workspaces (#21777) - Respect
--pythonandUV_PYTHONwhen selecting the Python version foruv check(#21744)
Bug fixes
- Redact Azure shared access signatures from displayed and logged URLs (#21755)
- Check archive sizes from
pylock.tomlbefore reusing cached distributions (#21609) - Keep user-authored local dependency paths relative in lockfiles when backend metadata reports absolute paths (#20631)
- Use the bundled
uv_buildbackend only when its version matches active version pins (#21742) - Handle malformed index URLs without panicking when credentials are configured (#21784)
- Report a configuration error instead of panicking for proxy URLs without a host (#21781)
- Return a credential-redacted error instead of panicking when a URL cannot be converted to a path (#21783)
Install uv 0.12.16
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.16/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.16/uv-installer.ps1 | iex"
Download uv 0.12.16
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>