From 48dfbeccb8a76f449d89c492b20dce428aea3070 Mon Sep 17 00:00:00 2001 From: Joshua Ryan Smith Date: Sun, 21 Sep 2014 12:07:13 -0400 Subject: [PATCH] Abstract value of version (DRY) Closes #11. --- doc/conf.py | 5 +++-- setup.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 3429acb..dd0b307 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -19,6 +19,7 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('..')) +import ibei # -- General configuration ------------------------------------------------ @@ -55,9 +56,9 @@ # built documents. # # The short X.Y version. -version = '0.0.2' +version = ibei.__version__ # The full version, including alpha/beta/rc tags. -release = '0.0.2' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index 9b9c9db..bc54df1 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- from distutils.core import setup +import ibei setup(name = "ibei", - version = "0.0.2", + version = ibei.__version__, author = "Joshua Ryan Smith", author_email = "joshua.r.smith@gmail.com", packages = ["ibei"],