Repository navigation
fix(release): pin Python for the PyPI distribution build - #3796
Merged
Daniel Meppiel (danielmeppiel) merged 2 commits intoNov 17, 2026
Merged
Conversation
Build PyPI Distributions never set up Python, so uv chose the runner's newest interpreter (3.14), where locked pydantic-core has no wheel and fails to compile. Recovery run 44151877367 failed this way; the next tag publish would have too. Pin it to PYTHON_VERSION through setup-uv. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 17, 2026 18:51
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Only static workflow checks cover the irreversible PyPI recovery path; a release operator should validate the tagged Python 3.12 build before publication.
No open issues 🎉
What changed in this PR
Pins the PyPI distribution build to the workflow's Python 3.12 setting, preventing normal release and tag-recovery builds from selecting an interpreter incompatible with locked native dependencies.
Changes:
- Passes
PYTHON_VERSIONtosetup-uvin the distribution-build job. - Adds a regression assertion for the interpreter setting.
- Updates the existing changelog entry to include this follow-up fix.
| File | Description |
|---|---|
tests/unit/test_security_workflow_contracts.py |
Asserts that the distribution builder pins Python through setup-uv. |
CHANGELOG.md |
Adds this PR to the related release-publication fix entry. |
.github/workflows/build-release.yml |
Pins the PyPI build interpreter to PYTHON_VERSION. |
Review effort: Balanced
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-pypi-build-python
branch
November 17, 2026 19:06
This was referenced Nov 18, 2026
Merged
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 19, 2026
* docs(changelog): make 0.36.0 onwards legible and concise Rewrites [Unreleased], [0.36.1] and [0.36.0] as one short line per user-visible change, with Highlights and a Breaking changes and upgrade notes list per version, grouped PRs and internal-only entries dropped (#3637, #3771, #3794, #3796, #3877). Credits, PR references, the 0.36.1 issue closures and the live Azure DevOps caveat are kept. Sections from 0.35.1 down are unchanged. The changelog instructions now describe this style. Co-authored-by: Copilot App <[email protected]> * chore(lock): record the new changelog instructions hash Co-authored-by: Copilot App <[email protected]> * docs: note the shared .mcp.json and VS Code Local mode in 0.37 upgrade notes Co-authored-by: Copilot App <[email protected]> * docs(changelog): restore accuracy qualifiers flagged in review Restores the static env caveat for .mcp.json, the pack default-format qualifier, Copilot CLI scope for COPILOT_HOME, the 0.36.1 frozen-lockfile recovery step, and the bundle install --target qualifier. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: danielmeppiel <[email protected]> Co-authored-by: Copilot App <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes forward from #3794. The first
publish-existing-tagrecovery for v0.36.0 (run 44151877367) passed tag resolution and checked outv0.36.0.Build PyPI Distributionsthen failed:That job never set up Python, so uv chose the runner image's newest interpreter. The bug predates #3794 and would also break the next normal tag publish. Fix: pass
python-version: ${{ env.PYTHON_VERSION }}(3.12, as every other job uses) tosetup-uv.test_pypi_publisher_only_downloads_and_publishesnow pins it.After merge: re-dispatch
publish-existing-tagforv0.36.0.Issue and approved scope
Issue: Refs #3581
Human scope-approval comment: #3581 (comment). This is a named release fix that follows #3794 (milestone 0.36.1).
Does this PR complete the issue, or what remains? Partial. It is a release-path fix only.
Type of change
Testing
pytest tests/unit/test_security_workflow_contracts.py -p no:xdistactionlint .github/workflows/build-release.ymlruff check/ruff format --checkon the changed testSpec conformance (OpenAPM v0.1)