Use VERSION.py instead of plain VERSION

reduce dependence on package_data
This commit is contained in:
Jan Petykiewicz 2020-11-03 01:35:38 -08:00
commit 4e0a5ede21
4 changed files with 8 additions and 9 deletions

View file

@ -1 +0,0 @@
0.4

4
gridlock/VERSION.py Normal file
View file

@ -0,0 +1,4 @@
""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """
__version__ = '''
0.4
'''

View file

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