Commit 73d2df48 authored by Martin Bauer's avatar Martin Bauer
Browse files

Bugfix - when determining version

parent c15c61f3
Pipeline #21582 failed with stage
in 41 seconds
include RELEASE-VERSION
\ No newline at end of file
import os
import sys
from setuptools import setup, find_packages
import subprocess
......@@ -32,9 +34,25 @@ def version_number_from_git(tag_prefix='release/', sha_length=10, version_format
return version_string
def readme():
with open('README.md') as f:
return f.read()
try:
sys.path.insert(0, os.path.abspath('doc'))
from version_from_git import version_number_from_git
version = version_number_from_git()
with open("RELEASE-VERSION", "w") as f:
f.write(version)
except ImportError:
version = open('RELEASE-VERSION', 'r').read()
setup(name='lbmpy_walberla',
version=version_number_from_git(),
version=version,
description='Code Generation for Lattice Boltzmann Methods in the walberla framework',
long_description=readme(),
author='Martin Bauer',
license='AGPLv3',
author_email='martin.bauer@fau.de',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment