Package: src:python-argcomplete Version: 3.5.1-1 Severity: serious Tags: ftbfs
Dear maintainer: During a rebuild of all packages in unstable, your package failed to build: -------------------------------------------------------------------------------- [...] debian/rules binary dh binary --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild dh_auto_build -O--buildsystem=pybuild I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" module I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_argcomplete * Building wheel... running bdist_wheel running build running build_py creating build/lib/argcomplete copying argcomplete/completers.py -> build/lib/argcomplete [... snipped ...] - usage: test-package [-h] {arg} - test-package: error: argument arg: invalid choice: 'a' (choose from arg) ====================================================================== FAIL: test_continuation (__main__.TestZshGlobalExplicit.test_continuation) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1184, in test_continuation self.assertEqual(self.sh.run_command("prog basic f\t--"), "foo\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'f--' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'f--' (choose from foo, bar, baz) ====================================================================== FAIL: test_partial_completion (__main__.TestZshGlobalExplicit.test_partial_completion) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1168, in test_partial_completion self.assertEqual(self.sh.run_command("prog basic b\tr"), "bar\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'br' (choose from foo, bar, baz)\r\n" != 'bar\r\n' + bar - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'br' (choose from foo, bar, baz) ====================================================================== FAIL: test_python_completion (__main__.TestZshGlobalExplicit.test_python_completion) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1349, in test_python_completion self.assertEqual(self.sh.run_command("python3 ./prog basic f\t"), "foo\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz) ====================================================================== FAIL: test_python_filename_completion (__main__.TestZshGlobalExplicit.test_python_filename_completion) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1353, in test_python_filename_completion self.assertEqual(self.sh.run_command("python3 ./pro\tbasic f\t"), "foo\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz) ====================================================================== FAIL: test_python_module (__main__.TestZshGlobalExplicit.test_python_module) Test completing a module run with python -m. ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1379, in test_python_module self.assertEqual(self.sh.run_command("python3 -m package.prog basic f\t"), "foo\r\n") AssertionError: "usage: prog.py basic [-h] {foo,bar,baz}\r\nprog.py basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog.py basic [-h] {foo,bar,baz} - prog.py basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz) ====================================================================== FAIL: test_python_not_executable (__main__.TestZshGlobalExplicit.test_python_not_executable) Test completing a script that cannot be run directly. ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1369, in test_python_not_executable self.assertEqual(self.sh.run_command("python3 ./prog basic f\t"), "foo\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz) ====================================================================== FAIL: test_quotes (__main__.TestZshGlobalExplicit.test_quotes) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1219, in test_quotes self.assertEqual(self.sh.run_command("prog quote 1\t"), "1'1\r\n") AssertionError: 'usage: prog quote [-h] {1\'1,2"2}\r\nprog quote: error: argument arg: invalid choice: \'1\' (choose from 1\'1, 2"2)\r\n' != "1'1\r\n" + 1'1 - usage: prog quote [-h] {1'1,2"2} - prog quote: error: argument arg: invalid choice: '1' (choose from 1'1, 2"2) ====================================================================== FAIL: test_simple_completion (__main__.TestZshGlobalExplicit.test_simple_completion) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1165, in test_simple_completion self.assertEqual(self.sh.run_command("prog basic f\t"), "foo\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz) ====================================================================== FAIL: test_special_characters (__main__.TestZshGlobalExplicit.test_special_characters) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1194, in test_special_characters self.assertEqual(self.sh.run_command("prog spec d\tf"), "d$e$f\r\n") AssertionError: "usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\\y}\r\nprog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\\y)\r\n" != 'd$e$f\r\n' + d$e$f - usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\y} - prog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\y) ====================================================================== FAIL: test_special_characters_double_quoted (__main__.TestZshGlobalExplicit.test_special_characters_double_quoted) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1202, in test_special_characters_double_quoted self.assertEqual(self.sh.run_command('prog spec "d\tf"'), "d$e$f\r\n") AssertionError: "usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\\y}\r\nprog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\\y)\r\n" != 'd$e$f\r\n' + d$e$f - usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\y} - prog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\y) ====================================================================== FAIL: test_special_characters_single_quoted (__main__.TestZshGlobalExplicit.test_special_characters_single_quoted) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1199, in test_special_characters_single_quoted self.assertEqual(self.sh.run_command("prog spec 'd\tf'"), "d$e$f\r\n") AssertionError: "usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\\y}\r\nprog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\\y)\r\n" != 'd$e$f\r\n' + d$e$f - usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\y} - prog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\y) ====================================================================== FAIL: test_unquoted_space (__main__.TestZshGlobalExplicit.test_unquoted_space) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1177, in test_unquoted_space self.assertEqual(self.sh.run_command("prog space f\t"), "foo bar\r\n") AssertionError: "usage: prog space [-h] {foo bar,baz}\r\nprog space: error: argument arg: invalid choice: 'f' (choose from foo bar, baz)\r\n" != 'foo bar\r\n' + foo bar - usage: prog space [-h] {foo bar,baz} - prog space: error: argument arg: invalid choice: 'f' (choose from foo bar, baz) ====================================================================== FAIL: test_wordbreak_chars (__main__.TestZshGlobalExplicit.test_wordbreak_chars) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1231, in test_wordbreak_chars self.assertEqual(self.sh.run_command("prog break a\tc"), "a:b:c\r\n") AssertionError: "usage: prog break [-h] {a:b:c,a:b:d}\r\nprog break: error: argument arg: invalid choice: 'ac' (choose from a:b:c, a:b:d)\r\n" != 'a:b:c\r\n' + a:b:c - usage: prog break [-h] {a:b:c,a:b:d} - prog break: error: argument arg: invalid choice: 'ac' (choose from a:b:c, a:b:d) ====================================================================== FAIL: test_console_script_module (__main__.TestZshGlobalImplicit.test_console_script_module) Test completing a console_script for a module. ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1401, in test_console_script_module self._test_console_script() File "/<<PKGBUILDDIR>>/test/test.py", line 1397, in _test_console_script self.assertEqual(self.sh.run_command(command), "arg\r\n") AssertionError: "usage: test-module [-h] {arg}\r\ntest-module: error: argument arg: invalid choice: 'a' (choose from arg)\r\n" != 'arg\r\n' + arg - usage: test-module [-h] {arg} - test-module: error: argument arg: invalid choice: 'a' (choose from arg) ====================================================================== FAIL: test_console_script_module_wheel (__main__.TestZshGlobalImplicit.test_console_script_module_wheel) Test completing a console_script for a module from a wheel. ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1409, in test_console_script_module_wheel self._test_console_script(wheel=True) File "/<<PKGBUILDDIR>>/test/test.py", line 1397, in _test_console_script self.assertEqual(self.sh.run_command(command), "arg\r\n") AssertionError: "usage: test-module [-h] {arg}\r\ntest-module: error: argument arg: invalid choice: 'a' (choose from arg)\r\n" != 'arg\r\n' + arg - usage: test-module [-h] {arg} - test-module: error: argument arg: invalid choice: 'a' (choose from arg) ====================================================================== FAIL: test_console_script_package (__main__.TestZshGlobalImplicit.test_console_script_package) Test completing a console_script for a package. ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1405, in test_console_script_package self._test_console_script(package=True) File "/<<PKGBUILDDIR>>/test/test.py", line 1397, in _test_console_script self.assertEqual(self.sh.run_command(command), "arg\r\n") AssertionError: "usage: test-package [-h] {arg}\r\ntest-package: error: argument arg: invalid choice: 'a' (choose from arg)\r\n" != 'arg\r\n' + arg - usage: test-package [-h] {arg} - test-package: error: argument arg: invalid choice: 'a' (choose from arg) ====================================================================== FAIL: test_console_script_package_wheel (__main__.TestZshGlobalImplicit.test_console_script_package_wheel) Test completing a console_script for a package from a wheel. ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1413, in test_console_script_package_wheel self._test_console_script(package=True, wheel=True) File "/<<PKGBUILDDIR>>/test/test.py", line 1397, in _test_console_script self.assertEqual(self.sh.run_command(command), "arg\r\n") AssertionError: "usage: test-package [-h] {arg}\r\ntest-package: error: argument arg: invalid choice: 'a' (choose from arg)\r\n" != 'arg\r\n' + arg - usage: test-package [-h] {arg} - test-package: error: argument arg: invalid choice: 'a' (choose from arg) ====================================================================== FAIL: test_continuation (__main__.TestZshGlobalImplicit.test_continuation) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1184, in test_continuation self.assertEqual(self.sh.run_command("prog basic f\t--"), "foo\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'f--' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'f--' (choose from foo, bar, baz) ====================================================================== FAIL: test_partial_completion (__main__.TestZshGlobalImplicit.test_partial_completion) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1168, in test_partial_completion self.assertEqual(self.sh.run_command("prog basic b\tr"), "bar\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'br' (choose from foo, bar, baz)\r\n" != 'bar\r\n' + bar - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'br' (choose from foo, bar, baz) ====================================================================== FAIL: test_python_completion (__main__.TestZshGlobalImplicit.test_python_completion) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1349, in test_python_completion self.assertEqual(self.sh.run_command("python3 ./prog basic f\t"), "foo\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz) ====================================================================== FAIL: test_python_filename_completion (__main__.TestZshGlobalImplicit.test_python_filename_completion) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1353, in test_python_filename_completion self.assertEqual(self.sh.run_command("python3 ./pro\tbasic f\t"), "foo\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz) ====================================================================== FAIL: test_python_module (__main__.TestZshGlobalImplicit.test_python_module) Test completing a module run with python -m. ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1379, in test_python_module self.assertEqual(self.sh.run_command("python3 -m package.prog basic f\t"), "foo\r\n") AssertionError: "usage: prog.py basic [-h] {foo,bar,baz}\r\nprog.py basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog.py basic [-h] {foo,bar,baz} - prog.py basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz) ====================================================================== FAIL: test_python_not_executable (__main__.TestZshGlobalImplicit.test_python_not_executable) Test completing a script that cannot be run directly. ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1369, in test_python_not_executable self.assertEqual(self.sh.run_command("python3 ./prog basic f\t"), "foo\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz) ====================================================================== FAIL: test_quotes (__main__.TestZshGlobalImplicit.test_quotes) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1219, in test_quotes self.assertEqual(self.sh.run_command("prog quote 1\t"), "1'1\r\n") AssertionError: 'usage: prog quote [-h] {1\'1,2"2}\r\nprog quote: error: argument arg: invalid choice: \'1\' (choose from 1\'1, 2"2)\r\n' != "1'1\r\n" + 1'1 - usage: prog quote [-h] {1'1,2"2} - prog quote: error: argument arg: invalid choice: '1' (choose from 1'1, 2"2) ====================================================================== FAIL: test_simple_completion (__main__.TestZshGlobalImplicit.test_simple_completion) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1165, in test_simple_completion self.assertEqual(self.sh.run_command("prog basic f\t"), "foo\r\n") AssertionError: "usage: prog basic [-h] {foo,bar,baz}\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz)\r\n" != 'foo\r\n' + foo - usage: prog basic [-h] {foo,bar,baz} - prog basic: error: argument arg: invalid choice: 'f' (choose from foo, bar, baz) ====================================================================== FAIL: test_special_characters (__main__.TestZshGlobalImplicit.test_special_characters) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1194, in test_special_characters self.assertEqual(self.sh.run_command("prog spec d\tf"), "d$e$f\r\n") AssertionError: "usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\\y}\r\nprog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\\y)\r\n" != 'd$e$f\r\n' + d$e$f - usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\y} - prog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\y) ====================================================================== FAIL: test_special_characters_double_quoted (__main__.TestZshGlobalImplicit.test_special_characters_double_quoted) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1202, in test_special_characters_double_quoted self.assertEqual(self.sh.run_command('prog spec "d\tf"'), "d$e$f\r\n") AssertionError: "usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\\y}\r\nprog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\\y)\r\n" != 'd$e$f\r\n' + d$e$f - usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\y} - prog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\y) ====================================================================== FAIL: test_special_characters_single_quoted (__main__.TestZshGlobalImplicit.test_special_characters_single_quoted) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1199, in test_special_characters_single_quoted self.assertEqual(self.sh.run_command("prog spec 'd\tf'"), "d$e$f\r\n") AssertionError: "usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\\y}\r\nprog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\\y)\r\n" != 'd$e$f\r\n' + d$e$f - usage: prog spec [-h] {d$e$f,d$e$g,x!x,y\y} - prog spec: error: argument arg: invalid choice: 'df' (choose from d$e$f, d$e$g, x!x, y\y) ====================================================================== FAIL: test_unquoted_space (__main__.TestZshGlobalImplicit.test_unquoted_space) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1177, in test_unquoted_space self.assertEqual(self.sh.run_command("prog space f\t"), "foo bar\r\n") AssertionError: "usage: prog space [-h] {foo bar,baz}\r\nprog space: error: argument arg: invalid choice: 'f' (choose from foo bar, baz)\r\n" != 'foo bar\r\n' + foo bar - usage: prog space [-h] {foo bar,baz} - prog space: error: argument arg: invalid choice: 'f' (choose from foo bar, baz) ====================================================================== FAIL: test_wordbreak_chars (__main__.TestZshGlobalImplicit.test_wordbreak_chars) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/test/test.py", line 1231, in test_wordbreak_chars self.assertEqual(self.sh.run_command("prog break a\tc"), "a:b:c\r\n") AssertionError: "usage: prog break [-h] {a:b:c,a:b:d}\r\nprog break: error: argument arg: invalid choice: 'ac' (choose from a:b:c, a:b:d)\r\n" != 'a:b:c\r\n' + a:b:c - usage: prog break [-h] {a:b:c,a:b:d} - prog break: error: argument arg: invalid choice: 'ac' (choose from a:b:c, a:b:d) ---------------------------------------------------------------------- Ran 189 tests in 92.459s FAILED (failures=83, errors=69, skipped=12, expected failures=5) E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_argcomplete/build; PATH={home_dir}/scripts:$PATH PYTHONPATH={build_dir} {interpreter} {dir}/test/test.py -v dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.12" returned exit code 13 make: *** [debian/rules:18: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- The above is just how the build ends and not necessarily the most relevant part. If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202411/ About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages. If you could not reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. 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.