Source: mplcursors
Version: 0.5.2-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20240319 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
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:305: python3.12 setup.py config
> /usr/lib/python3/dist-packages/setuptools/__init__.py:84:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> dist.fetch_build_eggs(dist.setup_requires)
> WARNING: The wheel package is not available.
> WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml
> does not contain a tool.setuptools_scm section'
> running config
> I: pybuild base:305: python3.11 setup.py config
> /usr/lib/python3/dist-packages/setuptools/__init__.py:84:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> dist.fetch_build_eggs(dist.setup_requires)
> WARNING: The wheel package is not available.
> WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml
> does not contain a tool.setuptools_scm section'
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:305: /usr/bin/python3.12 setup.py build
> /usr/lib/python3/dist-packages/setuptools/__init__.py:84:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> dist.fetch_build_eggs(dist.setup_requires)
> WARNING: The wheel package is not available.
> WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml
> does not contain a tool.setuptools_scm section'
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/mplcursors
> copying lib/mplcursors/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/mplcursors
> copying lib/mplcursors/_version.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/mplcursors
> copying lib/mplcursors/_pick_info.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/mplcursors
> copying lib/mplcursors/_mplcursors.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/mplcursors
> I: pybuild base:305: /usr/bin/python3 setup.py build
> /usr/lib/python3/dist-packages/setuptools/__init__.py:84:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> dist.fetch_build_eggs(dist.setup_requires)
> WARNING: The wheel package is not available.
> WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml
> does not contain a tool.setuptools_scm section'
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/mplcursors
> copying lib/mplcursors/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/mplcursors
> copying lib/mplcursors/_version.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/mplcursors
> copying lib/mplcursors/_pick_info.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/mplcursors
> copying lib/mplcursors/_mplcursors.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/mplcursors
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild pybuild:308: cp -rv /<<PKGBUILDDIR>>/examples
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples
> '/<<PKGBUILDDIR>>/examples' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples'
> '/<<PKGBUILDDIR>>/examples/README.txt' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/README.txt'
> '/<<PKGBUILDDIR>>/examples/artist_labels.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/artist_labels.py'
> '/<<PKGBUILDDIR>>/examples/bar.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/bar.py'
> '/<<PKGBUILDDIR>>/examples/basic.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/basic.py'
> '/<<PKGBUILDDIR>>/examples/change_popup_color.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/change_popup_color.py'
> '/<<PKGBUILDDIR>>/examples/contour.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/contour.py'
> '/<<PKGBUILDDIR>>/examples/dataframe.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/dataframe.py'
> '/<<PKGBUILDDIR>>/examples/date.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/date.py'
> '/<<PKGBUILDDIR>>/examples/highlight.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/highlight.py'
> '/<<PKGBUILDDIR>>/examples/hover.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/hover.py'
> '/<<PKGBUILDDIR>>/examples/image.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/image.py'
> '/<<PKGBUILDDIR>>/examples/keyboard_shortcuts.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/keyboard_shortcuts.py'
> '/<<PKGBUILDDIR>>/examples/labeled_points.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/labeled_points.py'
> '/<<PKGBUILDDIR>>/examples/nondraggable.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/nondraggable.py'
> '/<<PKGBUILDDIR>>/examples/paired_highlight.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/paired_highlight.py'
> '/<<PKGBUILDDIR>>/examples/scatter.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/scatter.py'
> '/<<PKGBUILDDIR>>/examples/step.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build/examples/step.py'
> I: pybuild base:305: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build; python3.12 -m
> pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> collected 73 items
>
> tests/test_mplcursors.py .................F............FFF.............. [
> 64%]
> ..........................
> [100%]
>
> =================================== FAILURES
> ===================================
> _____________________________ test_repeated_point
> ______________________________
>
> ax = <AxesSubplot: >
>
> def test_repeated_point(ax):
> ax.plot([0, 1, 1, 2], [0, 1, 1, 2])
> cursor = mplcursors.cursor()
> > with pytest.warns(None) as record:
>
> tests/test_mplcursors.py:247:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = WarningsChecker(record=True), expected_warning = None, match_expr =
> None
>
> def __init__(
> self,
> expected_warning: Union[Type[Warning], Tuple[Type[Warning], ...]] =
> Warning,
> match_expr: Optional[Union[str, Pattern[str]]] = None,
> *,
> _ispytest: bool = False,
> ) -> None:
> check_ispytest(_ispytest)
> super().__init__(_ispytest=True)
>
> msg = "exceptions must be derived from Warning, not %s"
> if isinstance(expected_warning, tuple):
> for exc in expected_warning:
> if not issubclass(exc, Warning):
> raise TypeError(msg % type(exc))
> expected_warning_tup = expected_warning
> elif isinstance(expected_warning, type) and issubclass(
> expected_warning, Warning
> ):
> expected_warning_tup = (expected_warning,)
> else:
> > raise TypeError(msg % type(expected_warning))
> E TypeError: exceptions must be derived from Warning, not <class
> 'NoneType'>
>
> /usr/lib/python3/dist-packages/_pytest/recwarn.py:285: TypeError
> __________________________________ test_stem
> ___________________________________
>
> ax = <AxesSubplot: >
>
> def test_stem(ax):
> > with pytest.warns(None): # stem use_line_collection API change.
>
> tests/test_mplcursors.py:390:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = WarningsChecker(record=True), expected_warning = None, match_expr =
> None
>
> def __init__(
> self,
> expected_warning: Union[Type[Warning], Tuple[Type[Warning], ...]] =
> Warning,
> match_expr: Optional[Union[str, Pattern[str]]] = None,
> *,
> _ispytest: bool = False,
> ) -> None:
> check_ispytest(_ispytest)
> super().__init__(_ispytest=True)
>
> msg = "exceptions must be derived from Warning, not %s"
> if isinstance(expected_warning, tuple):
> for exc in expected_warning:
> if not issubclass(exc, Warning):
> raise TypeError(msg % type(exc))
> expected_warning_tup = expected_warning
> elif isinstance(expected_warning, type) and issubclass(
> expected_warning, Warning
> ):
> expected_warning_tup = (expected_warning,)
> else:
> > raise TypeError(msg % type(expected_warning))
> E TypeError: exceptions must be derived from Warning, not <class
> 'NoneType'>
>
> /usr/lib/python3/dist-packages/_pytest/recwarn.py:285: TypeError
> ______________________ test_misc_artists[<lambda>-False]
> _______________________
>
> ax = <AxesSubplot: >, plotter = <function <lambda> at 0x7f4f4542bf60>
> warns = False
>
> @pytest.mark.parametrize(
> "plotter,warns",
> [(lambda ax: ax.text(.5, .5, "foo"), False),
> (lambda ax: ax.fill_between([0, 1], [0, 1]), True)])
> def test_misc_artists(ax, plotter, warns):
> plotter(ax)
> cursor = mplcursors.cursor()
> > with pytest.warns(None) as record:
>
> tests/test_mplcursors.py:409:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = WarningsChecker(record=True), expected_warning = None, match_expr =
> None
>
> def __init__(
> self,
> expected_warning: Union[Type[Warning], Tuple[Type[Warning], ...]] =
> Warning,
> match_expr: Optional[Union[str, Pattern[str]]] = None,
> *,
> _ispytest: bool = False,
> ) -> None:
> check_ispytest(_ispytest)
> super().__init__(_ispytest=True)
>
> msg = "exceptions must be derived from Warning, not %s"
> if isinstance(expected_warning, tuple):
> for exc in expected_warning:
> if not issubclass(exc, Warning):
> raise TypeError(msg % type(exc))
> expected_warning_tup = expected_warning
> elif isinstance(expected_warning, type) and issubclass(
> expected_warning, Warning
> ):
> expected_warning_tup = (expected_warning,)
> else:
> > raise TypeError(msg % type(expected_warning))
> E TypeError: exceptions must be derived from Warning, not <class
> 'NoneType'>
>
> /usr/lib/python3/dist-packages/_pytest/recwarn.py:285: TypeError
> _______________________ test_misc_artists[<lambda>-True]
> _______________________
>
> ax = <AxesSubplot: >, plotter = <function <lambda> at 0x7f4f4541c040>
> warns = True
>
> @pytest.mark.parametrize(
> "plotter,warns",
> [(lambda ax: ax.text(.5, .5, "foo"), False),
> (lambda ax: ax.fill_between([0, 1], [0, 1]), True)])
> def test_misc_artists(ax, plotter, warns):
> plotter(ax)
> cursor = mplcursors.cursor()
> > with pytest.warns(None) as record:
>
> tests/test_mplcursors.py:409:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = WarningsChecker(record=True), expected_warning = None, match_expr =
> None
>
> def __init__(
> self,
> expected_warning: Union[Type[Warning], Tuple[Type[Warning], ...]] =
> Warning,
> match_expr: Optional[Union[str, Pattern[str]]] = None,
> *,
> _ispytest: bool = False,
> ) -> None:
> check_ispytest(_ispytest)
> super().__init__(_ispytest=True)
>
> msg = "exceptions must be derived from Warning, not %s"
> if isinstance(expected_warning, tuple):
> for exc in expected_warning:
> if not issubclass(exc, Warning):
> raise TypeError(msg % type(exc))
> expected_warning_tup = expected_warning
> elif isinstance(expected_warning, type) and issubclass(
> expected_warning, Warning
> ):
> expected_warning_tup = (expected_warning,)
> else:
> > raise TypeError(msg % type(expected_warning))
> E TypeError: exceptions must be derived from Warning, not <class
> 'NoneType'>
>
> /usr/lib/python3/dist-packages/_pytest/recwarn.py:285: TypeError
> =========================== short test summary info
> ============================
> FAILED tests/test_mplcursors.py::test_repeated_point - TypeError: exceptions
> ...
> FAILED tests/test_mplcursors.py::test_stem - TypeError: exceptions must be
> de...
> FAILED tests/test_mplcursors.py::test_misc_artists[<lambda>-False] -
> TypeErro...
> FAILED tests/test_mplcursors.py::test_misc_artists[<lambda>-True] -
> TypeError...
> ======================== 4 failed, 69 passed in 21.87s
> =========================
> E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_mplcursors/build; python3.12 -m
> pytest tests
> I: pybuild pybuild:308: cp -rv /<<PKGBUILDDIR>>/examples
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples
> '/<<PKGBUILDDIR>>/examples' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples'
> '/<<PKGBUILDDIR>>/examples/README.txt' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/README.txt'
> '/<<PKGBUILDDIR>>/examples/artist_labels.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/artist_labels.py'
> '/<<PKGBUILDDIR>>/examples/bar.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/bar.py'
> '/<<PKGBUILDDIR>>/examples/basic.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/basic.py'
> '/<<PKGBUILDDIR>>/examples/change_popup_color.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/change_popup_color.py'
> '/<<PKGBUILDDIR>>/examples/contour.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/contour.py'
> '/<<PKGBUILDDIR>>/examples/dataframe.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/dataframe.py'
> '/<<PKGBUILDDIR>>/examples/date.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/date.py'
> '/<<PKGBUILDDIR>>/examples/highlight.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/highlight.py'
> '/<<PKGBUILDDIR>>/examples/hover.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/hover.py'
> '/<<PKGBUILDDIR>>/examples/image.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/image.py'
> '/<<PKGBUILDDIR>>/examples/keyboard_shortcuts.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/keyboard_shortcuts.py'
> '/<<PKGBUILDDIR>>/examples/labeled_points.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/labeled_points.py'
> '/<<PKGBUILDDIR>>/examples/nondraggable.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/nondraggable.py'
> '/<<PKGBUILDDIR>>/examples/paired_highlight.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/paired_highlight.py'
> '/<<PKGBUILDDIR>>/examples/scatter.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/scatter.py'
> '/<<PKGBUILDDIR>>/examples/step.py' ->
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build/examples/step.py'
> I: pybuild base:305: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build; python3.11 -m
> pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.8, pytest-8.1.1, pluggy-1.4.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> collected 73 items
>
> tests/test_mplcursors.py .................F............FFF.............. [
> 64%]
> ..........................
> [100%]
>
> =================================== FAILURES
> ===================================
> _____________________________ test_repeated_point
> ______________________________
>
> ax = <AxesSubplot: >
>
> def test_repeated_point(ax):
> ax.plot([0, 1, 1, 2], [0, 1, 1, 2])
> cursor = mplcursors.cursor()
> > with pytest.warns(None) as record:
>
> tests/test_mplcursors.py:247:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = WarningsChecker(record=True), expected_warning = None, match_expr =
> None
>
> def __init__(
> self,
> expected_warning: Union[Type[Warning], Tuple[Type[Warning], ...]] =
> Warning,
> match_expr: Optional[Union[str, Pattern[str]]] = None,
> *,
> _ispytest: bool = False,
> ) -> None:
> check_ispytest(_ispytest)
> super().__init__(_ispytest=True)
>
> msg = "exceptions must be derived from Warning, not %s"
> if isinstance(expected_warning, tuple):
> for exc in expected_warning:
> if not issubclass(exc, Warning):
> raise TypeError(msg % type(exc))
> expected_warning_tup = expected_warning
> elif isinstance(expected_warning, type) and issubclass(
> expected_warning, Warning
> ):
> expected_warning_tup = (expected_warning,)
> else:
> > raise TypeError(msg % type(expected_warning))
> E TypeError: exceptions must be derived from Warning, not <class
> 'NoneType'>
>
> /usr/lib/python3/dist-packages/_pytest/recwarn.py:285: TypeError
> __________________________________ test_stem
> ___________________________________
>
> ax = <AxesSubplot: >
>
> def test_stem(ax):
> > with pytest.warns(None): # stem use_line_collection API change.
>
> tests/test_mplcursors.py:390:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = WarningsChecker(record=True), expected_warning = None, match_expr =
> None
>
> def __init__(
> self,
> expected_warning: Union[Type[Warning], Tuple[Type[Warning], ...]] =
> Warning,
> match_expr: Optional[Union[str, Pattern[str]]] = None,
> *,
> _ispytest: bool = False,
> ) -> None:
> check_ispytest(_ispytest)
> super().__init__(_ispytest=True)
>
> msg = "exceptions must be derived from Warning, not %s"
> if isinstance(expected_warning, tuple):
> for exc in expected_warning:
> if not issubclass(exc, Warning):
> raise TypeError(msg % type(exc))
> expected_warning_tup = expected_warning
> elif isinstance(expected_warning, type) and issubclass(
> expected_warning, Warning
> ):
> expected_warning_tup = (expected_warning,)
> else:
> > raise TypeError(msg % type(expected_warning))
> E TypeError: exceptions must be derived from Warning, not <class
> 'NoneType'>
>
> /usr/lib/python3/dist-packages/_pytest/recwarn.py:285: TypeError
> ______________________ test_misc_artists[<lambda>-False]
> _______________________
>
> ax = <AxesSubplot: >, plotter = <function <lambda> at 0x7ff110d832e0>
> warns = False
>
> @pytest.mark.parametrize(
> "plotter,warns",
> [(lambda ax: ax.text(.5, .5, "foo"), False),
> (lambda ax: ax.fill_between([0, 1], [0, 1]), True)])
> def test_misc_artists(ax, plotter, warns):
> plotter(ax)
> cursor = mplcursors.cursor()
> > with pytest.warns(None) as record:
>
> tests/test_mplcursors.py:409:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = WarningsChecker(record=True), expected_warning = None, match_expr =
> None
>
> def __init__(
> self,
> expected_warning: Union[Type[Warning], Tuple[Type[Warning], ...]] =
> Warning,
> match_expr: Optional[Union[str, Pattern[str]]] = None,
> *,
> _ispytest: bool = False,
> ) -> None:
> check_ispytest(_ispytest)
> super().__init__(_ispytest=True)
>
> msg = "exceptions must be derived from Warning, not %s"
> if isinstance(expected_warning, tuple):
> for exc in expected_warning:
> if not issubclass(exc, Warning):
> raise TypeError(msg % type(exc))
> expected_warning_tup = expected_warning
> elif isinstance(expected_warning, type) and issubclass(
> expected_warning, Warning
> ):
> expected_warning_tup = (expected_warning,)
> else:
> > raise TypeError(msg % type(expected_warning))
> E TypeError: exceptions must be derived from Warning, not <class
> 'NoneType'>
>
> /usr/lib/python3/dist-packages/_pytest/recwarn.py:285: TypeError
> _______________________ test_misc_artists[<lambda>-True]
> _______________________
>
> ax = <AxesSubplot: >, plotter = <function <lambda> at 0x7ff110d83380>
> warns = True
>
> @pytest.mark.parametrize(
> "plotter,warns",
> [(lambda ax: ax.text(.5, .5, "foo"), False),
> (lambda ax: ax.fill_between([0, 1], [0, 1]), True)])
> def test_misc_artists(ax, plotter, warns):
> plotter(ax)
> cursor = mplcursors.cursor()
> > with pytest.warns(None) as record:
>
> tests/test_mplcursors.py:409:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = WarningsChecker(record=True), expected_warning = None, match_expr =
> None
>
> def __init__(
> self,
> expected_warning: Union[Type[Warning], Tuple[Type[Warning], ...]] =
> Warning,
> match_expr: Optional[Union[str, Pattern[str]]] = None,
> *,
> _ispytest: bool = False,
> ) -> None:
> check_ispytest(_ispytest)
> super().__init__(_ispytest=True)
>
> msg = "exceptions must be derived from Warning, not %s"
> if isinstance(expected_warning, tuple):
> for exc in expected_warning:
> if not issubclass(exc, Warning):
> raise TypeError(msg % type(exc))
> expected_warning_tup = expected_warning
> elif isinstance(expected_warning, type) and issubclass(
> expected_warning, Warning
> ):
> expected_warning_tup = (expected_warning,)
> else:
> > raise TypeError(msg % type(expected_warning))
> E TypeError: exceptions must be derived from Warning, not <class
> 'NoneType'>
>
> /usr/lib/python3/dist-packages/_pytest/recwarn.py:285: TypeError
> =========================== short test summary info
> ============================
> FAILED tests/test_mplcursors.py::test_repeated_point - TypeError: exceptions
> ...
> FAILED tests/test_mplcursors.py::test_stem - TypeError: exceptions must be
> de...
> FAILED tests/test_mplcursors.py::test_misc_artists[<lambda>-False] -
> TypeErro...
> FAILED tests/test_mplcursors.py::test_misc_artists[<lambda>-True] -
> TypeError...
> ======================== 4 failed, 69 passed in 22.47s
> =========================
> E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mplcursors/build; python3.11 -m
> pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12
> 3.11" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2024/03/19/mplcursors_0.5.2-3_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240319;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240319&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results
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 mark 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.