astral-sh/uv 发布 0.11.30
uv 0.11.30 发布,包含 CPython 3.15.0b4 支持、多项性能优化、错误修复及文档更新。
中文处理结果
Release Notes
发布于 2026-07-20。
Python
- 添加 CPython 3.15.0b4 (#20519)
预览功能
性能
- 跳过其文件全部被
exclude-newer排除的解析器候选 (#20460) - 限制并行缓存读取以减少解析器调度和分配开销 (#20427)
- 使用
toml_writer加速锁文件序列化 (#20450) - 压缩缓存的 Simple API 分发元数据和哈希 (#20463, #20483)
- 在单个阻塞任务中解码过期的缓存条目 (#20486)
- 在解析器工作线程之外解码缓存的有效载荷 (#20464)
- 缓存解析器的 Python 需求标记 (#20461)
- 在记录偏好时复用解析器分支标记 (#20462)
错误修复
- 防止跳过的 tar-wheel 条目在卸载期间导致无关文件被删除 (#20429)
- 在 Unix 上保留
pyvenv.cfg中的字面extends-environment路径 (#20466)
文档
安装 uv 0.11.30
通过 shell 脚本安装预构建二进制文件
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.11.30/uv-installer.sh | sh
通过 powershell 脚本安装预构建二进制文件
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.11.30/uv-installer.ps1 | iex"
下载 uv 0.11.30
原始正文
astral-sh/uv released 0.11.30
Release Notes
Released on 2026-07-20.
Python
- Add CPython 3.15.0b4 (#20519)
Preview features
- Allow
uv workspace metadata --syncto target the active virtual environment with--active(#20500) - Reuse centralized project environments when workspaces are accessed through symlinks (#20436)
Performance
- Skip resolver candidates whose files are all excluded by
exclude-newer(#20460) - Limit parallel cache reads to reduce resolver scheduling and allocation overhead (#20427)
- Accelerate lockfile serialization with
toml_writer(#20450) - Compact cached Simple API distribution metadata and hashes (#20463, #20483)
- Decode stale cache entries in a single blocking task (#20486)
- Decode cached payloads outside resolver workers (#20464)
- Cache resolver Python requirement markers (#20461)
- Reuse resolver fork markers while recording preferences (#20462)
Bug fixes
- Prevent skipped tar-wheel entries from causing unrelated files to be removed during uninstall (#20429)
- Preserve literal
extends-environmentpaths inpyvenv.cfgon Unix (#20466)
Documentation
Install uv 0.11.30
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.11.30/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.30/uv-installer.ps1 | iex"
Download uv 0.11.30
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>