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.