Skip to content

Commit f0fc7e8

Browse files
zwarebhrutledge
andauthored
Reorder installation in .readthedocs.yaml (#825)
* Reverse the order of install directives in RTD config When RTD installs `.`, it uses `--upgrade-strategy eager`. If this is done after installing from `docs/requirements.txt`, packages may be upgraded that shouldn't be; currently, `docutils` gets upgraded to 0.18, which current versions of `Sphinx` can't work with. * Update .readthedocs.yaml Co-authored-by: Brian Rutledge <brian@bhrutledge.com>
1 parent ee97836 commit f0fc7e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.readthedocs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ formats:
1616
python:
1717
# Mininum supported Python version
1818
version: "3.6"
19+
# Install twine first, because RTD uses `--upgrade-strategy eager`,
20+
# which installs the latest version of docutils via readme_renderer.
21+
# However, Sphinx 4.2.0 requires docutils>=0.14,<0.18.
1922
install:
20-
- requirements: docs/requirements.txt
2123
- method: pip
2224
path: .
25+
- requirements: docs/requirements.txt

0 commit comments

Comments
 (0)