move VERSION into a .py file that gets directly parsed by setup.py

avoids possible issues with pyinstaller
This commit is contained in:
Jan Petykiewicz 2020-11-01 19:45:31 -08:00
commit b9322be77f
4 changed files with 9 additions and 10 deletions

View file

@ -17,8 +17,6 @@
otherwise noted, assume that arguments are stored by-reference.
"""
import pathlib
from .error import PatternError, PatternLockedError
from .shapes import Shape
from .label import Label
@ -30,6 +28,5 @@ from .library import Library
__author__ = 'Jan Petykiewicz'
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
__version__ = f.read().strip()
version = __version__
from .VERSION import __version__
version = __version__ # legacy