Commit 253b60cc by wwuck Committed by GitHub

Switch to allowlist_externals for modern Tox (#4574)

`whitelist_externals` is now deprecated in Tox >= 3.18 and has been renamed to `allowlist_externals`

https://tox.readthedocs.io/en/latest/config.html#conf-allowlist_externals
parent da40171d
...@@ -65,7 +65,7 @@ isolated_build = true ...@@ -65,7 +65,7 @@ isolated_build = true
envlist = py27, py36 envlist = py27, py36
[testenv] [testenv]
whitelist_externals = poetry allowlist_externals = poetry
commands = commands =
poetry install -v poetry install -v
poetry run pytest tests/ poetry run pytest tests/
......
...@@ -58,7 +58,7 @@ pytest = "^6.2" ...@@ -58,7 +58,7 @@ pytest = "^6.2"
pytest-cov = "^2.8" pytest-cov = "^2.8"
pytest-mock = "^3.5" pytest-mock = "^3.5"
pre-commit = { version = "^2.6", python = "^3.6.1" } pre-commit = { version = "^2.6", python = "^3.6.1" }
tox = "^3.0" tox = "^3.18"
pytest-sugar = "^0.9" pytest-sugar = "^0.9"
httpretty = "^1.0" httpretty = "^1.0"
zipp = { version = "^3.4", python = "<3.8"} zipp = { version = "^3.4", python = "<3.8"}
......
[tox] [tox]
minversion = 3.3.0 minversion = 3.18.0
isolated_build = True isolated_build = True
envlist = py36, py37, py38, py39 envlist = py36, py37, py38, py39
[testenv] [testenv]
whitelist_externals = poetry allowlist_externals = poetry
commands = commands =
poetry install -vv --no-root poetry install -vv --no-root
poetry run pytest {posargs} tests/ poetry run pytest {posargs} tests/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment