use VERSION.py instead of plain VERSION file

reduces reliance on package_data
This commit is contained in:
Jan Petykiewicz 2020-11-03 01:27:47 -08:00
commit b996f5f27e
4 changed files with 9 additions and 9 deletions

View file

@ -1 +0,0 @@
0.9

4
fatamorgana/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.9
'''

View file

@ -37,7 +37,5 @@ from .basic import (
__author__ = 'Jan Petykiewicz'
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
__version__ = f.read().strip()
from .VERSION import __version
version = __version__