From 7dc10476791b9e639d98d54ca697aaa6565fbc10 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 29 Dec 2021 17:56:38 +0000 Subject: [PATCH] Update warning filter for pip's vendored libs The path function in importlib_resources is deprecated, but called from the versions of certifi and pep517 vendored by recent pip releases. Ignore these with the PYTHONWARNINGS in tox.ini so they'll be filtered out for now. --- tox.ini | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 94e7c7a..b6b1917 100644 --- a/tox.ini +++ b/tox.ini @@ -41,8 +41,13 @@ basepython = python3 # but only the message can be matched because the exception is private # filelock raises DeprecationWarning "use poll_interval instead of # poll_intervall" +# pip._vendor.certifi.core and pip._vendor.pep517.in_process raise +# DeprecationWarning "path is deprecated. Use files() instead. Refer to +# https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy +# for migration advice." but this can't be matched by message because it +# contains a colon setenv = - PYTHONWARNINGS = error, ignore::FutureWarning:Cython.Compiler.Main, ignore::DeprecationWarning:distutils.command.install, ignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning, ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning, ignore:SelectableGroups dict interface is deprecated. Use select.:DeprecationWarning:flake8.plugins.manager, ignore:setup.py install is deprecated. Use build and pip and other standards-based tools., ignore:easy_install command is deprecated. Use build and pip and other standards-based tools., ignore:use poll_interval instead of poll_intervall:DeprecationWarning + PYTHONWARNINGS = error, ignore::FutureWarning:Cython.Compiler.Main, ignore::DeprecationWarning:distutils.command.install, ignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning, ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning, ignore:SelectableGroups dict interface is deprecated. Use select.:DeprecationWarning:flake8.plugins.manager, ignore:setup.py install is deprecated. Use build and pip and other standards-based tools., ignore:easy_install command is deprecated. Use build and pip and other standards-based tools., ignore:use poll_interval instead of poll_intervall:DeprecationWarning, ignore::DeprecationWarning:pip._vendor.certifi.core, ignore::DeprecationWarning:pip._vendor.pep517.in_process VIRTUALENV_CREATOR = venv commands = mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml deps = {toxinidir} -- 2.11.0