From 56f7d59ee4b095bd7461ae9d9757e59adb3b39ea Mon Sep 17 00:00:00 2001 From: lumbric Date: Fri, 12 Apr 2024 15:40:16 +0200 Subject: [PATCH] Change version string Git describe already adds a "g", no need to add also "git". --- syfop/version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syfop/version.py b/syfop/version.py index 8d47c46..95e7a6a 100644 --- a/syfop/version.py +++ b/syfop/version.py @@ -8,9 +8,9 @@ def get_version(): version = git_tag.lstrip("v") # convert string from git-describe to a valid PEP440 version string - # v0.1.0-4-gc5f364c --> syfop-0.1.0.dev4+gitgc5f364c + # v0.1.0-4-gc5f364c --> syfop-0.1.0.dev4+gc5f364c # see: https://stackoverflow.com/a/35522080/859591 - version = version.replace("-", ".dev", 1).replace("-", "+git", 1) + version = version.replace("-", ".dev", 1).replace("-", "+", 1) return version