Use pinned dependencies for asyncio and PyPy tests against oldest supported Python versions

This commit is contained in:
Adrián Chaves 2020-07-01 14:44:44 +02:00
parent b67108609b
commit 6fe6aec8c5
2 changed files with 20 additions and 12 deletions

View File

@ -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

28
tox.ini
View File

@ -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