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

@ -1 +0,0 @@
2.2

4
masque/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__ = '''
2.2
'''

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