From e7625f0cfecd8582dbafe0069f68e4af0d5d69c3 Mon Sep 17 00:00:00 2001 From: Tom Most Date: Sun, 30 Apr 2023 14:13:18 -0700 Subject: [PATCH] Fix the docs build --- .readthedocs.yml | 6 +++++- setup.py | 2 +- tox.ini | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index f7e6d592..831e70b4 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -8,8 +8,12 @@ formats: - pdf - epub +build: + os: ubuntu-22.04 + tools: + python: "3.11" + python: - version: 3.8 install: - method: pip path: . diff --git a/setup.py b/setup.py index b154265c..83027633 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ "werkzeug==2.0.3", ], "docs": [ - "sphinx>=1.4.8", + "sphinx<7.0.0", # Removal of 'style' key breaks RTD. ], }, package_data={"treq": ["_version"]}, diff --git a/tox.ini b/tox.ini index 86821463..2c308623 100644 --- a/tox.ini +++ b/tox.ini @@ -53,6 +53,7 @@ commands = [testenv:docs] extras = docs changedir = docs +basepython = python3.8 commands = sphinx-build -b html . html