From cf1c96bd591103deb7dc833b9c6f604db2c9fa59 Mon Sep 17 00:00:00 2001 From: Philipp Kraft Date: Fri, 19 Jan 2024 17:18:58 +0100 Subject: [PATCH] bumped version to 2.0.0 --- setup.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/setup.py b/setup.py index 3f93d7a5..f418f61a 100755 --- a/setup.py +++ b/setup.py @@ -31,20 +31,7 @@ from distutils.sysconfig import customize_compiler from distutils.command.build_py import build_py -version = '2.0.0b10' - -branchversion = version -try: - from pygit2 import Repository - head = Repository('.').head.shorthand - if head != 'master': - branchversion = version + '.' + head -except: - Repository = None - -print('cmf', branchversion) - - +version = '2.0.0' swig = False openmp = False @@ -259,7 +246,7 @@ def updateversion(): fout = open('cmf/__init__.py', 'w') for line in module_code: if line.startswith('__version__'): - fout.write("__version__ = '{}'\n".format(branchversion)) + fout.write("__version__ = '{}'\n".format(version)) elif line.startswith('__compiletime__'): fout.write("__compiletime__ = '{}'\n".format(time.ctime())) else: