Skip to content

Add --cert support to uv pip - #20418

Merged
charliermarsh merged 1 commit into
release/0.12.0from
charlie/pip-cert-support-0.12
Jul 15, 2026
Merged

Add --cert support to uv pip#20418
charliermarsh merged 1 commit into
release/0.12.0from
charlie/pip-cert-support-0.12

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Jul 15, 2026

Copy link
Copy Markdown
Member

Summary

Add pip-compatible --cert <path> support to all uv pip commands. The option is scoped to the uv pip namespace, so other uv commands continue to reject it.

An explicit certificate bundle replaces uv's default, system, and SSL_CERT_FILE / SSL_CERT_DIR trust sources for that invocation, matching pip's behavior without modifying the environment inherited by child processes.

## Summary

Add pip-compatible `--cert <path>` support to all `uv pip` commands. The
option is scoped to the `uv pip` namespace, so other uv commands
continue to reject it.

An explicit certificate bundle replaces uv's default, system, and
`SSL_CERT_FILE` / `SSL_CERT_DIR` trust sources for that invocation,
matching pip's behavior without modifying the environment inherited by
child processes.
charliermarsh added a commit that referenced this pull request Jul 15, 2026
Revert #20367. Supporting `--cert` changes certificate-trust behavior
for existing `uv pip` invocations, so it is breaking and should not land
in a non-breaking release.

Move the change to the 0.12 release line in #20418.
@charliermarsh
charliermarsh marked this pull request as ready for review July 15, 2026 00:14
@charliermarsh charliermarsh added breaking A breaking change compatibility Compatibility with a specification or another tool labels Jul 15, 2026
@charliermarsh charliermarsh added this to the v0.12.0 milestone Jul 15, 2026
@charliermarsh
charliermarsh merged commit 4c42e6b into release/0.12.0 Jul 15, 2026
55 checks passed
@charliermarsh
charliermarsh deleted the charlie/pip-cert-support-0.12 branch July 15, 2026 00:14
@konstin konstin mentioned this pull request Jul 21, 2026
zaniebot pushed a commit to zaniebot/uv that referenced this pull request Jul 27, 2026
## Summary

Add pip-compatible `--cert <path>` support to all `uv pip` commands. The
option is scoped to the `uv pip` namespace, so other uv commands
continue to reject it.

An explicit certificate bundle replaces uv's default, system, and
`SSL_CERT_FILE` / `SSL_CERT_DIR` trust sources for that invocation,
matching pip's behavior without modifying the environment inherited by
child processes.

Preserve newer release-branch TLS alert regression tests and update the
restored certificate snapshots to the current output format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking A breaking change compatibility Compatibility with a specification or another tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant