From 6daf310f903be49c8f44befcf575c5fc11e074de Mon Sep 17 00:00:00 2001 From: Philipp Schlegel Date: Fri, 12 Apr 2024 14:14:22 +0100 Subject: [PATCH] try fixing the read-the-docs build --- .readthedocs.yml | 19 +++++++++++-------- docs/preinstall_requirements.txt | 5 +++++ 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 docs/preinstall_requirements.txt diff --git a/.readthedocs.yml b/.readthedocs.yml index 8dbb3a7..2abe270 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -5,24 +5,27 @@ # Required version: 2 -# Make sure that dependencies are install with pip instead of setup.py +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.10" + +# Make sure that dependencies are installed with pip instead of setup.py python: - version: 3.7 install: + - requirements: docs/preinstall_requirements.txt - requirements: docs/requirements.txt - - requirements: requirements.txt + #- requirements: requirements.txt - method: pip path: . - system_packages: true # Build documentation in the docs/ directory with Sphinx sphinx: + builder: html configuration: docs/conf.py -# Build documentation with MkDocs -#mkdocs: -# configuration: mkdocs.yml - # Optionally build your docs in additional formats such as PDF #formats: # - pdf + diff --git a/docs/preinstall_requirements.txt b/docs/preinstall_requirements.txt new file mode 100644 index 0000000..f71cd41 --- /dev/null +++ b/docs/preinstall_requirements.txt @@ -0,0 +1,5 @@ +###### Requirements without Version Specifiers ###### +# For some odd reason, readthedocs uses a really old version of setuptools +# Note: as of v58.0.0 the `2to3` option for setup() is gone which breaks +# ALL installs of sphinx-bootstrap-theme +setuptools==57.5.0