Move version number into VERSION file

to avoid importing mem_edit in setup.py
This commit is contained in:
Jan Petykiewicz 2019-09-30 23:59:20 -07:00
commit 49a7c21ed2
4 changed files with 13 additions and 4 deletions

1
mem_edit/VERSION Normal file
View file

@ -0,0 +1 @@
0.2

View file

@ -12,12 +12,16 @@ To get started, try:
"""
import platform
import pathlib
from .utils import MemEditError
__author__ = 'Jan Petykiewicz'
version = '0.2'
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
__version__ = f.read().strip()
version = __version__
system = platform.system()