Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what are the available version_scheme #1001

Open
JackCaster opened this issue Jan 16, 2024 · 4 comments
Open

what are the available version_scheme #1001

JackCaster opened this issue Jan 16, 2024 · 4 comments

Comments

@JackCaster
Copy link

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.

@warpedgeoid
Copy link

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

@ssbarnea
Copy link

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.

@warpedgeoid
Copy link

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.

@RonnyPfannschmidt
Copy link
Contributor

RonnyPfannschmidt commented Jan 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants