setuptools_scm icon indicating copy to clipboard operation
setuptools_scm copied to clipboard

FR: easier way to consider only specific tags

Open ofek opened this issue 2 years ago • 1 comments
trafficstars

it would be useful if there was an option to ignore tags that did not match the regex. I wanted to only consider tags that had a certain prefix and changing the pattern failed on tags that did not match which I did not expect so I ended up changing the describe command to match only on that prefix

the use case is for Hatch since the repo uses the tags hatch-vX.Y.Z and hatchling-vX.Y.Z

ofek avatar Jun 12 '23 15:06 ofek

I would proposed a new option for that

tag.prefix = "something" should imply changes to the default regex and describe commands

RonnyPfannschmidt avatar Jun 12 '23 16:06 RonnyPfannschmidt