From ab21be291cbc8418dde692f6dc6c6028c80a41cd Mon Sep 17 00:00:00 2001 From: Cameron Yick Date: Sat, 7 Oct 2017 15:10:01 -0400 Subject: [PATCH] Update Build Versioning --- docs/conf.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 681b95e..b7269e1 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -61,11 +61,16 @@ copyright = u"2017, Cameron Yick" # The version info for the project you're documenting, acts as replacement # for |version| and |release|, also used in various other places throughout # the built documents. -# + +here = os.path.abspath(os.path.dirname(__file__)) +about = {} +with open(os.path.join(here, os.pardir, "tiingo", '__version__.py')) as f: + exec(f.read(), about) + # The short X.Y version. -version = tiingo.__version__ +version = about['__version__'] # The full version, including alpha/beta/rc tags. -release = tiingo.__version__ +release = about['__version__'] # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.