use VERSION file to avoid importing gridlock before its installed

This commit is contained in:
Jan Petykiewicz 2019-09-30 23:40:23 -07:00
commit f62be35966
4 changed files with 14 additions and 3 deletions

1
gridlock/VERSION Normal file
View file

@ -0,0 +1 @@
0.3

View file

@ -16,10 +16,14 @@ Dependencies:
- skimage [Grid.visualize_isosurface()]
"""
import pathlib
from .error import GridError
from .direction import Direction
from .grid import Grid
__author__ = 'Jan Petykiewicz'
version = '0.3'
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
__version__ = f.read().strip()
version = __version__