computational-cell-analytics / micro-sam

Segment Anything for Microscopy
https://computational-cell-analytics.github.io/micro-sam/
MIT License
311 stars 35 forks source link

Switch to PyPI Trusted Publishing, remove twine #614

Open GenevieveBuckley opened 1 month ago

GenevieveBuckley commented 1 month ago

Closes https://github.com/computational-cell-analytics/micro-sam/issues/613

This PR switches to PyPI deployment with Trusted Publishing (see the announcement and how trusted publishing works). It removes twine, and also removes the need for PyPI API tokens being used as github secrets.

This PR is not sufficient on its own, we (well, probably Constantin) also need to:

GenevieveBuckley commented 1 month ago

I'm marking this PR as a draft, until:

  1. The url on line 70 of release_drafter.yml is fixed (see this comment), and...
  2. PyPI Trusted Publishing has been enabled (see https://docs.pypi.org/trusted-publishers/adding-a-publisher/). I don't have access to do this.