Skip to content

Configure trusted publishing to PyPI - #91

Merged
weiji14 merged 4 commits into
mainfrom
trusted-publishing
Nov 18, 2026
Merged

weiji14 merged 4 commits into
mainfrom
trusted-publishing

Conversation

@weiji14

@weiji14 weiji14 commented May 23, 2026 •

Copy link
Copy Markdown
Member

Secure publishing of sdist and wheel to PyPI.

TODO:

References:

Closes #87

@weiji14 weiji14 self-assigned this May 23, 2026
@weiji14

weiji14 commented May 23, 2026

Copy link
Copy Markdown
Member Author

Will need a maintainer listed on https://pypi.org/project/cupy-xarray/ to configure trusted publishing before this PR can go ahead 🙂

@ncclementi

Copy link
Copy Markdown

@jacobtomlinson or @jakirkham would you mind helping @weiji14 here?

@weiji14 weiji14 added this to the 0.2.0 milestone May 26, 2026
@weiji14

weiji14 commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

Or maybe @andersy005 can help configure this at https://pypi.org/manage/project/cupy-xarray/settings/publishing/?

@jacobtomlinson

Copy link
Copy Markdown
Collaborator

I missed this the first time around. I've added trusted publishing now.

@weiji14

weiji14 commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

Thanks Jacob! I've removed the PYPI_TOKEN also from the repo secrets, hopefully you've also revoked the token from PyPI as a precaution.

CI is currently failing with "The job was not started because your account is locked due to a billing issue." 😅 See xarray-contrib/xarray-contrib#22. I'll restart the job and merge once that is resolved.

@weiji14

weiji14 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member Author

Oh, and while we're on the topic of PyPI publishing, I just stumbled on xarray-contrib/xarray-contrib#15 and realized that the xarray-contrib PyPI org is already included as an owner for https://pypi.org/project/cupy-xarray/.

image

Not sure when or who added this, but this will help with the bus factor :D

@keewis

keewis commented Nov 18, 2026

Copy link
Copy Markdown
Member

that was in January this year. When opening up the xarray-contrib to contribution requests we decided that every project in xarray-contrib should have a increased bus factor, and the org was one of the easier ways to achieve this.

CI has been resolved earlier today, you should be able to restart the release workflow now.

@weiji14

weiji14 commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

Nice, thanks everyone, I'll press the green button now 🚀

@weiji14
weiji14 merged commit 9e5abca into main Nov 18, 2026
5 of 6 checks passed
@weiji14
weiji14 deleted the trusted-publishing branch November 18, 2026 21:53
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.

Set up trusted publishing to PyPI

4 participants