Skip to content

Commit

Permalink
Fix packaging version to recognize pre-release versions (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored May 8, 2024
1 parent 2e52498 commit 77f4aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ optional-dependencies.test = {file = [".config/requirements-test.in"]}

[tool.setuptools_scm]
local_scheme = "no-local-version"
tag_regex = "^(?P<prefix>v)?(?P<version>[0-9.]+)(?P<suffix>.*)?$"
tag_regex = "^(?P<prefix>v)?(?P<version>\\d+[^\\+]*)(?P<suffix>.*)?$"
write_to = "src/ansible_compat/_version.py"
# To prevent accidental pick of mobile version tags such 'v6'
git_describe_command = [
Expand Down

0 comments on commit 77f4aa6

Please sign in to comment.