Skip to content

Commit b4911e5

Browse files
committed
Use base version 0.0.0 when distance is 0
1 parent ab67aa9 commit b4911e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ disallow_untyped_decorators = false
5353

5454
[tool.poetry-dynamic-versioning]
5555
enable = true
56-
format-jinja = "{{base}}{% if major == 0 and minor == 0 and patch == 0 %}.post{{ timestamp }}{% endif %}"
56+
format-jinja = "{{distance}}{{base}}{% if major == 0 and minor == 0 and patch == 0 and distance > 0 %}.post{{ timestamp }}{% endif %}"

0 commit comments

Comments
 (0)