Skip to content

Commit

Permalink
Use the new pip resolver for Tox environments with pinned dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Nov 17, 2020
1 parent 034d61e commit 6ef3dc2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,18 @@ deps =
botocore==1.4.87
google-cloud-storage==1.29.0
Pillow==4.0.0
install_command =
# --use-feature=2020-resolver is required, otherwise the latest verion of
# Twisted gets installed.
pip install --use-feature=2020-resolver {opts} {packages}

[testenv:pinned]
deps =
{[pinned]deps}
lxml==3.5.0
PyDispatcher==2.0.5
install_command =
{[pinned]install_command}

[testenv:windows-pinned]
basepython = python3
Expand All @@ -103,13 +109,17 @@ deps =
# not need to build lxml from sources in a CI Windows job:
lxml==3.8.0
PyDispatcher==2.0.5
install_command =
{[pinned]install_command}

[testenv:extra-deps]
deps =
{[testenv]deps}
reppy
robotexclusionrulesparser
install_command =
# Test --use-feature=2020-resolver for the latest version of all
# dependencies.
pip install --use-feature=2020-resolver {opts} {packages}

[testenv:asyncio]
Expand All @@ -118,6 +128,8 @@ commands =

[testenv:asyncio-pinned]
deps = {[testenv:pinned]deps}
install_command =
{[pinned]install_command}
commands = {[testenv:asyncio]commands}

[testenv:pypy3]
Expand All @@ -131,6 +143,8 @@ deps =
{[pinned]deps}
lxml==4.0.0
PyPyDispatcher==2.1.0
install_command =
{[pinned]install_command}
commands = {[testenv:pypy3]commands}

[docs]
Expand Down

0 comments on commit 6ef3dc2

Please sign in to comment.