From ed1366d5ce1ecc507fc9535f36d735a94bc13bbc Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 18 Sep 2023 12:24:37 +0100 Subject: [PATCH] [Docs] Fix readthedocs builds Requires using updated configuration with git unshallow so that version can be identified from git tags. Closes: https://github.com/deluge-torrent/deluge/pull/434 --- .readthedocs.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 8d94a56fc..90b567f29 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -5,6 +5,14 @@ # Required version: 2 +build: + os: ubuntu-22.04 + tools: + python: "3.10" + jobs: + post_checkout: + - git fetch --unshallow || true + # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/source/conf.py @@ -14,9 +22,8 @@ formats: all # Optionally set the version of Python and requirements required to build your docs python: - version: 3.7 install: - requirements: requirements.txt - requirements: docs/requirements.txt - - method: setuptools + - method: pip path: .