astral-sh/uv 发布 0.11.31
uv 0.11.31 发布:支持跨工作区引用、.venv 文件、索引特定哈希算法设置,新增恶意软件检查配置,并修复多项问题。
中文处理结果
发布说明
发布于 2026-07-21。
增强
- 允许工作区源通过路径引用另一个工作区中的成员(#18401)
- 支持包含指向集中式项目环境路径的
.venv文件(#20022) - 将捆绑的 Windows 时区数据更新为 IANA 2026c(#20554)
预览功能
- 为锁文件生成添加索引特定的
hash-algorithm设置(#20605)
配置
- 添加
audit.malware-check和audit.malware-check-url设置(#20587)
性能
- 避免在去重传递冲突时进行二次方复杂度的计算(#20578)
错误修复
- 为不支持的
uv pip compile --emit-options提示--emit-build-options(#20582) - 拒绝包名不匹配的源代码发行版和 wheel(#20432)
- 避免重试 TLS 证书验证失败(#16245)
- 避免针对树内构建后端发出
uv_build设置的警告(#20153)
安装 uv 0.11.31
通过 shell 脚本安装预构建二进制文件
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.11.31/uv-installer.sh | sh
通过 powershell 脚本安装预构建二进制文件
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.11.31/uv-installer.ps1 | iex"
下载 uv 0.11.31
原始正文
astral-sh/uv released 0.11.31
Release Notes
Released on 2026-07-21.
Enhancements
- Allow workspace sources to reference members in another workspace by path (#18401)
- Support
.venvfiles containing paths to centralized project environments (#20022) - Update bundled Windows timezone data to IANA 2026c (#20554)
Preview features
- Add an index-specific
hash-algorithmsetting for lockfile generation (#20605)
Configuration
- Add
audit.malware-checkandaudit.malware-check-urlsettings (#20587)
Performance
- Avoid quadratic work when deduplicating transitive conflicts (#20578)
Bug fixes
- Suggest
--emit-build-optionsfor unsupporteduv pip compile --emit-options(#20582) - Reject source distributions and wheels with mismatched package names (#20432)
- Avoid retrying TLS certificate verification failures (#16245)
- Avoid warnings about
uv_buildsettings for in-tree build backends (#20153)
Install uv 0.11.31
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.11.31/uv-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.11.31/uv-installer.ps1 | iex"
Download uv 0.11.31
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>