From: Jeremy Stanley Date: Fri, 19 Nov 2021 19:30:00 +0000 (+0000) Subject: Update warning filter for SetupTools and filelock X-Git-Tag: 0.5.0~10 X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=ebdb4771ec06e3c43cacc8d6dea6f23c30ebf5b8 Update warning filter for SetupTools and filelock SetupTools 58.3.0 deprecated use of the setup_requires parameter as well as calls to easy_install and setup.py install. The filelock library (used by virtualenv, on which tox relies) is replacing its poll_intervall parameter with poll_interval and has deprecated the former in a 3.4.0 release. Ignore these with the PYTHONWARNINGS in tox.ini so they'll be filtered out. --- diff --git a/tox.ini b/tox.ini index 7f80873..5a1a808 100644 --- a/tox.ini +++ b/tox.ini @@ -20,14 +20,30 @@ usedevelop = True # py310... distutils.command.install raises DeprecationWarning "The # distutils.sysconfig module is deprecated, use sysconfig instead" but this # can't be matched by message because it contains a comma -# flake8... flake8.plugins.manager raises DeprecationWarning "SelectableGroups dict interface is deprecated. Use select." +# flake8... flake8.plugins.manager raises DeprecationWarning "SelectableGroups +# dict interface is deprecated. Use select." # multiple callers raise DeprecationWarning "The distutils package is # deprecated and slated for removal in Python 3.12. Use setuptools or check # PEP 632 for potential alternatives" # multiple callers raise DeprecationWarning "Creating a LegacyVersion has been # deprecated and will be removed in the next major release" +# SetupTools raises +# setuptools._deprecation_warning.SetuptoolsDeprecationWarning "setup.py +# install is deprecated. Use build and pip and other standards-based tools." +# but only the message can be matched because the exception is private +# SetupTools raises +# setuptools._deprecation_warning.SetuptoolsDeprecationWarning +# "setup_requires is deprecated. Supply build dependencies using PEP 517 +# pyproject.toml build-requires." but only the message can be matched because +# the exception is private +# SetupTools raises +# setuptools._deprecation_warning.SetuptoolsDeprecationWarning "easy_install +# command is deprecated. Use build and pip and other standards-based tools." +# but only the message can be matched because the exception is private +# filelock raises DeprecationWarning "use poll_interval instead of +# poll_intervall" 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 + 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 VIRTUALENV_CREATOR = venv commands = mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml