use VERSION.py instead of plain VERSION file
reduces reliance on package_data
This commit is contained in:
parent
60f879a1ad
commit
b996f5f27e
4 changed files with 9 additions and 9 deletions
|
|
@ -1 +0,0 @@
|
|||
0.9
|
||||
4
fatamorgana/VERSION.py
Normal file
4
fatamorgana/VERSION.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """
|
||||
__version__ = '''
|
||||
0.9
|
||||
'''
|
||||
|
|
@ -37,7 +37,5 @@ from .basic import (
|
|||
|
||||
__author__ = 'Jan Petykiewicz'
|
||||
|
||||
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
|
||||
__version__ = f.read().strip()
|
||||
from .VERSION import __version
|
||||
version = __version__
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue