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-notfound-page==1.0.4
sphinx-rtd-theme==3.0.2

12
tox.ini
View File

@ -40,7 +40,7 @@ passenv =
#allow tox virtualenv to upgrade pip/wheel/setuptools
download = true
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]
basepython = python3.9
@ -120,7 +120,6 @@ deps =
setenv =
_SCRAPY_PINNED=true
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}
[testenv:pinned]
@ -182,7 +181,7 @@ setenv =
basepython = pypy3
commands =
; 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]
basepython = pypy3
@ -209,7 +208,7 @@ deps =
w3lib==1.20.0
zope.interface==5.1.0
commands =
; disabling both coverage and docs tests
; disabling coverage
pytest {posargs:--durations=10 scrapy tests}
setenv =
{[pinned]setenv}
@ -225,10 +224,13 @@ setenv =
[testenv:docs]
basepython = python3
changedir = {[docs]changedir}
deps = {[docs]deps}
deps =
{[test-requirements]deps}
{[docs]deps}
setenv = {[docs]setenv}
commands =
sphinx-build -W -b html . {envtmpdir}/html
pytest
[testenv:docs-coverage]
basepython = python3