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())