]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Read the Docs should always source requirements.txt from "main"
authorMichal Nowak <mnowak@isc.org>
Mon, 14 Oct 2024 18:17:28 +0000 (20:17 +0200)
committerMichal Nowak <mnowak@isc.org>
Thu, 17 Oct 2024 10:11:08 +0000 (12:11 +0200)
HTTP URI of doc/arm/requirements.txt on the "main" branch is the source
of PyPI packages in CI base image. To make it consistent in all
maintained CI branches on RTD, use the HTTP URI as well.

This change is non-material on the "main" branch, but ensures the right
packages on stable branches where for RTD we currently leverage outdated
packages because we failed to update doc/arm/requirements.txt there.

.readthedocs.yaml

index 5ea7be060086d2502b9226ba8a617c9c46e25b5a..010dc6e0c1daa77c6d828fcc8b0118bfac7bdd4b 100644 (file)
@@ -6,6 +6,9 @@ build:
   os: ubuntu-22.04
   tools:
     python: "3.11"
+  jobs:
+    pre_build:
+      - python -m pip install -r https://gitlab.isc.org/isc-projects/bind9/-/raw/main/doc/arm/requirements.txt
 
 # Build documentation in doc/arm/ with Sphinx
 sphinx:
@@ -13,8 +16,3 @@ sphinx:
 
 # Build all formats
 formats: all
-
-# Explicitly set the version of Python and its requirements
-python:
-   install:
-   - requirements: doc/arm/requirements.txt