On Sat, 31 Aug 2024 21:17:05 +0200 Stefano Rivera <stefa...@debian.org> wrote:
> Source: gdebi
> Version: 0.9.5.7+nmu9
> 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, gdebi
> 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.
> 
> -------------------------------------------------------------------------------
> [...]
>    debian/rules override_dh_auto_test
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> xvfb-run -a python3.12 setup.py test
> /<<PKGBUILDDIR>>/setup.py:15: SyntaxWarning: invalid escape sequence '\('
>   match = compile('.*\((.*)\).*').match(head)
> /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:268: 
> UserWarning: Unknown distribution option: 'test_suite'
>   warnings.warn(msg)
> 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:14: override_dh_auto_test] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:7: build] Error 2
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
> --------------------------------------------------------------------------------
> Build finished at 2024-08-28T00:36:39Z
> 
> -------------------------------------------------------------------------------
> 

I intend to NMU this shortly (with a 10 day delay), changing it to using
autopkgtest-pkg-pybuild for testing, see the attached debdiff. The
patch also removes naming Exceptions as e, and then not using the e
variable anywhere, which is needed to actually make the test pass.

Just let me know if you have any objections.

best
/Andreas
gus...@debian.org
mailingli...@gusnan.se

Attachment: gdebi_nmu10.debdiff
Description: Binary data

Reply via email to