From 1b9969a99030e7a38736651efe03af2bf52dae56 Mon Sep 17 00:00:00 2001 From: Kaustav Deka <116963260+deka27@users.noreply.github.com> Date: Tue, 6 Aug 2024 19:25:10 +0530 Subject: [PATCH] BF: Sphinx Build Error --- conf.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf.py b/conf.py index fc375c97..180f75a1 100644 --- a/conf.py +++ b/conf.py @@ -22,8 +22,8 @@ from packaging.version import Version import sphinx -if Version(sphinx.__version__) < Version('2'): - raise RuntimeError('Need sphinx >= 2 for numpydoc to work correctly') +if Version(sphinx.__version__) < Version('6') or Version(sphinx.__version__) >= Version('8'): + raise RuntimeError('Needs 8 > Sphinx Version >= 6 for numpydoc to work correctly') # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the diff --git a/requirements.txt b/requirements.txt index bb55513f..c69e8367 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ numpydoc -sphinx!=4.4 +sphinx==7.4.6 tomli>=2.0.1 grg-sphinx-theme>=0.3.2 Jinja2