standard behavior

most modules have an __version__ attribute
This commit is contained in:
Martin Diehl 2020-07-15 20:57:56 +02:00
parent 6259984e93
commit 333e840b09
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import re as _re
name = 'damask'
with open(_Path(__file__).parent/_Path('VERSION')) as _f:
version = _re.sub(r'^v','',_f.readline().strip())
__version__ = version
# make classes directly accessible as damask.Class
from ._environment import Environment as _ # noqa