mantle-convection-constrained / terratools

Tools to read, analyse and visualise models written by the TERRA mantle convection code
https://terratools.readthedocs.io/en/latest/
MIT License
7 stars 5 forks source link

Add package to PyPI #35

Closed anowacki closed 7 months ago

anowacki commented 2 years ago

We should upload our package to PyPI so it can be pip installed easily (including with Anaconda).

bobmyhill commented 2 years ago

This checklist should be completed for every release of terratools

[Edited by AN master -> main to avoid future confusion.]

anowacki commented 2 years ago

Wow, comprehensive! A lot of the effort seems to be Zenodo-related. Maybe we don't need to do the Zenodo stuff every time? Or can that be automated? What about patch releases?

Does ReadTheDocs have a generic 'latest' URL to use rather than needing to update each time?

bobmyhill commented 2 years ago

It still needs a few tweaks to make it appropriate for terratools. The whole procedure should take about 2 hours.

The zenodo stuff provides a unique DOI for each version. We don't need to do it, but once it's done once it doesn't take very long to update. I don't think zenodo provides an API to automate this, but I could be wrong.

Yes, readthedocs automatically updates the docs from main, and any other branches we choose. The additional work above makes sure that there are docs for each released version, because the development branch may have different tools from the pypi release.

andreww commented 1 year ago

Wait on next milestone

jamespanton93 commented 7 months ago

v1.0.0 is now on PyPi and we have a DOI through Zenodo: 10.5281/zenodo.10797185.

Thanks for the checklist Bob, I would have been very lost without it. I will close the issue but will certainly be referring back to this whenever we need to advance a version again.