From: Jeremy Stanley Date: Sat, 19 Sep 2020 14:34:43 +0000 (+0000) Subject: Check for warnings in the to dist env X-Git-Tag: 0.2.1^0 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=86687f01f1ee31acb004ec91ba6d90059b89d93e;p=mudpy.git 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. --- 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