Skip to content

Commit cbc46bd

Browse files
fix(ci): install pinned doc requirements on Read the Docs
1 parent 1d092ee commit cbc46bd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.readthedocs.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@ version: 2
22
build:
33
os: "ubuntu-22.04"
44
tools:
5-
python: "3"
5+
python: "3.12"
66

77
apt_packages:
88
- make
99
- gettext
1010

1111
commands:
1212
- git clone https://github.com/python/cpython.git venv/cpython/
13+
# Install the doc requirements of the commit `make` builds, not of main.
14+
- git -C venv/cpython checkout "$(sed -n 's/^CPYTHON_CURRENT_COMMIT := //p' Makefile)"
1315
- python -m pip install -r venv/cpython/Doc/requirements.txt
16+
# blurb 2.x rejects a malformed entry in the pinned commit's Misc/NEWS.d.
17+
- python -m pip install "blurb<2"
1418
- make
1519
- mkdir -p _readthedocs/html/
1620
- cp -r venv/cpython/Doc/build/html/* _readthedocs/html/

0 commit comments

Comments
 (0)