Bug#1080276: FTBFS with setuptools >= 72: error: invalid command 'test'

Stefano Rivera stefanor at debian.org
Sun Sep 1 13:53:19 BST 2024


Source: morfessor
Version: 2.0.6-3
Severity: serious
Tags: ftbfs
Justification: FTBFS
User: debian-python at lists.debian.org
Usertags: setup.py-test

Dear maintainer,

During a test rebuild for packages affected by setuptools 72, morfessor
failed to rebuild.

FWIW: I think these bugs were all caused by setuptools v72 dropping
support for the "test" command, so dh-python has fallen back to
distutils / other test plugins.

If you're trying to figure out how to fix the bug, look at the
implementation of test_suite in setup.py to see what magic it does for
test setup.

-------------------------------------------------------------------------------
[...]
changing mode of build/scripts-3.12/morfessor-segment from 644 to 755
changing mode of build/scripts-3.12/morfessor-evaluate from 644 to 755
   debian/rules execute_before_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
python3 setup.py test
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'test'
make[1]: *** [debian/rules:10: execute_before_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-08-28T02:48:35Z

-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/552766/

About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.

You can find the build task here:
https://debusine.debian.net/work-request/9743/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks,

Stefano



More information about the debian-science-maintainers mailing list