Skip to content

Commit ce7de49

Browse files
author
Clemens Vasters
committed
fix(python): use custom git_describe_command to match only v* tags
1 parent 3584a94 commit ce7de49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ exclude_lines = [
7979

8080
[tool.hatch.version]
8181
source = "vcs"
82-
raw-options = { root = ".." }
82+
83+
[tool.hatch.version.raw-options]
84+
root = ".."
85+
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v[0-9]*"]
8386

8487
[tool.hatch.build.hooks.vcs]
8588
version-file = "src/json_structure/_version.py"

0 commit comments

Comments
 (0)