The entire setup.py test workflow is deprecated in favour of test runners such as tox. As a result, any project that imports testtools incurs warnings such as this with Python >= 3.10:
.tox/py310/lib/python3.10/site-packages/testtools/distutilscmd.py:7
.../.tox/py310/lib/python3.10/site-packages/testtools/distutilscmd.py:7: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.core import Command
Should we deprecate testtools.distutilscmd and aim to remove it?
The entire
setup.py testworkflow is deprecated in favour of test runners such astox. As a result, any project that importstesttoolsincurs warnings such as this with Python >= 3.10:Should we deprecate
testtools.distutilscmdand aim to remove it?