From 86687f01f1ee31acb004ec91ba6d90059b89d93e Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 19 Sep 2020 14:34:43 +0000 Subject: [PATCH] Check for warnings in the to dist env Some deprecated Setuptools operations were removed in a recent PBR release, allowing us to now build sdist and wheel artifacts with warnings as errors. There are still a couple more outstanding deprecation fixes needed for other envs, so update the comment in tox.ini accordingly. --- tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 203bd1c..da6723b 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,7 @@ basepython = python3 usedevelop = True install_command = pip install {opts} {packages} # TODO(fungi) Switch this to "error" and remove env-specific copies once -# https://review.opendev.org/735433 and https://review.opendev.org/735443 +# https://review.opendev.org/752793 and https://review.opendev.org/752794 # merge and appear in a new PBR release setenv = PYTHONWARNINGS=default::DeprecationWarning @@ -40,6 +40,8 @@ usedevelop = False commands = mudpy {posargs} [testenv:dist] +setenv = + PYTHONWARNINGS=error allowlist_externals = rm deps = pbr -- 2.11.0