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

Update PyPI Integration #71

Closed
rajadain opened this issue Apr 11, 2024 · 1 comment · Fixed by #72
Closed

Update PyPI Integration #71

rajadain opened this issue Apr 11, 2024 · 1 comment · Fixed by #72
Assignees

Comments

@rajadain
Copy link
Collaborator

With recent changes to PyPI trusted publishers, we need to update the CI to use that instead of the old non-functional username / password setup.

Update the integration so that releases may publish to PyPI again.

@JN-Hernandez
Copy link
Contributor

WorkPlan

Summary

The python-omgeo Python packages is published via the Azavea PyPI account, however recent builds of these projects are failing because PyPI has changed from username/password authentication to token based and trusted-publisher based authentication. This workplan is to document updating this integration.

Steps

  • 1. Log in to TestPyPi using the TestPyPi Python Package Index credentials within 1Password
  • 2. Click the azavea user in the top-right hand corner, then select Your Projects from the dropdown menu
  • 3. Traverse to Publishing, then scroll down to Add a new publisher
  • 4. Fill in the Owner, Repository name, and Workflow name, then click Next

Note

Only use the actual repository name, not full GitHub URL nor the azavea/ prefix.

  • 5. Log in to PyPI using the Python Package Index (PyPi) credentials within 1Password
  • 6. Repeat steps 2-4 of this workplan to add a new publisher
  • 7. Update the release.yml GitHub Workflow to upload the release to TestPyPI

Tip

Review PR #72 to see what changes in the file were made/needed.

  • 8. Update the CHANGES.txt file to document the update
  • 9. Move through the PR process and confirm upload works for TestPyPI
  • 8. Once approved, update the release.yml file to instead upload the release to PyPI
  • 9. Move through the Git Flow process to update the release

Criteria for Success

  • 1. Upload of the release to TestPyPI works as expected
  • 2. Upload of the release to PyPI works as expected

Risk

Low Risk

  1. Failure to implement this change will result in the release upload to PyPI not working

Rollback

  1. n/a - failure to implement this change will result in the release upload to PyPI not working

Additional Details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants