From 32d0a9faa7c931d95f1792b82985897d98da6935 Mon Sep 17 00:00:00 2001 From: Debian Med Packaging Team Date: Thu, 14 Dec 2023 22:51:37 +0100 Subject: fix sphinx conf.py file. 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 at documentation build time. Author: Étienne Mollier Forwarded: https://github.com/nipy/nitime/pull/212 Last-Update: 2023-12-14 Gbp-Pq: Name sphinx-conf-fix.patch --- doc/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 7f1fe2b..8aabc40 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -93,12 +93,12 @@ copyright = u'2009, Neuroimaging in Python team' # 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__ -- cgit v1.2.3