Skip to content

Publish tested Python artifacts through PyPI trusted publishing - #34

Merged
amanda-vapi merged 1 commit into
mainfrom
codex/release-pipeline-parity
Nov 3, 2026
Merged

amanda-vapi merged 1 commit into
mainfrom
codex/release-pipeline-parity

Conversation

@amanda-vapi

@amanda-vapi amanda-vapi commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Python currently rebuilds during publication with registry credentials available, so it does not publish the exact wheel exercised by CI. Build the wheel and source distribution once without publishing authority, validate their metadata, and install that same wheel in all seven existing Python/Pydantic test combinations. The wheel is built from the source distribution by python -m build.

Publication now downloads those artifacts in a separate job with no checkout, package build, dependency installation, or stored PyPI credentials. It uses PyPI trusted publishing bound to this repository, ci.yml, and the tag-only pypi environment. That registry and environment configuration has been saved; no additional release approval is required.

For tag pushes, reject a mismatched package version, an event/checkout mismatch, or a commit not already on protected main before installing build tools. Keep the custom scripts in .fernignore so regeneration preserves them. Tests cover approved main ancestors, annotated tags, unmerged commits, incorrect checkouts, missing refs, and invalid release versions/refs.

Validation: six local Python release-validation tests pass. GitHub CI passed the distribution build/metadata validation, mypy, and all seven test combinations on both push and pull-request runs. No release tag was created and no package was published.

Repository rules were separately updated to require compile, package, and all seven matrix checks, dismiss stale approvals after code changes, and retain an empty bypass list. This PR does not add automatic post-merge tagging, API compatibility comparison, registry version uniqueness checks, or post-publication installation verification.

@amanda-vapi
amanda-vapi merged commit fb2f85c into main Nov 3, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants