setuptools_scm icon indicating copy to clipboard operation
setuptools_scm copied to clipboard

what are the available version_scheme

Open JackCaster opened this issue 1 year ago • 4 comments
trafficstars

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.

JackCaster avatar Jan 16 '24 14:01 JackCaster

The linked page seems to be missing any mention of "calver-by-date".

warpedgeoid avatar Jan 23 '24 22:01 warpedgeoid

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.

ssbarnea avatar Jan 29 '24 11:01 ssbarnea

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.

warpedgeoid avatar Jan 29 '24 14:01 warpedgeoid

The scheme that Drops the dev number always isn't released yet

RonnyPfannschmidt avatar Jan 29 '24 17:01 RonnyPfannschmidt