From 96e80d0908de55dd7e9e3c7d376708a8157aaa52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Mollier?= Date: Thu, 14 Dec 2023 21:59:59 +0100 Subject: [PATCH] doc/conf.py: fix after move to nitime/_version.py. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since introduction of nitime/_version.py through the move to pyproject.toml, the sphinx documentation configuration script does not seem to have followed. Use of the former variables are causing a variety of errors when trying to rebuild the documentation. Adjusting to the new set of variables from nitime/_version.py fixes that. Signed-off-by: Étienne Mollier --- doc/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 8da8ad2a..4be10f43 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -94,12 +94,12 @@ # We read the version info from the source file. ver = {} -ver_file = os.path.join('..', 'nitime', 'version.py') +ver_file = os.path.join('..', 'nitime', '_version.py') with open(ver_file) as f: exec(f.read()) # The short X.Y version. -version = '%s.%s' % (_version_major, _version_minor) +version = '%s.%s' % (version_tuple[0], version_tuple[1]) # The full version, including alpha/beta/rc tags. release = __version__