idaholab / MontePy

MontePy is the most user friendly Python library (API) to read, edit, and write MCNP input files.
https://www.montepy.org/
MIT License
32 stars 7 forks source link

Include the latest MontePy release on montepy.org #545

Closed tjlaboss closed 2 months ago

tjlaboss commented 2 months ago

Description

Fixes #544

Checklist

Discussion

As of 08ded2fcf4ec77bcb3c3d06bea7c40e1596b0995, this displays the latest build. Is that better / more correct?

If not: how should we make it display the most recent release?

MicahGale commented 2 months ago

You need to make sure that setuptools_scm gets properly triggered before building which I think is already done in the build process.

tjlaboss commented 2 months ago

setuptools_scm gets the maj.min.patch.dev+commit number. Right now, it's 0.4.1.dev119+g494ef24f.

So basically I'm wondering:

MicahGale commented 2 months ago

Versioning is based on tags. Try locally doing something like git tag v0.4.2 delete any local montepy/_version.py and rebuild. It should look good at that point I think.

MicahGale commented 2 months ago

Also as part of the release process there's a check for a full release version. a .dev version will cause pipeline failure, and so the website should never deploy with a dev version.

tjlaboss commented 2 months ago

I see: the website shall only deploy at release time.

MicahGale commented 2 months ago

I see what release is doing: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-release