pangeo-data / climpred

:earth_americas: Verification of weather and climate forecasts :earth_africa:
https://climpred.readthedocs.io
MIT License
231 stars 48 forks source link

New release of Climpred ? #839

Closed Zeitsperre closed 11 months ago

Zeitsperre commented 11 months ago

I'm excited to see how much more stable the latest main branch of climpred is in my downstream projects. Are we ready to put out a new release?

aaronspring commented 11 months ago

All ready from my point of view

Zeitsperre commented 11 months ago

Awesome! I don't have the privileges to make releases on GitHub, but if that's extended to me, I can take over.

If we want, I could even adapt a workflow from another project to make semi-automatic deployments to PyPI/TestPyPI. I'll open a PR for that!

aaronspring commented 11 months ago

There is even a GHA workflow for this but I doubt it actually works

aaronspring commented 11 months ago

Maintainer rights given

Zeitsperre commented 11 months ago

There is even a GHA workflow for this but I doubt it actually works

I see it. Yeah, I've recently been adopting Trusted Publishing so that we don't need to supply usernames and passwords. Much better for collaborative projects.

Zeitsperre commented 11 months ago

@aaronspring I'm nearly done my update. It's just missing one final step:

Would you be able to add the following configurations to the repo?

For both:

This will give us a few security checks before anything is sent out to TestPyPI and PyPI. You'll be free to remove the PYPI_USERNAME and PYPI_PASSWORD secrets afterwards.

aaronspring commented 11 months ago

Both envs added. Thanks for leading this

Zeitsperre commented 11 months ago

Ah, two final things:

  1. For Trusted Publishing, you need to configure the Climpred PyPI with the following:

    • Your Account → climpred → "Publishing" → Below "Add a new publisher":
    • Owner: "pangeo-data"
    • Repository name: "climpred"
    • Workflow name: "publish-production-pypi.yml"
    • Environment name: "production"
  2. I've made an account for climpred on TestPyPI (https://test.pypi.org/project/climpred/). If you make an account there, I'll pass maintainer status onto you.

That should be the end of the configurations required!

aaronspring commented 11 months ago
  1. done
  2. no need