Per PEP 632, distutils is deprecated and most uses of it can be replaced by setuptools. The only use within testtools is to support the deprecated TestCommand that's due to be removed in the next major, but in the meantime, adding a runtime dependency on setuptools for Python 3.12+ (which removed distutils entirely) allows it to continue working.
Per PEP 632,
distutils
is deprecated and most uses of it can be replaced bysetuptools
. The only use withintesttools
is to support the deprecatedTestCommand
that's due to be removed in the next major, but in the meantime, adding a runtime dependency onsetuptools
for Python 3.12+ (which removeddistutils
entirely) allows it to continue working.Fix #352.