From cf45bf0484ae2b71e6315434dbe286770dd2897f Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 15 Jun 2021 16:20:00 +0200 Subject: [PATCH] update .readthedocs.yaml --- doc/sphinx/source/conf.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/sphinx/source/conf.py b/doc/sphinx/source/conf.py index bfa0ecf..bcb14d2 100644 --- a/doc/sphinx/source/conf.py +++ b/doc/sphinx/source/conf.py @@ -12,7 +12,8 @@ import os import sys -sys.path.insert(0, os.path.abspath('../../../')) +three_up = os.path.abspath(os.path.join('..', '..', '..')) +sys.path.insert(0, three_up) from recommonmark.parser import CommonMarkParser @@ -23,8 +24,12 @@ copyright = '2021, Anton Obukhov' author = 'Anton Obukhov' +with open(os.path.join(three_up, 'torch_fidelity', 'version.py')) as f: + version_pycode = f.read() +exec(version_pycode) + # The full version, including alpha/beta/rc tags -release = '0.3.0' +release = __version__ # -- General configuration ---------------------------------------------------