Skip to content

Abstract Trusted Publishing services#17418

Merged
woodruffw merged 1 commit intomainfrom
ww/pyx-tp
Jan 13, 2026
Merged

Abstract Trusted Publishing services#17418
woodruffw merged 1 commit intomainfrom
ww/pyx-tp

Conversation

@woodruffw
Copy link
Member

@woodruffw woodruffw commented Jan 12, 2026

Summary

This is the first of two PRs to enable direct Trusted Publishing to pyx, without an intermediating step (like pyx-auth-action).

This first PR contains no functional changes, just a refactor to make the actual functional changes clearer. Specifically, it adds a TrustedPublishingService trait that describes the behavior of a service that is Trusted Publishing aware, and adds an initial PyPIPublishingService implementation of that trait that matches the current PyPI Trusted Publishing APIs. I'll use the same trait shape to define a PyxPublishingService in a subsequent PR.

(Longer term, once PEP 807 is implemented, we'll also be able to add a StandardPublishingService or whatever and deprecate the other two.)

Test Plan

No functional changes. Should be covered by the existing publishing tests.

@woodruffw woodruffw requested a review from konstin January 12, 2026 15:50
@woodruffw woodruffw self-assigned this Jan 12, 2026
@woodruffw woodruffw added the internal A refactor or improvement that is not user-facing label Jan 12, 2026
@woodruffw woodruffw marked this pull request as ready for review January 12, 2026 15:54
@woodruffw woodruffw temporarily deployed to uv-test-registries January 12, 2026 15:58 — with GitHub Actions Inactive
@woodruffw woodruffw temporarily deployed to uv-test-registries January 12, 2026 16:27 — with GitHub Actions Inactive
@woodruffw woodruffw temporarily deployed to uv-test-registries January 12, 2026 22:53 — with GitHub Actions Inactive
Signed-off-by: William Woodruff <william@astral.sh>

Remove unused APIs

Signed-off-by: William Woodruff <william@astral.sh>

Remove old imports

Signed-off-by: William Woodruff <william@astral.sh>

remove a line

Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw enabled auto-merge (squash) January 13, 2026 15:44
@woodruffw woodruffw temporarily deployed to uv-test-registries January 13, 2026 15:47 — with GitHub Actions Inactive
@woodruffw woodruffw merged commit 6dfa0e3 into main Jan 13, 2026
98 checks passed
@woodruffw woodruffw deleted the ww/pyx-tp branch January 13, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants