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

Publish to PyPI using https://docs.pypi.org/trusted-publishers/ #1591

Conversation

JeanChristopheMorinPerso
Copy link
Member

@JeanChristopheMorinPerso JeanChristopheMorinPerso commented Nov 18, 2023

Publish to PyPI using https://docs.pypi.org/trusted-publishers/. This will allow us to remove the PyPI token from GH Actions secrets.

Tested on my fork: https://github.com/JeanChristopheMorinPerso/rez/actions/runs/6916563285/job/18816799702

@JeanChristopheMorinPerso JeanChristopheMorinPerso requested a review from a team as a code owner November 18, 2023 21:47
@JeanChristopheMorinPerso JeanChristopheMorinPerso force-pushed the use_pypi_trusted_publisher branch 2 times, most recently from 064b209 to a026d0a Compare November 18, 2023 22:16
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3
python-version: 3.11
Copy link
Member Author

Choose a reason for hiding this comment

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

Good thing I tested on my fork, cause 3 was picking up 3.12 and rez isn't compatible with 3.12, which resulted in an error (since rez is imported from setup.py).

@JeanChristopheMorinPerso JeanChristopheMorinPerso merged commit e9adf0c into AcademySoftwareFoundation:main Nov 18, 2023
3 checks passed
@JeanChristopheMorinPerso JeanChristopheMorinPerso deleted the use_pypi_trusted_publisher branch November 18, 2023 22:22
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.

1 participant