[Debian-astro-maintainers] Bug#1058425: pytest-mpl: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13
Lucas Nussbaum
lucas at debian.org
Tue Dec 12 08:20:11 GMT 2023
Source: pytest-mpl
Version: 0.16.1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20231212 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:310: python3.12 setup.py config
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
>
> ********************************************************************************
> The license_file parameter is deprecated, use license_files instead.
>
> This deprecation is overdue, please update your project and remove deprecated
> calls to avoid build errors in the future.
>
> See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
> ********************************************************************************
>
> !!
> parsed = self.parsers.get(option_name, lambda x: x)(value)
> /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'use_scm_version'
> warnings.warn(msg)
> running config
> I: pybuild base:310: python3.11 setup.py config
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
>
> ********************************************************************************
> The license_file parameter is deprecated, use license_files instead.
>
> This deprecation is overdue, please update your project and remove deprecated
> calls to avoid build errors in the future.
>
> See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
> ********************************************************************************
>
> !!
> parsed = self.parsers.get(option_name, lambda x: x)(value)
> /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'use_scm_version'
> warnings.warn(msg)
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:310: /usr/bin/python3.12 setup.py build
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
>
> ********************************************************************************
> The license_file parameter is deprecated, use license_files instead.
>
> This deprecation is overdue, please update your project and remove deprecated
> calls to avoid build errors in the future.
>
> See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
> ********************************************************************************
>
> !!
> parsed = self.parsers.get(option_name, lambda x: x)(value)
> /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'use_scm_version'
> warnings.warn(msg)
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-mpl/build/pytest_mpl
> copying pytest_mpl/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-mpl/build/pytest_mpl
> copying pytest_mpl/plugin.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-mpl/build/pytest_mpl
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-mpl/build/pytest_mpl/summary
> copying pytest_mpl/summary/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-mpl/build/pytest_mpl/summary
> copying pytest_mpl/summary/html.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-mpl/build/pytest_mpl/summary
> running egg_info
> creating pytest_mpl.egg-info
> writing pytest_mpl.egg-info/PKG-INFO
> writing dependency_links to pytest_mpl.egg-info/dependency_links.txt
> writing entry points to pytest_mpl.egg-info/entry_points.txt
> writing requirements to pytest_mpl.egg-info/requires.txt
> writing top-level names to pytest_mpl.egg-info/top_level.txt
> writing manifest file 'pytest_mpl.egg-info/SOURCES.txt'
> reading manifest file 'pytest_mpl.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'pytest_mpl.egg-info/SOURCES.txt'
> I: pybuild base:310: /usr/bin/python3 setup.py build
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
>
> ********************************************************************************
> The license_file parameter is deprecated, use license_files instead.
>
> This deprecation is overdue, please update your project and remove deprecated
> calls to avoid build errors in the future.
>
> See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
> ********************************************************************************
>
> !!
> parsed = self.parsers.get(option_name, lambda x: x)(value)
> /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'use_scm_version'
> warnings.warn(msg)
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-mpl/build/pytest_mpl
> copying pytest_mpl/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-mpl/build/pytest_mpl
> copying pytest_mpl/plugin.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-mpl/build/pytest_mpl
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-mpl/build/pytest_mpl/summary
> copying pytest_mpl/summary/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-mpl/build/pytest_mpl/summary
> copying pytest_mpl/summary/html.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-mpl/build/pytest_mpl/summary
> running egg_info
> writing pytest_mpl.egg-info/PKG-INFO
> writing dependency_links to pytest_mpl.egg-info/dependency_links.txt
> writing entry points to pytest_mpl.egg-info/entry_points.txt
> writing requirements to pytest_mpl.egg-info/requires.txt
> writing top-level names to pytest_mpl.egg-info/top_level.txt
> reading manifest file 'pytest_mpl.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'pytest_mpl.egg-info/SOURCES.txt'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-mpl/build; python3.12 -m pytest tests
> ============================= test session starts ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> collected 15 items / 1 error
>
> ==================================== ERRORS ====================================
> _ ERROR collecting .pybuild/cpython3_3.12_pytest-mpl/build/tests/test_pytest_mpl.py _
> /usr/lib/python3/dist-packages/_pytest/runner.py:341: in from_call
> result: Optional[TResult] = func()
> /usr/lib/python3/dist-packages/_pytest/runner.py:372: in <lambda>
> call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
> /usr/lib/python3/dist-packages/_pytest/python.py:531: in collect
> self._inject_setup_module_fixture()
> /usr/lib/python3/dist-packages/_pytest/python.py:545: in _inject_setup_module_fixture
> self.obj, ("setUpModule", "setup_module")
> /usr/lib/python3/dist-packages/_pytest/python.py:310: in obj
> self._obj = obj = self._getobj()
> /usr/lib/python3/dist-packages/_pytest/python.py:528: in _getobj
> return self._importtestmodule()
> /usr/lib/python3/dist-packages/_pytest/python.py:617: in _importtestmodule
> mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
> /usr/lib/python3/dist-packages/_pytest/pathlib.py:567: in import_path
> importlib.import_module(module_name)
> /usr/lib/python3.12/importlib/__init__.py:90: in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1387: in _gcd_import
> ???
> <frozen importlib._bootstrap>:1360: in _find_and_load
> ???
> <frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
> ???
> <frozen importlib._bootstrap>:935: in _load_unlocked
> ???
> /usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:186: in exec_module
> exec(co, module.__dict__)
> tests/test_pytest_mpl.py:10: in <module>
> import matplotlib.pyplot as plt
> /usr/lib/python3/dist-packages/matplotlib/pyplot.py:60: in <module>
> from matplotlib.figure import Figure, FigureBase, figaspect
> /usr/lib/python3/dist-packages/matplotlib/figure.py:26: in <module>
> from matplotlib import _blocking_input, backend_bases, _docstring, projections
> /usr/lib/python3/dist-packages/matplotlib/projections/__init__.py:55: in <module>
> from .. import axes, _docstring
> /usr/lib/python3/dist-packages/matplotlib/axes/__init__.py:1: in <module>
> from ._subplots import *
> /usr/lib/python3/dist-packages/matplotlib/axes/_subplots.py:3: in <module>
> from matplotlib.axes._axes import Axes
> /usr/lib/python3/dist-packages/matplotlib/axes/_axes.py:11: in <module>
> import matplotlib.category # Register category unit converter as side-effect.
> /usr/lib/python3/dist-packages/matplotlib/category.py:14: in <module>
> import dateutil.parser
> /usr/lib/python3/dist-packages/dateutil/parser/__init__.py:2: in <module>
> from ._parser import parse, parser, parserinfo, ParserError
> /usr/lib/python3/dist-packages/dateutil/parser/_parser.py:50: in <module>
> from .. import tz
> /usr/lib/python3/dist-packages/dateutil/tz/__init__.py:2: in <module>
> from .tz import *
> /usr/lib/python3/dist-packages/dateutil/tz/tz.py:37: in <module>
> EPOCH = datetime.datetime.utcfromtimestamp(0)
> E DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
> =========================== short test summary info ============================
> ERROR tests/test_pytest_mpl.py - DeprecationWarning: datetime.datetime.utcfro...
> !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
> =============================== 1 error in 0.96s ===============================
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-mpl/build; python3.12 -m pytest tests
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-mpl/build; python3.11 -m pytest tests
> ============================= test session starts ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> collected 44 items
>
> tests/test_pytest_mpl.py sssss.sss.sssssssssssssssssss [ 65%]
> tests/subtests/test_subtest.py sssssssssssssss [100%]
>
> ======================== 2 passed, 42 skipped in 1.96s =========================
> 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/2023/12/12/pytest-mpl_0.16.1-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lucas@debian.org&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.
More information about the Debian-astro-maintainers
mailing list