Skip to content

Commit

Permalink
docs: require newer Sphinx in RTD
Browse files Browse the repository at this point in the history
By default <2 is used, but we want to use new features.

Refs pytest-dev#428
  • Loading branch information
bluetech committed Aug 4, 2023
1 parent b41572e commit 9abeeba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ python:
# Without this, sphinx can't find pluggy's version.
- method: pip
path: .
- requirements: docs/requirements.txt

build:
os: ubuntu-22.04
Expand Down
4 changes: 4 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Higher bound for safety, can bump it if builds fine with new major versions.
sphinx>=6,<8
pygments
towncrier
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ deps=

[testenv:docs]
deps =
sphinx
pygments
towncrier
-r{toxinidir}/docs/requirements.txt
commands =
python scripts/towncrier-draft-to-file.py
# the '-t changelog_towncrier_draft' tags makes sphinx include the draft
Expand Down

0 comments on commit 9abeeba

Please sign in to comment.