move version info into VERSION.py

This avoid needing custom spec files for pyinstaller, which doesn't
handle package_data by default
This commit is contained in:
Jan Petykiewicz 2020-11-01 20:16:06 -08:00
commit 9759645f92

View file

@ -12,16 +12,14 @@ To get started, try:
"""
import platform
import pathlib
from .utils import MemEditError
__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 compatibility
system = platform.system()