From dea1919e5e0e15763e1060532f83522ce5272f76 Mon Sep 17 00:00:00 2001 From: Cristian C Lalescu <Cristian.Lalescu@ds.mpg.de> Date: Sat, 13 Feb 2016 12:41:07 +0100 Subject: [PATCH] use a normalized version string --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 077f84e0..fb36f5b6 100644 --- a/setup.py +++ b/setup.py @@ -81,7 +81,8 @@ else: if (('develop' in git_branch) or ('feature' in git_branch) or ('bugfix' in git_branch)): - VERSION = subprocess.check_output(['git', 'describe', '--tags']).strip().decode() + VERSION = subprocess.check_output( + ['git', 'describe', '--tags', '--dirty']).strip().decode().replace('-g', '+g').replace('-dirty', '.dirty').replace('-', '.post') else: VERSION = subprocess.check_output(['git', 'describe', '--tags']).strip().decode().split('-')[0] print('This is bfps version ' + VERSION) -- GitLab