From 4a61ef117356d5c2f140054a395bbe11bbd691c9 Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Fri, 8 Sep 2023 16:58:14 +0100 Subject: [PATCH] Update RTD config --- .readthedocs.yml | 18 ++++++++++++------ docs-requirements.txt | 2 ++ docs/source/conf.py | 2 -- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 37a69fc..59dbe3c 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -2,13 +2,19 @@ # - https://docs.readthedocs.io/en/latest/config-file/v2.html version: 2 -# python version -python: - version: 3 - system_packages: true - install: - - requirements: docs-requirements.txt +build: + os: ubuntu-22.04 + tools: + python: "3.11" +# Build documentation with Sphinx sphinx: builder: html configuration: docs/source/conf.py + +# Optional but recommended, declare the Python requirements required +# to build your documentation +# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +python: + install: + - requirements: docs-requirements.txt diff --git a/docs-requirements.txt b/docs-requirements.txt index ad03f3b..88c8e85 100644 --- a/docs-requirements.txt +++ b/docs-requirements.txt @@ -1,3 +1,5 @@ # Add your pinned requirements for building docs (exclude any packages which can safely be # mocked in docs/conf.py m2r2 +numpy +pandas diff --git a/docs/source/conf.py b/docs/source/conf.py index 2ae3b2d..1704800 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -30,8 +30,6 @@ def __getattr__(cls, name): mock_modules = [ "geopandas", - "numpy", - "pandas", "shapely", "shapely.errors", "shapely.geometry",