Skip to content

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

evgmosme
Copy link

Summary

This PR enables Trusted Publishing (OIDC) uploads to PyPI when a release tag is pushed.

What’s changed

  • .github/workflows/wheels.yml

    • adds a new publish job that
      1. downloads all wheel / sdist artifacts from upstream jobs;
      2. excludes Pyodide wheels (*pyodide*.whl);
      3. runs pypa/gh-action-pypi-publish@v1 in the pypi environment.
  • doc/source/whatsnew/v3.0.0.rst

    • adds a single Build / CI line announcing the switch to Trusted Publishing

No other files or CI matrix settings were changed.

@evgmosme evgmosme requested a review from mroeschke as a code owner June 27, 2025 08:03
@evgmosme
Copy link
Author

evgmosme commented Jun 27, 2025

CI failed in the docstring-validation step with

AttributeError: 'getset_descriptor' object has no attribute '__module__'. Did you mean: '__reduce__'?

This occurs before my code runs, so it isn’t caused by the changes in this PR.
It looks related to the latest numpydoc release.
I’ll re-run CI once the upstream fix lands.

@evgmosme evgmosme closed this Jun 28, 2025
@evgmosme evgmosme reopened this Jun 28, 2025
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.

ENH: Switch to trusted publishing for package upload to PyPI in CI
2 participants