From 6abd3935d07092516a956b2dc7eeabe3907e5e4b Mon Sep 17 00:00:00 2001 From: Markus Petke Date: Mon, 26 Feb 2024 11:18:10 +0100 Subject: [PATCH] fix version again --- conanfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conanfile.py b/conanfile.py index 3bdb27f..64c01c0 100644 --- a/conanfile.py +++ b/conanfile.py @@ -69,8 +69,9 @@ def set_version(self): if not version: version = subprocess.run(["git", "symbolic-ref", "-q", "--short", "HEAD"],capture_output=True).stdout.strip().decode("utf-8") if not version: - subprocess.run(["git", "rev-parse", "--short", "HEAD"],capture_output=True).stdout.strip().decode("utf-8") + version = subprocess.run(["git", "rev-parse", "--short", "HEAD"],capture_output=True).stdout.strip().decode("utf-8") + # / is not allowed in conan version version = version.replace("/", ".") open("./version.txt", mode="w", encoding="utf-8").write(version) self.version = version