From b4a3ed834e2e40f0d4fbcdcbfa686f7c3c69bc62 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Nakazone Batista Date: Tue, 23 Jul 2024 19:59:27 -0300 Subject: [PATCH] Updates Versioning Schema --- pyproject.toml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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]