From 7b87d98fff05f2ff426a399a36f86a71c419c6bf Mon Sep 17 00:00:00 2001 From: Florian Klien Date: Mon, 15 Oct 2018 18:06:13 +0200 Subject: auto set version of Slixmpp in Docs getting version of slixmpp from source tree for documentation --- docs/conf.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index 8f711a16..1b75cefa 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,6 +18,10 @@ import sys, os # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('..')) +# get version automagically from source tree +from slixmpp.version import __version__ as version +release = ".".join(version.split(".")[0:2]) + # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. @@ -47,10 +51,11 @@ copyright = u'2011, Nathan Fritz, Lance Stout' # |version| and |release|, also used in various other places throughout the # built documents. # +# auto imported from code! # The short X.Y version. -version = '1.1' +# version = '1.4' # The full version, including alpha/beta/rc tags. -release = '1.1' +# release = '1.4.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. -- cgit v1.2.3