astral-sh/uv 发布 0.12.10
uv 0.12.10 发布:增强发布后令牌撤销,预览功能优化,性能提升,多项修复。
中文处理结果
发布说明
发布于 2026-09-04。
增强
- 在
uv publish完成后尝试撤销短期的 PyPI 可信发布令牌,包括发布失败时(#21423)
预览功能
- 使用
missing-exclude-newer-package-lock预览功能时,对解析范围之外的包省略exclude-newer-package设置(#21455) - 在
uv tree --invert输出中显示终端依赖循环(#21404)
性能
错误修复
- 当
exclude-newer-package设置仅对解析范围之外的包不同时,防止--locked失败(#21454) - 允许
uv lock --check在绝对exclude-newer截止时间后移时重用锁文件(#19571) - 允许
uv lock --check在禁用特定包的exclude-newer截止时间时重用锁文件(#21450) - 当
uv init推断的项目名称与 Python 解释器保留名称冲突时,要求显式提供--name(#21395) - 以确定性顺序将特定包的
exclude-newer截止时间写入uv.lock(#21453)
安装 uv 0.12.10
通过 shell 脚本安装预构建二进制文件
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.10/uv-installer.sh | sh
通过 powershell 脚本安装预构建二进制文件
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.12.10/uv-installer.ps1 | iex"
下载 uv 0.12.10
原始正文
astral-sh/uv released 0.12.10
Release Notes
Released on 2026-09-04.
Enhancements
- Attempt to revoke short-lived PyPI trusted-publishing tokens after
uv publishcompletes, including when publishing fails (#21423)
Preview features
- Omit
exclude-newer-packagesettings for packages outside the resolution fromuv.lockwith themissing-exclude-newer-package-lockpreview feature (#21455) - Show terminal dependency cycles in
uv tree --invertoutput (#21404)
Performance
- Speed up locking large workspaces with conflicts by excluding unrelated extras and dependency groups from conflict simplification (#21399)
- Speed up
uv publishby hashing each artifact in a single blocking task and reusing the buffer across reads (#21389)
Bug fixes
- Prevent
--lockedfrom failing whenexclude-newer-packagesettings differ only for packages outside the resolution (#21454) - Allow
uv lock --checkto reuse a lockfile when an absoluteexclude-newercutoff is moved later (#19571) - Allow
uv lock --checkto reuse a lockfile when a package-specificexclude-newercutoff is disabled (#21450) - Require an explicit
--namewhenuv initwould infer a project name reserved for a Python interpreter (#21395) - Write package-specific
exclude-newercutoffs touv.lockin a deterministic order (#21453)
Install uv 0.12.10
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.10/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.10/uv-installer.ps1 | iex"
Download uv 0.12.10
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>