Source: mplcursors
Version: 0.4-1
Severity: important
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-matplotlib35

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64, using matplotlib 3.5 currently in experimental. This version
will soon be uploaded to unstable.

If you have questions about this, please contact Sandro Tosi
<mo...@debian.org>.

Relevant part (hopefully):
>  debian/rules binary
> dh binary --with python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:232: python3.9 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:232: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mplcursors/build/mplcursors
> copying lib/mplcursors/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mplcursors/build/mplcursors
> copying lib/mplcursors/_mplcursors.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mplcursors/build/mplcursors
> copying lib/mplcursors/_version.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mplcursors/build/mplcursors
> copying lib/mplcursors/_pick_info.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mplcursors/build/mplcursors
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:232: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mplcursors/build; python3.9 -m pytest 
> tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> collected 59 items
> 
> tests/test_mplcursors.py ..........................................FF... [ 
> 79%]
> ...........s                                                             
> [100%]
> 
> =================================== FAILURES 
> ===================================
> __________________________ test_highlight[Axes.plot] 
> ___________________________
> 
> ax = <AxesSubplot:>, plotter = <function Axes.plot at 0x7fd130fd8160>
> 
>     @pytest.mark.parametrize("plotter", [Axes.plot, Axes.scatter])
>     def test_highlight(ax, plotter):
>         plotter(ax, [0, 1], [0, 1])
>         ax.set(xlim=(-1, 2), ylim=(-1, 2))
>         cursor = mplcursors.cursor(highlight=True)
>         _process_event("__mouse_click__", ax, (0, 0), 1)
> >       assert ax.artists == cursor.selections[0].extras != []
> E       assert <Axes.ArtistList of 0 artists> == 
> [<matplotlib....7fd122bdcd00>]
> E         Right contains one more item: <matplotlib.lines.Line2D object at 
> 0x7fd122bdcd00>
> E         Use -v to get the full diff
> 
> tests/test_mplcursors.py:482: AssertionError
> _________________________ test_highlight[Axes.scatter] 
> _________________________
> 
> ax = <AxesSubplot:>, plotter = <function Axes.scatter at 0x7fd130e43040>
> 
>     @pytest.mark.parametrize("plotter", [Axes.plot, Axes.scatter])
>     def test_highlight(ax, plotter):
>         plotter(ax, [0, 1], [0, 1])
>         ax.set(xlim=(-1, 2), ylim=(-1, 2))
>         cursor = mplcursors.cursor(highlight=True)
>         _process_event("__mouse_click__", ax, (0, 0), 1)
> >       assert ax.artists == cursor.selections[0].extras != []
> E       assert <Axes.ArtistList of 0 artists> == 
> [<matplotlib....7fd122b47c70>]
> E         Right contains one more item: 
> <matplotlib.collections.PathCollection object at 0x7fd122b47c70>
> E         Use -v to get the full diff
> 
> tests/test_mplcursors.py:482: AssertionError
> =========================== short test summary info 
> ============================
> FAILED tests/test_mplcursors.py::test_highlight[Axes.plot] - assert 
> <Axes.Art...
> FAILED tests/test_mplcursors.py::test_highlight[Axes.scatter] - assert 
> <Axes....
> =================== 2 failed, 56 passed, 1 skipped in 10.28s 
> ===================
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mplcursors/build; python3.9 -m pytest 
> tests
> 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/http://qa-logs.debian.net/2021/11/numpy-matplotlib/matplotlib-exp/mplcursors_0.4-1_unstable_matplotlib-exp.log

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.

Reply via email to