setuptools_scm
setuptools_scm copied to clipboard
FR: easier way to consider only specific tags
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
I would proposed a new option for that
tag.prefix = "something" should imply changes to the default regex and describe commands