Source: nose Version: 1.3.7-13 Severity: serious Tags: ftbfs Justification: FTBFS User: debian-pyt...@lists.debian.org Usertags: setup.py-test
Dear maintainer, During a test rebuild for packages affected by setuptools 72, nose 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. ------------------------------------------------------------------------------- [...] ====================================================================== ERROR: test_setup_nosetests_command_works (test_commands.TestCommands.test_setup_nosetests_command_works) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nose/build.tests/functional_tests/test_commands.py", line 39, in test_setup_nosetests_command_works cmd.run() File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nose/build.tests/nose/commands.py", line 145, in run if self.distribution.tests_require: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Distribution' object has no attribute 'tests_require' -------------------- >> begin captured stdout << --------------------- /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nose/build.tests --------------------- >> end captured stdout << ---------------------- -------------------- >> begin captured logging << -------------------- root: DEBUG: No `packages` or `py_modules` configuration, performing automatic discovery. root: DEBUG: `explicit-layout` detected -- analysing {'issue191': '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nose/build.tests/functional_tests/support/issue191'} root: DEBUG: discovered packages -- ['issue191'] root: DEBUG: No `name` configuration, performing automatic discovery root: DEBUG: Single module/package detected, name: issue191 root: INFO: running egg_info root: INFO: creating issue191.egg-info root: INFO: writing issue191.egg-info/PKG-INFO root: INFO: writing dependency_links to issue191.egg-info/dependency_links.txt root: INFO: writing top-level names to issue191.egg-info/top_level.txt root: INFO: writing manifest file 'issue191.egg-info/SOURCES.txt' root: INFO: reading manifest file 'issue191.egg-info/SOURCES.txt' root: INFO: writing manifest file 'issue191.egg-info/SOURCES.txt' --------------------- >> end captured logging << --------------------- ---------------------------------------------------------------------- Ran 381 tests in 11.359s FAILED (SKIP=10, errors=1) E: pybuild pybuild:389: test: plugin custom failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nose/build.tests && python3.12 -m nose -v --with-doctest dh_auto_test: error: pybuild --test -i python{version} -p 3.12 --system=custom returned exit code 13 make[1]: *** [debian/rules:26: override_dh_auto_test] Error 25 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:19: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-08-28T03:06:04Z ------------------------------------------------------------------------------- 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/552799/ 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/9754/ 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