Skip to content

Commit

Permalink
Fix tox config to use poetry 1.2+
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Mar 28, 2023
1 parent ce7739d commit 1ab2f76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ isolated_build = true
passenv = HOME
skip_install = true
whitelist_externals =
poetry
rm
# Use allowlist for poetry when poetry 1.2+ is more widespread
# poetry
deps =
poetry>=1.2
commands_pre =
poetry install -E cli
commands =
Expand All @@ -22,7 +25,7 @@ whitelist_externals =
commands=
mkdir -p _static
rm -rf _build
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
poetry run sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html

[testenv:lint]
commands =
Expand All @@ -33,9 +36,6 @@ commands =
poetry run black --check --diff {posargs:.}

[testenv:licenses]
# Make tox's poetry executable available for the run-liccheck script
setenv =
PATH={env:PATH}{:}{env:TOX_WORK_DIR}{/}.tox{/}bin
commands =
poetry run {toxinidir}/devel/run-liccheck.sh

Expand Down

0 comments on commit 1ab2f76

Please sign in to comment.