Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Use the latest Python version to build the documentation

Adrián Chaves6d1667d5b808
diff --git a/.travis.yml b/.travis.yml
index 9f477e860..c9c64e990 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -26,7 +26,7 @@ matrix:
- env: TOXENV=py38-extra-deps
python: 3.8
- env: TOXENV=docs
- python: 3.6
+ python: 3.8
install:
- |
if [ "$TOXENV" = "pypy3" ]; then
diff --git a/tox.ini b/tox.ini
index fd75d18e2..195cc106a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,6 +6,9 @@
[tox]
envlist = py35
+[latest]
+basepython = python3.8
+
[testenv]
deps =
-ctests/constraints.txt
@@ -63,14 +66,14 @@ commands =
py.test {posargs:--durations=10 docs scrapy tests}
[testenv:security]
-basepython = python3.8
+basepython = {[latest]basepython}
deps =
bandit
commands =
bandit -r -c .bandit.yml {posargs:scrapy}
[testenv:flake8]
-basepython = python3.8
+basepython = {[latest]basepython}
deps =
{[testenv]deps}
pytest-flake8
@@ -83,18 +86,21 @@ deps =
-rdocs/requirements.txt
[testenv:docs]
+basepython = {[latest]basepython}
changedir = {[docs]changedir}
deps = {[docs]deps}
commands =
sphinx-build -W -b html . {envtmpdir}/html
[testenv:docs-coverage]
+basepython = {[latest]basepython}
changedir = {[docs]changedir}
deps = {[docs]deps}
commands =
sphinx-build -b coverage . {envtmpdir}/coverage
[testenv:docs-links]
+basepython = {[latest]basepython}
changedir = {[docs]changedir}
deps = {[docs]deps}
commands =