-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Unable to handle tags with dashes in the name, tag_regex config not helping #825
Comments
tag regex shouldn't be needed inside of _parse_describe, i suspect a bug/regression please include the output with |
|
Thanks, it's clearly a oversight right from the start (i never anticipated tags with dashes) I have a basic idea for a bugfix |
@pelson based on
i recommend adding the |
Yes, this did it - thanks! Indeed, ensuring that the |
When using setuptools-scm with tags containing dashes, I'm unable to configure setuptools-scm to parse the version correctly. I have been able to configure the
git describe
phase, but the subsequent parsing of the tag does not appear to be using thetag_regex
specified.I tested against master at fb26133, and on many of the recent releases, and put together a build script which can create a simple case:
Note that if you remove the dashes from the tag, everything works as expected (even if you don't specify a tag_regex).
Traceback:
I dug a little, and can't see how the tag_regex is expected to work in
_git_parse_describe
, since the config isn't passed down from https://github.com/pypa/setuptools_scm/blob/fb261332d9b46aa5a258042d85baa5aa7b9f4fa2/src/setuptools_scm/git.py. Have I misunderstood the purpose oftag_regex
perhaps?The text was updated successfully, but these errors were encountered: