Source: python-autopage
Version: 0.4.0-3
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, python-autopage
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.

-------------------------------------------------------------------------------
[...]
dh binary --buildsystem=python_distutils --with python3
   dh_testroot -O--buildsystem=python_distutils
   dh_prep -O--buildsystem=python_distutils
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make[1]: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
pkgos-dh_auto_install --no-py2 --in-tmp
+ PKGOS_IN_TMP=no
+ echo WARNING: --no-py2 is deprecated and always on.
WARNING: --no-py2 is deprecated and always on.
+ shift
+ PKGOS_IN_TMP=yes
+ shift
+ dpkg-parsechangelog -SSource
+ SRC_PKG_NAME=python-autopage
+ echo python-autopage
+ sed s/python-//
+ PY_MODULE_NAME=autopage
+ py3versions -vr
+ PYTHON3S=3.12
+ [ yes = yes ]
+ TARGET_DIR=tmp
+ pwd
+ python3.12 setup.py install --install-layout=deb --root 
/<<PKGBUILDDIR>>/debian/tmp
running install
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: 
SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        
********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html 
for details.
        
********************************************************************************

!!
  self.initialize_options()
running build
running build_py
creating build
creating build/lib
creating build/lib/autopage
copying autopage/argparse.py -> build/lib/autopage
copying autopage/__init__.py -> build/lib/autopage
creating build/lib/autopage/tests
copying autopage/tests/sinks.py -> build/lib/autopage/tests
copying autopage/tests/__init__.py -> build/lib/autopage/tests
copying autopage/tests/test_pager_settings.py -> build/lib/autopage/tests
copying autopage/tests/test_argparse.py -> build/lib/autopage/tests
copying autopage/tests/test_autopage.py -> build/lib/autopage/tests
copying autopage/tests/test_line_buffer_from_input.py -> 
build/lib/autopage/tests
running install_lib
creating /<<PKGBUILDDIR>>/debian/tmp
creating /<<PKGBUILDDIR>>/debian/tmp/usr
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages
creating /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage
copying build/lib/autopage/argparse.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage
copying build/lib/autopage/__init__.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage
creating 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests
copying build/lib/autopage/tests/sinks.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests
copying build/lib/autopage/tests/__init__.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests
copying build/lib/autopage/tests/test_pager_settings.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests
copying build/lib/autopage/tests/test_argparse.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests
copying build/lib/autopage/tests/test_autopage.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests
copying build/lib/autopage/tests/test_line_buffer_from_input.py -> 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/argparse.py 
to argparse.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/__init__.py 
to __init__.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests/sinks.py
 to sinks.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests/__init__.py
 to __init__.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests/test_pager_settings.py
 to test_pager_settings.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests/test_argparse.py
 to test_argparse.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests/test_autopage.py
 to test_autopage.cpython-312.pyc
byte-compiling 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage/tests/test_line_buffer_from_input.py
 to test_line_buffer_from_input.cpython-312.pyc
running install_egg_info
running egg_info
creating autopage.egg-info
writing autopage.egg-info/PKG-INFO
writing dependency_links to autopage.egg-info/dependency_links.txt
writing top-level names to autopage.egg-info/top_level.txt
writing manifest file 'autopage.egg-info/SOURCES.txt'
reading manifest file 'autopage.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'autopage.egg-info/SOURCES.txt'
Copying autopage.egg-info to 
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/autopage-0.4.0.egg-info
Skipping SOURCES.txt
running install_scripts
+ pwd
+ rm -rf /<<PKGBUILDDIR>>/debian/python*/usr/lib/python*/dist-packages/*.pth
+ pwd
+ rm -rf /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python*/dist-packages/*.pth
echo "No tests for now..."
No tests for now...
set -e ; for pyvers in 3.12; do \
        python$pyvers setup.py test ; \
done
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:20: override_dh_auto_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit 
status 2
--------------------------------------------------------------------------------
Build finished at 2024-08-28T05:05:33Z

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

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/552952/

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/9813/

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

Reply via email to