setuptools_scm
setuptools_scm copied to clipboard
what are the available version_scheme
The section Configuration in the doc is unclear:
version_scheme : str | Callable[[ScmVersion], str]Configures how the local version number is constructed; either an entrypoint name or a callable.
Can the doc describe the ready-to-use schemes? I think these are described in https://setuptools-scm.readthedocs.io/en/latest/extending/ at Version number construction. I think it would be clearer if the Configuration section of the doc would point to these.
The linked page seems to be missing any mention of "calver-by-date".
I reached this page while digging about how to force setuptools-scm to avoid adding the devXX suffix when building locally as I have some output example inside my docs and I do not want to show versions with dev there when building from main, even if they are correct. I would rather prefer to make it use the last tag from git instead for this particular case.
Seems like you just need to tweak the local_scheme in pyproject.toml or setup.py.
Honestly, though, I've switched to setuptools-git-versioning and it's been rock solid for my simple use case.
The scheme that Drops the dev number always isn't released yet