From e43a64b99a295b051119bdd79f6e09f2645149d3 Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Fri, 4 Nov 2022 13:06:58 +0100
Subject: [PATCH] PIPELINE: modify setup.py for installation in the pipeline

---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index b9aad58c..11b734b6 100755
--- a/setup.py
+++ b/setup.py
@@ -99,7 +99,7 @@ def get_version_info():
         GIT_REVISION = git_version()
     elif os.path.exists('caosdb_pylib_commit'):
         with open('caosdb_pylib_commit', 'r') as f:
-            GIT_REVISION = f.read()
+            GIT_REVISION = f.read().strip()
     elif os.path.exists('src/caosdb/version.py'):
         # must be a source distribution, use existing version file
         try:
-- 
GitLab