Skip to content

Commit eabac58

Browse files
committed
Enable tox4 compatibility in its config
This patch adds a workaround for a failure that happens in tox when `skip_install` is set and `--installpkg` is used. Ref: tox-dev/tox#2442
1 parent 95006ad commit eabac58

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tox.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ commands =
213213
[testenv:cleanup-dists]
214214
description =
215215
Wipe the the dist{/} folder
216+
# NOTE: `package_env = none` is needed so it's possible to use `--installpkg`
217+
# NOTE: with the main `testenv`.
218+
# Ref: https://github.com/tox-dev/tox/issues/2442
219+
package_env = ❌ DUMMY NON-EXISTENT ENV NAME ❌
216220
usedevelop = false
217221
skip_install = true
218222
deps =
@@ -248,6 +252,10 @@ install_command =
248252
'{toxinidir}{/}requirements{/}' \
249253
install {opts} {packages}
250254
isolated_build = true
255+
# NOTE: `package_env = none` is needed so it's possible to use `--installpkg`
256+
# NOTE: with the main `testenv`.
257+
# Ref: https://github.com/tox-dev/tox/issues/2442
258+
package_env = ❌ DUMMY NON-EXISTENT ENV NAME ❌
251259
# `usedevelop = true` overrides `skip_install` instruction, it's unwanted
252260
usedevelop = false
253261
skip_install = true
@@ -280,6 +288,10 @@ depends =
280288
build-dists
281289
deps =
282290
twine
291+
# NOTE: `package_env = none` is needed so it's possible to use `--installpkg`
292+
# NOTE: with the main `testenv`.
293+
# Ref: https://github.com/tox-dev/tox/issues/2442
294+
package_env = ❌ DUMMY NON-EXISTENT ENV NAME ❌
283295
usedevelop = false
284296
skip_install = true
285297
commands_pre =
@@ -294,6 +306,10 @@ commands =
294306
{env:PEP517_OUT_DIR}{/}*
295307

296308
[testenv:release]
309+
# NOTE: `package_env = none` is needed so it's possible to use `--installpkg`
310+
# NOTE: with the main `testenv`.
311+
# Ref: https://github.com/tox-dev/tox/issues/2442
312+
package_env = ❌ DUMMY NON-EXISTENT ENV NAME ❌
297313
skip_install = True
298314
deps =
299315
pep517>=0.5

0 commit comments

Comments
 (0)