Version File Add and setup.py exec read for version

Single place to change version and keep up to date at package level

Signed-off-by: Evan.Mattiza <emattiza@gmail.com>
This commit is contained in:
Evan.Mattiza
2017-05-28 16:49:00 -05:00
parent 6f1df92b8f
commit 66a016ea84
3 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -1 +1,2 @@
from .core import *
from .core import *
from .__version__ import __version__
+1
View File
@@ -0,0 +1 @@
__version__ = '0.3.2'
+6 -1
View File
@@ -37,9 +37,14 @@ packages = [
'maya',
]
# About dict to store version and package info
about = dict()
with open(os.path.join(here, 'maya', '__version__.py'), 'r', 'utf-8') as f:
exec(f.read(), about)
setup(
name='maya',
version='0.3.1',
version=about['__version__'],
description='Datetimes for Humans.',
long_description=long_description,
author='Kenneth Reitz',