|
1 | 1 | [tox]
|
2 | 2 | envlist =
|
3 |
| - py{2,27}-sphinx{16,17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51}{-html4,-html5,}{-qa,} |
4 |
| - py{3,36,37,38,39}-sphinx{16,17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,latest}{-html4,-html5,}{-qa,} |
5 |
| - py{310}-sphinx{42,43,44,45,50,51,latest}{-html4,-html5,}{-qa,} |
| 3 | + # Python 2.7 support was removed in Sphinx 2 |
| 4 | + py{27}-sphinx{16,17,18}{-html4,-html5,}{-qa,} |
| 5 | + py{36,37,38,39}-sphinx{16,17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,52,latest}{-html4,-html5,}{-qa,} |
| 6 | + # Python 3.10 working from Sphinx 4.2 and up |
| 7 | + py{310}-sphinx{42,43,44,45,50,51,52}{-html4,-html5,latest}{-qa,} |
6 | 8 |
|
7 | 9 | [testenv]
|
8 | 10 | setev =
|
@@ -35,8 +37,12 @@ deps =
|
35 | 37 | sphinx50: Sphinx>=5.0,<5.1
|
36 | 38 | sphinx51: Sphinx>=5.1,<5.2
|
37 | 39 | sphinx52: Sphinx>=5.2,<5.3
|
| 40 | + # All these Sphinx versions actually break since docutils 0.18, so we need to add this upper bound |
| 41 | + # Projects using these Sphinx versions will have to do the same |
| 42 | + # See: https://github.com/readthedocs/sphinx_rtd_theme/pull/1304 |
38 | 43 | sphinx{16,17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,42}: docutils<0.18
|
39 | 44 | sphinxlatest: Sphinx
|
| 45 | + sphinxdev: https://github.com/sphinx-doc/sphinx/archive/refs/heads/master.zip |
40 | 46 | commands =
|
41 | 47 | pytest {posargs} tests/
|
42 | 48 | !html4: sphinx-build -b html -Dhtml4_writer=0 -d {envtmpdir}/doctrees docs/ {envtmpdir}/html
|
|
0 commit comments