Closed GenevieveBuckley closed 1 month ago
I have added secrets for PYPI_USERNAME and PYPI_PASSWORD now. Can we test if it works in the PR or should I go ahead and merge it?
It might be simplest to merge it, and then try a v1.0.2rc1
release. I think we should try that first.
More options: If that doesn't work as expected and we need more involved debugging, then we could do that using the Test PyPI server. Test PyPI is totally separate from the real PyPI, so you need to make a separate account and make separate API tokens for it.
I made this test workflow. Essentially it's a copy of the new part of this PR, aimed at Test PyPI using TEST_PYPI_USERNAME
/TEST_PYPI_PASSWORD
and twine upload --repository testpypi dist/*
But I found out you can only manually trigger github actions with workflow_dispatch
after it is merged into the main branch. It's also being skipped when I add "on push" or "on pull_request" triggers, but maybe that's because I am trying to run it from my own fork.
Thanks for the feedback! I will go ahead and merge this later, then create a new post release to check if it works.
Closes https://github.com/computational-cell-analytics/micro-sam/issues/530
The napari-hub discovers napari plugins by scraping PyPI, looking for the napari framework classifier. When it finds a package with the napari classifier, it will automatically populate a page on the napari-hub for that plugin.
This PR:
deploy
job to therelease_drafter.yml
github workflow. This job runs every time the release drafter workflow runs and theupdate_release_draft
job finishes.requirements-dev.txt
to includebuild
andtwine
dependencies (this is not required for therelease_drafter.yml
action to work, but they are nice to have if you are testing the build locally)micro-sam
with pip. As previously discussed here and here, if userspip install micro-sam
then not all of the dependencies will be correctly installed. Some of our dependencies, like affogato are only available from conda-forge. However, we think the benefit of being searchable on napari-hub outweighs this downside.Still to do: @constantinpape will need to
PYPI_USERNAME
andPYPI_PASSWORD
in the settings of this repository, see https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository