From 4e6316b567080cffc7aa2332902357688a7583f1 Mon Sep 17 00:00:00 2001 From: Sylvain Tricot Date: Fri, 15 Nov 2019 15:27:33 +0100 Subject: [PATCH] test pre-commit hook --- CI/update_version.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CI/update_version.py b/CI/update_version.py index 7f11a61..bf63681 100644 --- a/CI/update_version.py +++ b/CI/update_version.py @@ -5,7 +5,7 @@ import subprocess from distutils.version import LooseVersion def get_version(): - p = subprocess.run(['git describe'], shell=True, stdout=subprocess.PIPE) + p = subprocess.run(["git describe|sed 's/-/.post/'|cut -d'-' -f1"], shell=True, stdout=subprocess.PIPE) output = p.stdout.decode('utf-8') return output @@ -64,3 +64,5 @@ def ask_new_version(current_version): set_version(new_version) ask_new_version(get_version()) + +#print(get_version())