summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Stanley <fungi@yuggoth.org>2022-01-20 18:46:06 +0000
committerJeremy Stanley <fungi@yuggoth.org>2022-01-20 21:01:47 +0000
commitc718425299af4f4df7b32adb90e8d183e101c6bc (patch)
treeed51e851094c4a06b37d3e105aedaf00fb4d04cc
parentb6b204e33eb396aaa3dc5576a062d0e5c0cc5d7e (diff)
downloadpbr-c718425299af4f4df7b32adb90e8d183e101c6bc.tar.gz
Don't test with setuptools local distutils
We noticed some aberrations in log level/threshold handling as of Setuptools 60.0.0, and the only substantive change for that release toggles the default selection for its internal ("local") distutils replacement vs the "stdlib" one. For now, toggle the SETUPTOOLS_USE_DISTUTILS envvar in our testing back to the old value. This should be revisited once logging is handled better in Setuptools. https://github.com/pypa/setuptools/issues/3038 Change-Id: If372a33607fff884cd7bf888ee5a23a2fbb351b2
-rw-r--r--tox.ini6
1 files changed, 6 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 549dd4e..e158f90 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,7 +7,10 @@ ignore_basepython_conflict = True
usedevelop = True
basepython = python3
passenv = PBR_INTEGRATION PIPFLAGS PIPVERSION PBRVERSION 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}
@@ -40,7 +43,10 @@ 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 {posargs}