Skip to content
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

Add trusted publishing section to the user guide #1800

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

Phil-V
Copy link
Contributor

@Phil-V Phil-V commented Oct 9, 2023

Hi and thank you for maturin, it's great!

I couldn't figure out how to use the workflow provided by generate-ci with PyPI's trusted publishing, but found the solution in issue #1575 (comment). Here's a PR to add a short section about it to the distribution page in the user guide. Feedback is welcome.

PS: I've also toyed with making trusted publishing the default, but I don't know if this is desirable as some users will have different registries than PyPI. If you prefer, I can make a different PR with those changes after doing some further testing.

@netlify
Copy link

netlify bot commented Oct 9, 2023

Deploy Preview for maturin-guide ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit f26c9d2
🔍 Latest deploy log https://app.netlify.com/sites/maturin-guide/deploys/652407c41ad79b0008b84318
😎 Deploy Preview https://deploy-preview-1800--maturin-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@messense messense left a comment

Choose a reason for hiding this comment

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

Thanks!

Personally I don't think we should make trusted publishing the default because it requires much more efforts to set up. However we could add an option like --trusted-publisher to the generate-ci command for users to opt-in to trusted publishing, pull requests are welcome!

@messense messense merged commit 6cad535 into PyO3:main Oct 9, 2023
6 checks passed
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Nov 7, 2023
https://build.opensuse.org/request/show/1123696
by user mia + anag+factory
- Update to 1.3.1
  * Use external uniffi-bindgen if no root package is configured
    gh#PyO3/maturin#1797
  * Add trusted publishing section to the user guide
    gh#PyO3/maturin#1800
  * Fix wheel filename for GraalPy
    gh#PyO3/maturin#1802
  * Pytest skeleton in mixed template
    gh#PyO3/maturin#1807
  * Keep trailing newlines from templates
    gh#PyO3/maturin#1808
  * Bump rustix from 0.37.23 to 0.37.25
    gh#PyO3/maturin#1809
  * Auto detect Python 3.13
    gh#PyO3/maturin#1810
  * Fix missing workspace.members in sdist
    gh#PyO3/maturin#1811
  * Don't set MACOSX_DEPLOYMENT_TARGET for editable builds
    gh#PyO3/maturin#1815
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