Skip to content

Commit

Permalink
bumped version to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Kraft committed Jan 19, 2024
1 parent 6335dd9 commit cf1c96b
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit cf1c96b

Please sign in to comment.