Source: python-argh
Version: 0.26.2-1.1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20211023 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules build
> dh build --with python3 --buildsystem=pybuild
> dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> dh_auto_configure: warning: Compatibility levels before 10 are deprecated
> (level 9 in use)
> I: pybuild base:232: python3.9 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> dh_auto_build: warning: Compatibility levels before 10 are deprecated (level
> 9 in use)
> I: pybuild base:232: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/decorators.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/dispatching.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/helpers.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/completion.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/compat.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/io.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/constants.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/exceptions.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/interaction.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/assembling.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> copying argh/utils.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build/argh
> dh_auto_test -O--buildsystem=pybuild
> dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 9
> in use)
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build;
> python3.9 -m pytest test
> ============================= test session starts
> ==============================
> platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 81 items
>
> test/test_assembling.py .....ss......... [
> 19%]
> test/test_compat.py . [
> 20%]
> test/test_decorators.py ...... [
> 28%]
> test/test_dispatching.py .. [
> 30%]
> test/test_integration.py x.......xxx.............F.....F................ [
> 88%]
> [
> 88%]
> test/test_interaction.py ... [
> 92%]
> test/test_regressions.py ......
> [100%]
>
> =================================== FAILURES
> ===================================
> _____________________________ test_invalid_choice
> ______________________________
>
> def test_invalid_choice():
> def cmd(args):
> return 1
>
> # root level command
>
> p = DebugArghParser()
> p.add_commands([cmd])
>
> > assert run(p, 'bar', exit=True).startswith('invalid choice')
> E assert False
> E + where False = <built-in method startswith of str object at
> 0x7f1c60cbee30>('invalid choice')
> E + where <built-in method startswith of str object at
> 0x7f1c60cbee30> = "argument {cmd}: invalid choice: 'bar' (choose from
> 'cmd')".startswith
> E + where "argument {cmd}: invalid choice: 'bar' (choose from
> 'cmd')" = run(DebugArghParser(prog='__main__.py', usage=None,
> description=None, formatter_class=<class 'argh.constants.CustomFormatter'>,
> conflict_handler='error', add_help=True), 'bar', exit=True)
>
> test/test_integration.py:380: AssertionError
> ____________________________ test_explicit_cmd_name
> ____________________________
>
> def test_explicit_cmd_name():
>
> @argh.named('new-name')
> def orig_name():
> return 'ok'
>
> p = DebugArghParser()
> p.add_commands([orig_name])
> > assert run(p, 'orig-name', exit=True).startswith('invalid choice')
> E assert False
> E + where False = <built-in method startswith of str object at
> 0x7f1c60908eb0>('invalid choice')
> E + where <built-in method startswith of str object at
> 0x7f1c60908eb0> = "argument {new-name}: invalid choice: 'orig-name' (choose
> from 'new-name')".startswith
> E + where "argument {new-name}: invalid choice: 'orig-name'
> (choose from 'new-name')" = run(DebugArghParser(prog='__main__.py',
> usage=None, description=None, formatter_class=<class
> 'argh.constants.CustomFormatter'>, conflict_handler='error', add_help=True),
> 'orig-name', exit=True)
>
> test/test_integration.py:514: AssertionError
> =========================== short test summary info
> ============================
> FAILED test/test_integration.py::test_invalid_choice - assert False
> FAILED test/test_integration.py::test_explicit_cmd_name - assert False
> ============== 2 failed, 73 passed, 2 skipped, 4 xfailed in 0.32s
> ==============
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_argh/build; python3.9 -m pytest test
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2021/10/23/python-argh_0.26.2-1.1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.