From 8874467022388289e86e9d96c9ca6b2ad4c5039c Mon Sep 17 00:00:00 2001 From: Matthew Watkins Date: Tue, 12 Mar 2024 19:09:53 +0000 Subject: [PATCH] Chore: Further RTD dependency and metadata updates Signed-off-by: Matthew Watkins --- docs/conf.py | 2 ++ docs/conf.py.backup | 6 ------ docs/requirements-docs.txt | 1 + pyproject.toml | 3 ++- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index dd13b7e4..49182476 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,3 +14,5 @@ sys.path.insert(0, os.path.abspath("../src/")) config = SphinxConfig("../pyproject.toml", globalns=globals()) + +extensions = ["sphinx_pyproject"] diff --git a/docs/conf.py.backup b/docs/conf.py.backup index 4dca497a..2bcd5e4f 100644 --- a/docs/conf.py.backup +++ b/docs/conf.py.backup @@ -10,12 +10,6 @@ import sys sys.path.insert(0, os.path.abspath("..")) sys.path.insert(0, os.path.abspath("../src/")) -# Migrate as much of the configuration as possible into pyproject.toml -from sphinx_pyproject import SphinxConfig -config = SphinxConfig("../pyproject.toml", globalns=globals()) - - - # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information diff --git a/docs/requirements-docs.txt b/docs/requirements-docs.txt index 267723f8..86f776a0 100644 --- a/docs/requirements-docs.txt +++ b/docs/requirements-docs.txt @@ -1,4 +1,5 @@ sphinx==5.3.0 +sphinx-pyproject numpydoc==1.0.0 sphinx-copybutton==0.5.0 myst-nb==0.16.0 diff --git a/pyproject.toml b/pyproject.toml index f7b62d4a..6836d5b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,7 +61,8 @@ include = ["physrisk*"] test = [ "pdm[pytest]", "pytest", - "pytest-cov" + "pytest-cov", + "sphinx-pyproject" ] docs = [ "sphinx",