Skip to content

Commit

Permalink
Fix setuptools-scm versioning (#3887)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Nov 20, 2023
1 parent 381b28d commit afe4ac1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ name: release
jobs:
# https://github.com/marketplace/actions/actions-tagger
actions-tagger:
needs: pypi # do not move the mobile tag until we publish
runs-on: windows-latest
permissions:
# Give the default GITHUB_TOKEN write permission.
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,15 @@ dependencies = { file = [".config/requirements.in"] }

[tool.setuptools_scm]
local_scheme = "no-local-version"
tag_regex = "^(?P<prefix>v)?(?P<version>[0-9.]+)(?P<suffix>.*)?$"
write_to = "src/ansiblelint/_version.py"
# To prevent accidental pick of mobile version tags such 'v6'
git_describe_command = [
"git",
"describe",
"--dirty",
"--tags",
"--long",
"--match",
"v*.*",
]

0 comments on commit afe4ac1

Please sign in to comment.