Add missing doc deps for new examples (#7116)

This commit is contained in:
Adrián Chaves 2025-10-24 11:58:18 +02:00 committed by GitHub
parent a5bbeb2586
commit eb496470f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,5 @@
pydantic==2.12.3
scrapy-spider-metadata==0.2.0
sphinx==8.1.3 sphinx==8.1.3
sphinx-notfound-page==1.0.4 sphinx-notfound-page==1.0.4
sphinx-rtd-theme==3.0.2 sphinx-rtd-theme==3.0.2

12
tox.ini
View File

@ -40,7 +40,7 @@ passenv =
#allow tox virtualenv to upgrade pip/wheel/setuptools #allow tox virtualenv to upgrade pip/wheel/setuptools
download = true download = true
commands = commands =
pytest {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report= --cov-report=term-missing --cov-report=xml --junitxml=testenv.junit.xml -o junit_family=legacy --durations=10 docs scrapy tests --doctest-modules} pytest {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report= --cov-report=term-missing --cov-report=xml --junitxml=testenv.junit.xml -o junit_family=legacy --durations=10 scrapy tests --doctest-modules}
[testenv:typing] [testenv:typing]
basepython = python3.9 basepython = python3.9
@ -120,7 +120,6 @@ deps =
setenv = setenv =
_SCRAPY_PINNED=true _SCRAPY_PINNED=true
commands = commands =
; tests for docs fail with parsel < 1.8.0
pytest {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report=xml --cov-report= --junitxml=pinned.junit.xml -o junit_family=legacy --durations=10 scrapy tests} pytest {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report=xml --cov-report= --junitxml=pinned.junit.xml -o junit_family=legacy --durations=10 scrapy tests}
[testenv:pinned] [testenv:pinned]
@ -182,7 +181,7 @@ setenv =
basepython = pypy3 basepython = pypy3
commands = commands =
; not enabling coverage as it significantly increases the run time ; not enabling coverage as it significantly increases the run time
pytest {posargs:--durations=10 docs scrapy tests} pytest {posargs:--durations=10 scrapy tests}
[testenv:pypy3-extra-deps] [testenv:pypy3-extra-deps]
basepython = pypy3 basepython = pypy3
@ -209,7 +208,7 @@ deps =
w3lib==1.20.0 w3lib==1.20.0
zope.interface==5.1.0 zope.interface==5.1.0
commands = commands =
; disabling both coverage and docs tests ; disabling coverage
pytest {posargs:--durations=10 scrapy tests} pytest {posargs:--durations=10 scrapy tests}
setenv = setenv =
{[pinned]setenv} {[pinned]setenv}
@ -225,10 +224,13 @@ setenv =
[testenv:docs] [testenv:docs]
basepython = python3 basepython = python3
changedir = {[docs]changedir} changedir = {[docs]changedir}
deps = {[docs]deps} deps =
{[test-requirements]deps}
{[docs]deps}
setenv = {[docs]setenv} setenv = {[docs]setenv}
commands = commands =
sphinx-build -W -b html . {envtmpdir}/html sphinx-build -W -b html . {envtmpdir}/html
pytest
[testenv:docs-coverage] [testenv:docs-coverage]
basepython = python3 basepython = python3