computational-cell-analytics / micro-sam

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

Put on napari hub #530

Open constantinpape opened 6 months ago

constantinpape commented 6 months ago

https://www.napari-hub.org/

GenevieveBuckley commented 6 months ago

Discussed previously here: https://forum.image.sc/t/publish-napari-plugin-with-conda-dependencies/65653

Summarizing:

constantinpape commented 6 months ago

Thanks for looking into this @GenevieveBuckley. Let's go ahead and put a "dummy" micro_sam package on pip then so that it can be installed via napari.

Would you have time to look into this? (There's no hurry!)

GenevieveBuckley commented 5 months ago

Thanks for looking into this @GenevieveBuckley. Let's go ahead and put a "dummy" micro_sam package on pip then so that it can be installed via napari.

Would you have time to look into this? (There's no hurry!)

I've made a PR here: https://github.com/computational-cell-analytics/micro-sam/pull/606

constantinpape commented 5 months ago

I have made a new release now, but the deploy part of the action that would push the package to PyPI was skipped, see https://github.com/computational-cell-analytics/micro-sam/actions/runs/9222705341.

I can't see why in the log; any idea why this may happen @GenevieveBuckley?

GenevieveBuckley commented 5 months ago

I have made a new release now, but the deploy part of the action that would push the package to PyPI was skipped, see https://github.com/computational-cell-analytics/micro-sam/actions/runs/9222705341.

I can't see why in the log; any idea why this may happen @GenevieveBuckley?

There are two conditions for the deploy job:

  1. The previous update_release_draft job in the release_drafter workflow completed successfully, and
  2. If there is a tag if: contains(github.ref, 'tags')

I was assuming that the deploy job would see that the first job created a new tag, but perhaps this is not how things work. Maybe because that tag is being created from inside the update_release_draft job?

GenevieveBuckley commented 5 months ago

I guess the main question is: how does the current release drafter work? Should the deploy job be turned into a step that runs after the others (possibly conditional on the results from a previous step?) Is there ever a case where a release could be drafted, but we don't want anything uploaded to pypi?