-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
CI: add PyPI Trusted-Publishing “publish” job to wheels workflow (#61669) #61718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jorisvandenbossche
merged 28 commits into
pandas-dev:main
from
EvMossan:trusted-publish-pypi
Sep 21, 2025
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
a419d40
CI: add Trusted Publishing job to wheels workflow (#61669)
EvMossan abda427
Remove obsolete standalone publish workflow
EvMossan 6e9027c
CI: fix wheel-workflow YAML, drop win-arm64
EvMossan e3e583d
CI: set project name to evgmosme-pandas for TestPyPI
EvMossan 9f9013e
CI: temporarily shrink workflow matrix and add
EvMossan 4e4cc1e
CI: skip pyodide wheel on TestPyPI upload
EvMossan d311ce4
Restore original wheels.yml from upstream/main
EvMossan 6360900
CI: skip win_arm64 for tests, add final publish block
EvMossan c15c176
CI: final Trusted-Publishing workflow (PyPI ready)
EvMossan 0332486
Docs & CI: add publish-comment header; final PyPI configuration
EvMossan c675826
DOC: add Build/CI trusted-publishing entry to v3.0.0 whatsnew (#61669)
EvMossan 3cac6a5
CI: restore project name 'pandas' in pyproject.toml
EvMossan 45291a7
CI: normalize line endings in wheels.yml (pre-commit)
EvMossan da41c89
DOC: replace <PR_NUMBER> with 61718 in whatsnew
EvMossan 409dcb4
CI: restrict publish job to upstream repo and add skip-existing
EvMossan 50afff6
DOC: move Trusted-Publishing note to 'Other enhancements'
EvMossan b94eb08
workflow: enable Test PyPI publish job
EvMossan 58cb179
CI: fix indentation in wheels.yml (publish job)
EvMossan 7359e1b
CI: trigger wheels workflow on GitHub release (add release:published)
EvMossan f482759
Update .github/workflows/wheels.yml
EvMossan 0aa892f
Update doc/source/development/maintaining.rst
EvMossan da3c281
Update doc/source/development/maintaining.rst
EvMossan ba4c3bd
Update doc/source/development/maintaining.rst
EvMossan 7d4a777
Merge remote-tracking branch 'upstream/main' into trusted-publish-pypi
jorisvandenbossche e4d67bc
fix rst syntax
jorisvandenbossche 9c1a0b7
temp test download step
jorisvandenbossche 4e20362
Revert "temp test download step"
jorisvandenbossche bb83797
remove unnecessary repository-url
jorisvandenbossche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EpicWink you suggested to add this, but I am wondering if that is needed? As I understand, this wheels.yml workflow will run on the commit pushed to main with a tag, and so that way it will already run for a release? And we can then upload the wheels from that run?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A GitHub release publish happens after a push, allowing you to review the CI, and write release notes in the GitHub release, before triggering the publish to PyPI. Up to you how you want the release workflow to be, if you want to publish unconditionally.
An alternative is to split the workflow into two files (and therefore two workflows), where the publish job downloads the artefacts from the build job of the other workflow, and the publish workflow is triggered from the build workflow's completion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EpicWink thanks for the explanation, got it! Since we still manually create the github release (not automated from CI when alls builds passed), it indeed seems fine to only run the PyPI publish step afterwards.