From d13f9e93e253573b01ffbb28cfd1e2dd26ff9002 Mon Sep 17 00:00:00 2001 From: atillack Date: Tue, 12 Sep 2023 12:50:00 -0400 Subject: [PATCH] Fixed Python interface versioning to be compliant with PEP 440. --- build/python/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/python/setup.py b/build/python/setup.py index 92976cf..6d1c6a7 100644 --- a/build/python/setup.py +++ b/build/python/setup.py @@ -62,12 +62,12 @@ def find_version(): return version try: - git_output = subprocess.check_output(['git', 'describe', '--abbrev=7', '--dirty', '--always', '--tags']) + git_output = subprocess.check_output(['git', 'describe', '--abbrev=7', '--dirty=@mod', '--always', '--tags']) git_output = git_output.strip().decode() if git_output.startswith('v'): git_output = git_output[1:] - version = git_output.replace('dirty', 'mod').replace('-', '+', 1).replace('-', '.') + version = git_output.replace('-', '.dev', 1).replace('@', '-', 1).replace('-', '+', 1).replace('-','') print('Version found %s (from git describe)' % version) return version