At the moment, import testtools fails because of the eager import of distutils via testtools.distutilscmd, which provides the deprecated TestCommand, since distutils is removed from the Python 3.12 standard library.
setuptools still packages distutils, so a temporary workaround could be to add setuptools as a runtime dependency until TestCommand can be removed, or potentially the import of TestCommand in the root could be conditional on Python version?
Happy to provide a patch in either direction, if it would help.
At the moment,
import testtoolsfails because of the eager import ofdistutilsviatesttools.distutilscmd, which provides the deprecatedTestCommand, sincedistutilsis removed from the Python 3.12 standard library.setuptoolsstill packagesdistutils, so a temporary workaround could be to addsetuptoolsas a runtime dependency untilTestCommandcan be removed, or potentially the import ofTestCommandin the root could be conditional on Python version?Happy to provide a patch in either direction, if it would help.