From d8ec815423c3399374f6fbe9bcdffad5f6b2ce51 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 5 Nov 2020 15:42:57 +0100 Subject: [PATCH] version info cant be taken from installed pkg, but must be taken from the locally compiled pEp module --- docs/source/conf.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index a4e1f53..0ab999a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,22 +12,25 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -# import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) - - +import os +import sys +sys.path.insert(0, os.path.abspath('../../src')) # -- Project information ----------------------------------------------------- -from pkg_resources import get_distribution +#from pkg_resources import get_distribution project = "pEpPythonAdapter" copyright = "2020, Volker Birk, heck, juga" author = "Volker Birk, heck, juga" + +import pEp # The full version, including alpha/beta/rc tags -release = get_distribution("pEp").version +release = pEp.__version__ # The short X.Y version version = ".".join(release.split(".")[:2]) +# DEBUG +print("release:", release) +print("version:", version) # -- General configuration --------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here.