From: Oleg Broytman Date: Sun, 19 Mar 2017 03:36:26 +0000 (+0300) Subject: Calculate version/revision from sqlconvert.__version__ X-Git-Tag: 0.1.0~9 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=9b7b2addee4faa8ad78ff1bc347ac4c0dbe9f761;p=sqlconvert.git Calculate version/revision from sqlconvert.__version__ --- diff --git a/docs/conf.py b/docs/conf.py index ecbec32..a224bb8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,9 +17,9 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # from datetime import date -# import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) +import os +import sys +sys.path.insert(0, os.path.abspath('..')) # -- General configuration ------------------------------------------------ @@ -61,9 +61,11 @@ copyright = u'2016-%d, %s' % (date.today().year, author) # built documents. # # The short X.Y version. -version = u'0.0' +from sqlconvert.__version__ import __version__ +# The short X.Y version. +version = '.'.join(__version__.split('.')[:2]) # The full version, including alpha/beta/rc tags. -release = u'0.0.1' +release = __version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.