diff --git a/maya/__init__.py b/maya/__init__.py index a8ce586..d162cc0 100644 --- a/maya/__init__.py +++ b/maya/__init__.py @@ -1 +1,2 @@ -from .core import * \ No newline at end of file +from .core import * +from .__version__ import __version__ diff --git a/maya/__version__.py b/maya/__version__.py new file mode 100644 index 0000000..73e3bb4 --- /dev/null +++ b/maya/__version__.py @@ -0,0 +1 @@ +__version__ = '0.3.2' diff --git a/setup.py b/setup.py index 690d083..7c891f1 100755 --- a/setup.py +++ b/setup.py @@ -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',