zuul-jobs/test-playbooks/python/tox.ini
James E. Blair 66a8e51945 Avoid tox-bindep in test-tox job
The test-tox job exercises the "requires" setting in tox.ini, and
to do so it uses a small package, tox-bindep.  This was originally
added in I521580da978903cd116c872447b1c028c470e63d.

This package is not compatible with tox v4, so to retain this test
we update the test tox.ini file to use another small package,
requestsexceptions, which does not interact with tox and so does
not suffer from this problem.

Change-Id: I6c4737c138bf138afbb4b15d64ac11437c725d4a
2022-12-22 15:39:09 -08:00

19 lines
368 B
INI

[tox]
minversion = 3.2
envlist = linters
skipsdist = true
# Test that we don't break when the requires feature is used
requires = requestsexceptions
[testenv]
allowlist_externals = sh
[testenv:linters]
commands = sh -c "echo linters >> {posargs}"
[testenv:non-default]
commands = sh -c "echo non-default >> {posargs}"
[testenv:foo]
commands = sh -c "echo working"