Use SetupTools' vendored distutils in tests
Drop a temporary workaround we put in place for a SetupTools bug that was fixed over two years ago. This becomes necessary as we prepare for testing under Python 3.12, since its stdlib no longer provides the distutils module, so we actually need the one from SetupTools for it. Change-Id: I41254afddfdb68780dc8989b64ec0527587c19be
This commit is contained in:
parent
bcc1f18440
commit
203f33cdf4
6
tox.ini
6
tox.ini
@ -12,10 +12,7 @@ passenv =
|
||||
REPODIR
|
||||
WHEELHOUSE
|
||||
PROJECTS
|
||||
# TODO(fungi): drop distutils override once logging improves in Setuptools
|
||||
# https://github.com/pypa/setuptools/issues/3038
|
||||
setenv =
|
||||
SETUPTOOLS_USE_DISTUTILS=stdlib
|
||||
OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:1}
|
||||
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:1}
|
||||
OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:60}
|
||||
@ -50,10 +47,7 @@ commands =
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
# TODO(fungi): drop distutils override once logging improves in Setuptools
|
||||
# https://github.com/pypa/setuptools/issues/3038
|
||||
setenv =
|
||||
SETUPTOOLS_USE_DISTUTILS=stdlib
|
||||
PYTHON=coverage run --source pbr --parallel-mode
|
||||
commands =
|
||||
stestr run --serial --suppress-attachments {posargs}
|
||||
|
Loading…
x
Reference in New Issue
Block a user