[build] Give Python release candidates distinct versions - #4413
Merged
Merged
Conversation
Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 82/82 AI-Contributed/UT: 0/0
wuchong
force-pushed
the
fix/python-release-rc-versions-main
branch
from
September 18, 2026 01:31
a6f08a2 to
e3b74dc
Compare
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.
Summary
RC tags currently build the final Cargo version (
1.0.0), so TestPyPI'sskip-existingcan silently retain files from an earlier candidate. Give each Python release candidate a distinct PEP 440 version:v1.0.0-rc3producespyfluss==1.0.0rc3.Set static Python version metadata before both sdist and wheel builds. The sdist retains this version when rebuilt; Rust workspace versions and lockfiles stay unchanged, and final release tags retain the Cargo-derived version. Unsupported tag formats fail before changing metadata.
Test Plan
actionlint,ruff check,ruff format --check, andgit diff --checkpass.v1.0.0-rc2,v1.0.0-rc3, andv1.0.0; checked filenames andPKG-INFOversions1.0.0rc2,1.0.0rc3, and1.0.0respectively. Verified all four license files and unchanged Rust manifests/lockfile.flussandfluss._flusswith distribution version1.0.0rc3.maturin build --release --locked; verified wheel metadata is1.0.0rc3.AI-assisted changes.
Requires the separate ASF-approved Rust Action pin in #4410 before an upstream release workflow can run.