Closed mauritsvanrees closed 2 months ago
I did not try it, but it looks like this module is only used when you call python setup.py ftest
, which is a distutils command we define. I have never used this. Since the standard python setup.py test
should no longer be used and has been removed, it is probably fine if our ftest
command is broken on setuptools 72+ as well. We should add this observation to the changelog.
Apart from making the tests pass, we could either do nothing, or catch the ImportError and provide an own error message.
Sounds like a good opportunity to clean some code 👍🏾
I have deprecated our ftest
command and scheduled it for removal in zope.testrunner
7.
Interestingly we have a hack in our own setup.py
that replaces the standard test
command with a custom_test
command. So this custom_test
command is used when you run python setup.py test
on the setup.py
of this same package.
Ah, and this works (sort of) because we do from setuptools.command.test import test
at the top of our setup.py
. So that won't work either once the upstream test
command is completely gone.
It is probably best to remove that code now. We probably do not need to support running python setup.py test
(or python setup.py ftest
) on ourselves.
I am fine with not having a deprecation period but upgrading the major version number.
python setup.py ftest
or python setup.py test
is no longer/should be no longer used in our own tests. (Writing this, I remember that zope.interface
is maybe still using it.)
Part of this was done by @d-maurer in PR #178. I will close the current PR and make a new one with the remaining needed changes.
Some actual fixes are needed here. The
testrunner-eggsupport.rst
tests fail:They only fail on Python 3.12 and 3.13. These get
setuptools==72.1.0
. Python 3.11 getssetuptools==70.1.0
so there it still works.The
eggsupport.py
file starts with this, which for obvious reasons is not available anymore on setuptools 72:I wonder if our
eggsupport
module is by definition broken and unfixable in setuptools 72+ , and if we should simply make a note of this in the changelog and ignore the test file on that setuptools version.