From 6fe6aec8c55a335d2837d7b0abf3157b445e55e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Wed, 1 Jul 2020 14:44:44 +0200 Subject: [PATCH] Use pinned dependencies for asyncio and PyPy tests against oldest supported Python versions --- .travis.yml | 4 ++-- tox.ini | 28 ++++++++++++++++++---------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index e1a4df624..3940811d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,9 +20,9 @@ matrix: - env: TOXENV=pinned python: 3.5.2 - - env: TOXENV=asyncio + - env: TOXENV=asyncio-pinned python: 3.5.2 # We use additional code to support 3.5.3 and earlier - - env: TOXENV=pypy3 PYPY_VERSION=3-v5.9.0 + - env: TOXENV=pypy3-pinned PYPY_VERSION=3-v5.9.0 - env: TOXENV=py python: 3.5 diff --git a/tox.ini b/tox.ini index 27d21ade2..4c49b9004 100644 --- a/tox.ini +++ b/tox.ini @@ -58,13 +58,7 @@ deps = commands = pylint conftest.py docs extras scrapy setup.py tests -[testenv:pypy3] -basepython = pypy3 -commands = - py.test {posargs:--durations=10 docs scrapy tests} - [testenv:pinned] -basepython = python3 deps = -ctests/constraints.txt cryptography==2.0 @@ -91,6 +85,24 @@ deps = reppy robotexclusionrulesparser +[testenv:asyncio] +commands = + {[testenv]commands} --reactor=asyncio + +[testenv:asyncio-pinned] +commands = {[testenv:asyncio]commands} +deps = {[testenv:pinned]deps} + +[testenv:pypy3] +basepython = pypy3 +commands = + py.test {posargs:--durations=10 docs scrapy tests} + +[testenv:pypy3-pinned] +basepython = {[testenv:pypy3]basepython} +commands = {[testenv:pypy3]commands} +deps = {[testenv:pinned]deps} + [docs] changedir = docs deps = @@ -122,7 +134,3 @@ deps = {[docs]deps} setenv = {[docs]setenv} commands = sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck - -[testenv:asyncio] -commands = - {[testenv]commands} --reactor=asyncio