Use VERSION.py instead of plain VERSION

reduces reliance on package_data
This commit is contained in:
Jan Petykiewicz 2020-11-03 01:32:54 -08:00
commit 288952f961
4 changed files with 8 additions and 11 deletions

View file

@ -1 +0,0 @@
0.3

4
klamath/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.3
'''

View file

@ -27,16 +27,12 @@ The goal is to keep this library simple:
tools for working with hierarchical design data and supports multiple
file formats.
"""
import pathlib
from . import basic
from . import record
from . import records
from . import elements
from . import library
from .VERSION import __version__
__author__ = 'Jan Petykiewicz'
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
__version__ = f.read().strip()