Skip to content

Commit 9abeeba

Browse files
committed
docs: require newer Sphinx in RTD
By default <2 is used, but we want to use new features. Refs #428
1 parent b41572e commit 9abeeba

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.readthedocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ python:
55
# Without this, sphinx can't find pluggy's version.
66
- method: pip
77
path: .
8+
- requirements: docs/requirements.txt
89

910
build:
1011
os: ubuntu-22.04

docs/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Higher bound for safety, can bump it if builds fine with new major versions.
2+
sphinx>=6,<8
3+
pygments
4+
towncrier

tox.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ deps=
2222

2323
[testenv:docs]
2424
deps =
25-
sphinx
26-
pygments
27-
towncrier
25+
-r{toxinidir}/docs/requirements.txt
2826
commands =
2927
python scripts/towncrier-draft-to-file.py
3028
# the '-t changelog_towncrier_draft' tags makes sphinx include the draft

0 commit comments

Comments
 (0)