From 5490a4aaa245f58904feae158717e47d64aaaffa Mon Sep 17 00:00:00 2001 From: Heiko Klein Date: Mon, 28 Oct 2024 13:10:59 +0100 Subject: [PATCH 1/3] fix doc-pathes to module --- docs/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 436f14a..37991d9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -4,6 +4,7 @@ # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html +from pathlib import Path import os import sys @@ -16,6 +17,7 @@ # -- Add paths --------------------------------------- sys.path.insert(0, os.path.abspath(".")) sys.path.insert(0, os.path.abspath("..")) +sys.path.insert(0, str(Path("..", "src").resolve())) # -- General configuration --------------------------------------------------- From 2e027a74f9f0a90c4f3c8eaf6ac244dc9ced01b6 Mon Sep 17 00:00:00 2001 From: Heiko Klein Date: Mon, 28 Oct 2024 17:06:55 +0100 Subject: [PATCH 2/3] removing pyaro from requirements, since src is in path now --- docs/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 3f4cd03..2536fbd 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -5,4 +5,4 @@ sphinx_rtd_theme sphinx-argparse nbsphinx pandas -pyaro @ git+https://github.com/metno/pyaro@main +# pyaro @ git+https://github.com/metno/pyaro@main From 0002a6f32b7f93bfbd936c8092d6dfca4f32cac3 Mon Sep 17 00:00:00 2001 From: Heiko Klein Date: Mon, 28 Oct 2024 17:34:09 +0100 Subject: [PATCH 3/3] adding optional requirements to docs/requirements to make automodule working --- docs/conf.py | 3 +-- docs/requirements.txt | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 37991d9..a67721e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -4,7 +4,6 @@ # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html -from pathlib import Path import os import sys @@ -17,7 +16,7 @@ # -- Add paths --------------------------------------- sys.path.insert(0, os.path.abspath(".")) sys.path.insert(0, os.path.abspath("..")) -sys.path.insert(0, str(Path("..", "src").resolve())) +# sys.path.insert(0, str(Path("..", "src").resolve())) # src not needed since pyaro is installed # -- General configuration --------------------------------------------------- diff --git a/docs/requirements.txt b/docs/requirements.txt index 2536fbd..3783e28 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -4,5 +4,8 @@ sphinxcontrib-napoleon sphinx_rtd_theme sphinx-argparse nbsphinx +cf-units +xarray +netcdf4 pandas -# pyaro @ git+https://github.com/metno/pyaro@main +pyaro @ git+https://github.com/metno/pyaro@main