make python package independent from rest of DAMASK

https://packaging.python.org/guides/single-sourcing-package-version/
This commit is contained in:
Martin Diehl 2019-04-25 20:02:48 +02:00
parent eab2ce3761
commit 009a47ad72
2 changed files with 3 additions and 2 deletions

1
python/damask/VERSION Symbolic link
View File

@ -0,0 +1 @@
../../VERSION

View File

@ -3,8 +3,8 @@
"""Main aggregator""" """Main aggregator"""
import os import os
with open(os.path.join(os.path.dirname(__file__),'../../VERSION')) as f: with open(os.path.join(os.path.dirname(__file__),'VERSION')) as f:
version = f.readline()[:-1] version = f.readline()[1:-1]
name = 'damask' name = 'damask'