From 5cd8fc391398762524e738d434b0bedee1af44cd Mon Sep 17 00:00:00 2001 From: Richard Nemeth Date: Sun, 3 Jul 2022 07:52:23 +0000 Subject: [PATCH] test: use tox-poetry plugin for tox --- tox.ini | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tox.ini b/tox.ini index b88069a..0458821 100644 --- a/tox.ini +++ b/tox.ini @@ -1,13 +1,10 @@ [tox] -isolated_build = true +requires = + tox-poetry + poetry envlist = check, apply-check, docs, tests, build [testenv] -install_command = pip install {opts} {packages} -deps = - poetry>=1.1.13 -commands_pre = - bash -c "python -m pip install -r <(poetry export --dev --extras=docs --without-hashes --no-interaction)" whitelist_externals = bash @@ -24,16 +21,19 @@ commands = isort src/keycloak tests docs [testenv:docs] +extras = docs commands = sphinx-build -T -E -W -b html -d _build/doctrees -D language=en ./docs/source _build/html [testenv:tests] setenv = file|tox.env +passenv = CONTAINER_HOST commands = ./test_keycloak_init.sh "pytest -vv --cov=keycloak --cov-report term-missing {posargs}" [testenv:build] -commands_pre = +deps = + poetry setenv = POETRY_VIRTUALENVS_CREATE = false commands =