astral-sh/uv 发布 0.11.27
uv 0.11.27 发布,新增功能与预览特性,并带来多项性能优化和错误修复。
中文处理结果
发布说明
发布于 2026-07-06。
增强
预览功能
- 在
uv workspace list --scripts中发现无扩展名的 shebang 脚本 (#20099)
性能
- 避免直接重装时进行完整的 site-packages 扫描 (#20119)
- 避免冗余的 pyproject 解析 (#20076)
- 读取锁文件时缓存默认依赖标记 (#20125)
- 启用 SIMD 加速的 TOML 解析 (#20079)
- 在 Simple API 解析中暂存
requires-python说明符 (#20104) - 将缓存条目读入精确大小的缓冲区 (#20120)
- 减少 VersionSpecifiers 解析分配 (#20105)
- 减少 site-packages 扫描分配开销 (#20087)
- 解析 wheel 文件名时复用包名 (#20110)
- 分组后对 Simple API 文件进行排序 (#20112)
错误修复
- 始终为 pylock.toml 生成
packages表 (#20145) - 避免空
uv pip tree输出中的空白行 (#20062) - 在文件路径中对哈希进行编码 (#19807)
- 遇到无版本的注册表 uv.lock 包时抛出错误而非 panic (#19855)
- 在导出中保留条件性 extra 标记 (#20148)
- 跳过文件传输 VCS URL 的歧义权威检查 (#20086)
- 当
uv add --index更新现有索引 URL 时同步索引格式 (#19818)
其他变更
安装 uv 0.11.27
通过 shell 脚本安装预编译二进制文件
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.11.27/uv-installer.sh | sh
通过 PowerShell 脚本安装预编译二进制文件
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.11.27/uv-installer.ps1 | iex"
下载 uv 0.11.27
原始正文
astral-sh/uv released 0.11.27
Release Notes
Released on 2026-07-06.
Enhancements
- Continue on ignored errors when fetching wheel metadata (#12255)
- Use caching for
--python-downloads-json-url(#16749)
Preview features
- Discover extensionless shebang scripts in
uv workspace list --scripts(#20099)
Performance
- Avoid full site-packages scans for direct reinstalls (#20119)
- Avoid redundant pyproject parsing (#20076)
- Cache default dependency markers when reading locks (#20125)
- Enable SIMD-accelerated TOML parsing (#20079)
- Intern
requires-pythonspecifiers in Simple API parsing (#20104) - Read cache entries into exact-sized buffers (#20120)
- Reduce VersionSpecifiers parsing allocations (#20105)
- Reduce site-packages scan allocation overhead (#20087)
- Reuse package names when parsing wheel filenames (#20110)
- Sort Simple API files after grouping (#20112)
Bug fixes
- Always emit
packagestable for pylock.toml (#20145) - Avoid blank line for empty
uv pip tree(#20062) - Encode hashes in file paths (#19807)
- Error on a registry uv.lock package without a version instead of panicking (#19855)
- Preserve conditional extra markers in exports (#20148)
- Skip the ambiguous authority check for file transport VCS URLs (#20086)
- Sync index format when
uv add --indexupdates an existing index URL (#19818)
Other changes
Install uv 0.11.27
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.11.27/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.27/uv-installer.ps1 | iex"
Download uv 0.11.27
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>