Skip to content

Comments

Use trusted publishing to simplify deployment#73

Merged
TimMonko merged 2 commits intonapari:mainfrom
TimMonko:trusted-pypi-publishing
Jul 5, 2025
Merged

Use trusted publishing to simplify deployment#73
TimMonko merged 2 commits intonapari:mainfrom
TimMonko:trusted-pypi-publishing

Conversation

@TimMonko
Copy link
Contributor

@TimMonko TimMonko commented Jul 5, 2025

References and relevant issues

One of the most difficult things for me when starting was adding an API key to publish to PyPI. Even today, it's one of the most tedious parts of publishing a package.

This PR instead uses the newer OIDC trusted publishing through PyPI which requires no API Key. Instead, you add a new pending publisher via your PyPI account. This is more secure and simpler than before!

I have tested this today with a new plugin to ensure it works correctly. :)

@TimMonko TimMonko requested review from DragaDoncila and willingc July 5, 2025 21:08
Copy link
Contributor

@willingc willingc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love, love, love this! We should be doing this across the board as it is much more secure. Bravo @TimMonko. 🚢

@willingc
Copy link
Contributor

willingc commented Jul 5, 2025

Leaving for you or Draga to merge based on your tutorial. Awesome!!!!

@TimMonko TimMonko merged commit 9fdd8fe into napari:main Jul 5, 2025
12 checks passed
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.

2 participants