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

fix: fix (or attempt to fix) the pypi publication process #241

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

joanise
Copy link
Member

@joanise joanise commented Sep 13, 2024

Nothing works today. 🙁
Can't publish studio.
Finding last minutes bugs in studio-web.
Bleh.

Here, I'm guessing the way we published to pypi is no longer supported. See #240.

This code is mimicked from g2p, but not tested. Please review carefully.

Before this can work, we'll need to add the PYPI_API_TOKEN to this repo's secrets, and we can probably remove the obsolete PyPI username and password secrets since they don't work anymore anyway.

Copy link

Review changes with SemanticDiff.

Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.21%. Comparing base (c4328db) to head (56b5e1d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #241   +/-   ##
=======================================
  Coverage   87.21%   87.21%           
=======================================
  Files          21       21           
  Lines        1783     1783           
  Branches      323      323           
=======================================
  Hits         1555     1555           
  Misses        189      189           
  Partials       39       39           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
Copy link
Member Author

Choose a reason for hiding this comment

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

Based on https://docs.pypi.org/trusted-publishers/ I bet we can (and should) remove this password field.

Copy link
Member Author

Choose a reason for hiding this comment

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

But it works like this in g2p, so I'll leave it this way for now.

password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true

deploy-docs:
Copy link
Member Author

Choose a reason for hiding this comment

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

follows what we do in g2p

@joanise joanise merged commit 56b5e1d into main Sep 17, 2024
6 checks passed
@joanise joanise deleted the dev.ej/fix-pypi-publish branch September 17, 2024 21:25
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