From 9b7b2addee4faa8ad78ff1bc347ac4c0dbe9f761 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 19 Mar 2017 06:36:26 +0300 Subject: [PATCH] Calculate version/revision from sqlconvert.__version__ --- docs/conf.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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. -- 2.39.5