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 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=7fc23e9c14707d94860e9f7fd50f4228ee8069e8;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