mirror of https://github.com/scrapy/scrapy.git
Add missing doc deps for new examples (#7116)
This commit is contained in:
parent
a5bbeb2586
commit
eb496470f1
|
|
@ -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
12
tox.ini
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue