From d1af4b031acce9e1165666fb501f4703b2a08973 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Tue, 30 Mar 2021 17:02:57 +0200 Subject: [PATCH] source for python-compatible versioning --- python/setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/setup.py b/python/setup.py index 0642c0b7d..f6ba83b7b 100644 --- a/python/setup.py +++ b/python/setup.py @@ -2,6 +2,7 @@ import setuptools from pathlib import Path import re +# https://www.python.org/dev/peps/pep-0440 with open(Path(__file__).parent/'damask/VERSION') as f: version = re.sub(r'(-([^-]*)).*$',r'.\2',re.sub(r'^v(\d+\.\d+(\.\d+)?)',r'\1',f.readline().strip()))