diff --git a/pyproject.toml b/pyproject.toml index 72dde48..5cd8d54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,8 +19,14 @@ yoshi-seals = "^2.1" [tool.poetry-dynamic-versioning] enable = true vcs = "git" -bump = "auto" -format = "v{base}" +format-jinja = """ + {% if distance == 0 %} + {{ base }} + {% else %} + {{ base }}+{{ distance }}.{{ commit }} + {% endif %} +""" + [build-system]