Package: src:magicgui Version: 0.9.1-2 Severity: serious Tags: ftbfs forky sid
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202512/ 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 cannot 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 add an affects on src:magicgui, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --with=python3 --with=numpy3 --buildsystem=pybuild --test-pytest dh_auto_clean -O--buildsystem=pybuild -O--test-pytest dh_autoreconf_clean -O--buildsystem=pybuild -O--test-pytest dh_clean -O--buildsystem=pybuild -O--test-pytest debian/rules binary dh binary --with=python3 --with=numpy3 --buildsystem=pybuild --test-pytest dh_update_autotools_config -O--buildsystem=pybuild -O--test-pytest dh_autoreconf -O--buildsystem=pybuild -O--test-pytest dh_auto_configure -O--buildsystem=pybuild -O--test-pytest dh_auto_build -O--buildsystem=pybuild -O--test-pytest I: pybuild plugin_pyproject:131: Building wheel for python3.14 with "build" module I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_magicgui * Building wheel... Successfully built magicgui-0.9.1-py3-none-any.whl I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.14 with "installer" module I: pybuild plugin_pyproject:131: Building wheel for python3.13 with "build" module I: pybuild base:317: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_magicgui * Building wheel... Successfully built magicgui-0.9.1-py3-none-any.whl I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.13 with "installer" module debian/rules override_dh_auto_test make[1]: Entering directory '/<<PKGBUILDDIR>>' for API in pyqt5 pyqt6 pyside6; do \ set -e; \ echo "################# $API TEST ##################"; \ PYTEST_QT_API=$API QT_API=$API dh_auto_test; \ done ################# pyqt5 TEST ################## I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_magicgui/build; python3.14 -m pytest -k 'not test_pushbutton_icon' ============================= test session starts ============================== platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 PyQt5 5.15.11 -- Qt runtime 5.15.17 -- Qt compiled 5.15.17 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_magicgui/build configfile: pyproject.toml testpaths: tests plugins: qt-4.4.0, xvfb-3.0.0, typeguard-4.4.4 collected 351 items / 2 deselected / 3 skipped / 349 selected tests/test_application.py . [ 0%] tests/test_backends.py s......... [ 3%] tests/test_container.py ............... [ 7%] tests/test_docs.py ss [ 8%] tests/test_factory.py .......... [ 10%] tests/test_gui_class.py ...... [ 12%] tests/test_magicgui.py .....F..........F..x......................F...... [ 26%] ...... [ 28%] tests/test_persistence.py ... [ 29%] tests/test_signature.py ...F [ 30%] tests/test_table.py ............................sss.......... [ 42%] tests/test_types.py .................. [ 47%] tests/test_ui_field.py s.ss....ss. [ 50%] tests/test_util.py ............ [ 53%] tests/test_widgets.py ......s.s..ss..s.ss..ss.sss.s..s...........s...... [ 68%] s.s.......s..s.......................................................... [ 88%] ....................................... [100%] =================================== FAILURES =================================== ____________________________ test_bind_out_of_order ____________________________ def test_bind_out_of_order(): """Test that binding a value before a non-default argument still gives message.""" @magicgui(a={"bind": 10}) def func(a, x): pass assert isinstance(func.a, widgets.EmptyWidget) with pytest.raises(TypeError) as e: func() assert "missing a required argument" in str(e) > assert "@magicgui(x={'bind': value})" in str(e) E assert "@magicgui(x={'bind': value})" in '<ExceptionInfo TypeError("missing a required argument: \'x\' in call to \'func(x: Annotated[inspect._empty, {\'enable...rue, \'visible\': False}], a: Annotated[inspect._empty, {\'enabled\': True, \'visible\': False}] = 10): ...") tblen=2>' E + where '<ExceptionInfo TypeError("missing a required argument: \'x\' in call to \'func(x: Annotated[inspect._empty, {\'enable...rue, \'visible\': False}], a: Annotated[inspect._empty, {\'enabled\': True, \'visible\': False}] = 10): ...") tblen=2>' = str(<ExceptionInfo TypeError("missing a required argument: 'x' in call to 'func(x: Annotated[inspect._empty, {'enabled': T...led': True, 'visible': False}], a: Annotated[inspect._empty, {'enabled': True, 'visible': False}] = 10): ...") tblen=2>) tests/test_magicgui.py:134: AssertionError _____________________________ test_signature_repr ______________________________ def test_signature_repr(): """Test that the gui makes a proper signature.""" def func(a: str = "string", b: int = 3, c: float = 7.1): return locals() magic_func = magicgui(func) # the STRING signature representation should be the same as the original function > assert str(inspect.signature(magic_func)) == > str(inspect.signature(func)) E assert '(a: Annotate...None}] = 7.1)' == "(a: str = 's... float = 7.1)" E E - (a: str = 'string', b: int = 3, c: float = 7.1) E + (a: Annotated[str, {'enabled': True, 'visible': False}] = 'string', b: Annotated[int, {'enabled': True, 'visible': False, 'min': 0, 'max': 999, 'step': None}] = 3, c: Annotated[float, {'enabled': True, 'visible': False, 'min': 0.0, 'max': 999.0, 'step': None}] = 7.1) tests/test_magicgui.py:317: AssertionError ______________________________ test_none_defaults ______________________________ def test_none_defaults(): """Make sure that an unannotated parameter with default=None is ok.""" assert widgets.create_widget(value=None, raise_on_unknown=False).value is None def func(arg=None): return 1 assert magicgui(func)() == 1 > assert str(magic_signature(func)) == str(magicgui(func).__signature__) E AssertionError: assert '(arg: Annota..., {}] = None)' == '(arg: Annota...lse}] = None)' E E - (arg: Annotated[inspect._empty, {'enabled': True, 'visible': False}] = None) E + (arg: Annotated[inspect._empty, {}] = None) tests/test_magicgui.py:774: AssertionError _________________________ test_signature_to_container __________________________ def test_signature_to_container(): """Test that a MagicSignature can make a container.""" sig = magic_signature(_sample_func, gui_options={"a": {"widget_type": "Slider"}}) container = sig.to_container() assert len(container) == 2 > assert repr(container) == "<Container (a: int = 0, b: str = 'hi')>" E assert "<Container (...se}] = 'hi')>" == "<Container (... str = 'hi')>" E E - <Container (a: int = 0, b: str = 'hi')> E + <Container (a: Annotated[int, {'enabled': True, 'visible': False, 'min': 0, 'max': 999, 'step': None, 'orientation': 'horizontal', 'readout': True}] = 0, b: Annotated[str, {'enabled': True, 'visible': False}] = 'hi')> tests/test_signature.py:43: AssertionError =========================== short test summary info ============================ FAILED tests/test_magicgui.py::test_bind_out_of_order - assert "@magicgui(x={... FAILED tests/test_magicgui.py::test_signature_repr - assert '(a: Annotate...N... FAILED tests/test_magicgui.py::test_none_defaults - AssertionError: assert '(... FAILED tests/test_signature.py::test_signature_to_container - assert "<Contai... ====== 4 failed, 314 passed, 33 skipped, 2 deselected, 1 xfailed in 4.34s ====== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_magicgui/build; python3.14 -m pytest -k 'not test_pushbutton_icon' I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_magicgui/build; python3.13 -m pytest -k 'not test_pushbutton_icon' ============================= test session starts ============================== platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 PyQt5 5.15.11 -- Qt runtime 5.15.17 -- Qt compiled 5.15.17 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_magicgui/build configfile: pyproject.toml testpaths: tests plugins: qt-4.4.0, xvfb-3.0.0, typeguard-4.4.4 collected 351 items / 2 deselected / 3 skipped / 349 selected tests/test_application.py . [ 0%] tests/test_backends.py s......... [ 3%] tests/test_container.py ............... [ 7%] tests/test_docs.py ss [ 8%] tests/test_factory.py .......... [ 10%] tests/test_gui_class.py ...... [ 12%] tests/test_magicgui.py ...................x............................. [ 26%] ...... [ 28%] tests/test_persistence.py ... [ 29%] tests/test_signature.py .... [ 30%] tests/test_table.py ............................sss.......... [ 42%] tests/test_types.py .................. [ 47%] tests/test_ui_field.py s.ss....ss. [ 50%] tests/test_util.py ............ [ 53%] tests/test_widgets.py ......s.s..ss..s.ss..ss.sss.s..s...........s...... [ 68%] s.s.......s..s.......................................................... [ 88%] ....................................... [100%] =========== 318 passed, 33 skipped, 2 deselected, 1 xfailed in 4.21s =========== dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 make[1]: *** [debian/rules:11: override_dh_auto_test] Error 25 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:8: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

