BOUT-dev icon indicating copy to clipboard operation
BOUT-dev copied to clipboard

Use `setuptools_scm` to set version

Open ZedThree opened this issue 1 year ago • 1 comments

I'd really really like to completely remove all the hardcoded version numbers throughout the project. I discovered recently that you can run setuptools_scm from the command line, so we could run that in CMake (and chop of the bits CMake doesn't like).

We'd want a fallback if setuptools_scm isn't present, but that could be from a file that setuptools_scm generates -- we could do that in CI.

ZedThree avatar Nov 17 '23 17:11 ZedThree

The issue with setuptools_scm is, it does not work on the master branch. It always bumps the patch level, and there is now way around that. That is the reason we did not adopt it so far.

While we are at it, it would be nice to print the full version when running BOUT++.

dschwoerer avatar Nov 20 '23 09:11 dschwoerer