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

Configuration to exclude/rewrite tag names? #1072

Open
dbarnett opened this issue Sep 2, 2024 · 3 comments
Open

Configuration to exclude/rewrite tag names? #1072

dbarnett opened this issue Sep 2, 2024 · 3 comments

Comments

@dbarnett
Copy link

dbarnett commented Sep 2, 2024

It would be nice to be able to customize what tag names setuptools-scm considers as the version for a package, and to be able to rewrite the literal tag name to do things like strip a known prefix.

Motivation: I have a repo https://github.com/dbarnett/vim-plugin-metadata that contains both a core implementation rust package and a python interface. I've been tagging the core versions with vx.y.z and the python interface versions with py-vx.y.z, but I can't find any configuration options to hook up the python project to just the py-v* tags and ignore the others.

@RonnyPfannschmidt
Copy link
Contributor

Currently it's necessary to set a custom describe command to consider only prefixed tags

@dbarnett
Copy link
Author

dbarnett commented Sep 3, 2024

Ah ok, like

git_describe_command = ['git', 'describe', '--dirty', '--tags', '--long', '--match', SOME_PATTERN]

?

But then I guess it's hard-coded to only work on git repos, so it would still be important to get a generalized solution to that.

And for my particular case I guess I can't rely on setuptools-scm at all unless I migrate away from maturin: PyO3/maturin#1267.

@RonnyPfannschmidt
Copy link
Contributor

A more general tag prefix support is in the pipeline but still pre-planning

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

No branches or pull requests

2 participants