mirror of
https://github.com/kennethreitz/maya.git
synced 2026-06-05 23:00:18 +00:00
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:
+2
-1
@@ -1 +1,2 @@
|
||||
from .core import *
|
||||
from .core import *
|
||||
from .__version__ import __version__
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
__version__ = '0.3.2'
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user