Commit d6bde7f7 authored by Michael Kuron's avatar Michael Kuron
Browse files

Merge branch 'Add_Version_String' into 'master'

Added version String to lbmpy

See merge request pycodegen/lbmpy!56
parents fd16f1f4 9653c0e3
......@@ -14,3 +14,4 @@ _local_tmp
def _get_release_file():
import os.path
file_path = os.path.abspath(os.path.dirname(__file__))
return os.path.join(file_path, '..', 'RELEASE-VERSION')
__version__ = open(_get_release_file(), 'r').read()
except IOError:
__version__ = 'development'
import pystencils as ps
from pathlib import Path
def test_version_string():
file_path = Path(__file__).parent
release_version = file_path.parent.absolute() / 'RELEASE-VERSION'
if release_version.exists ():
with open(release_version, "r") as f:
version =
assert ps.__version__ == version
assert ps.__version__ == "development"
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