From 267261691238f6126c5f810bc258c9c7d051e573 Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Mon, 13 May 2024 11:15:23 +0000 Subject: [PATCH] readded jijnja again --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 59689a6..7de3bd8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,13 @@ enable = true vcs = "git" strict = true format-jinja = """ - TEST_{{- branch -}}_TEST + {%- if distance == 0 -%} + {{ serialize_pep440(base, stage, revision) }} + {%- elif revision is not none -%} + {{ serialize_pep440(base, stage, revision + 1, dev=distance, metadata=[commit]) }} + {%- else -%} + {{ serialize_pep440(bump_version(base), stage, revision, dev=distance, metadata=[commit]) }} + {%- endif -%} """ [tool.poetry.group.docs.dependencies]