diff --git a/pyproject.toml b/pyproject.toml index 254c70b0..51b6a80b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -154,7 +154,7 @@ optional-dependencies.test = {file = [".config/requirements-test.in"]} [tool.setuptools_scm] local_scheme = "no-local-version" -tag_regex = "^(?Pv)?(?P[0-9.]+)(?P.*)?$" +tag_regex = "^(?Pv)?(?P\\d+[^\\+]*)(?P.*)?$" write_to = "src/ansible_compat/_version.py" # To prevent accidental pick of mobile version tags such 'v6' git_describe_command = [