Bug#1066757: prettytable: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13

2024-04-03 Thread Jeremy Bícha
This is actually https://bugs.debian.org/1063957

prettytable has worked around this for the 3.10.0 release by switching
to a fork, python-pytest-lazy-fixtures, which is not yet packaged in
Debian.

Thank you,
Jeremy Bícha



Bug#1066757: prettytable: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13

2024-03-13 Thread Lucas Nussbaum
Source: prettytable
Version: 3.6.0-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240313 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules build
> dh build --with python3 --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.12 with "build" 
> module
> I: pybuild base:305: python3.12 -m build --skip-dependency-check 
> --no-isolation --wheel --outdir /<>/.pybuild/cpython3_3.12  
> * Building wheel...
> Successfully built prettytable-3.6.0-py3-none-any.whl
> I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with 
> "installer" module
> I: pybuild plugin_pyproject:129: Building wheel for python3.11 with "build" 
> module
> I: pybuild base:305: python3.11 -m build --skip-dependency-check 
> --no-isolation --wheel --outdir /<>/.pybuild/cpython3_3.11  
> * Building wheel...
> Successfully built prettytable-3.6.0-py3-none-any.whl
> I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.11 with 
> "installer" module
>dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:305: cd /<>/.pybuild/cpython3_3.12/build; 
> python3.12 -m pytest tests
> = test session starts 
> ==
> platform linux -- Python 3.12.2, pytest-8.0.2, pluggy-1.4.0
> rootdir: /<>/.pybuild/cpython3_3.12/build
> plugins: lazy-fixture-0.6.3
> collected 114 items / 5 errors
> 
>  ERRORS 
> 
> __ ERROR collecting tests/test_prettytable.py 
> __
> /usr/lib/python3/dist-packages/pluggy/_hooks.py:501: in __call__
> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, 
> firstresult)
> /usr/lib/python3/dist-packages/pluggy/_manager.py:119: in _hookexec
> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
> /usr/lib/python3/dist-packages/_pytest/python.py:278: in 
> pytest_pycollect_makeitem
> return list(collector._genfunctions(name, obj))
> /usr/lib/python3/dist-packages/_pytest/python.py:507: in _genfunctions
> self.ihook.pytest_generate_tests.call_extra(methods, 
> dict(metafunc=metafunc))
> /usr/lib/python3/dist-packages/pluggy/_hooks.py:562: in call_extra
> return self._hookexec(self.name, hookimpls, kwargs, firstresult)
> /usr/lib/python3/dist-packages/pluggy/_manager.py:119: in _hookexec
> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
> /usr/lib/python3/dist-packages/pytest_lazyfixture.py:74: in 
> pytest_generate_tests
> normalize_metafunc_calls(metafunc, 'funcargs')
> /usr/lib/python3/dist-packages/pytest_lazyfixture.py:81: in 
> normalize_metafunc_calls
> calls = normalize_call(callspec, metafunc, valtype, used_keys)
> /usr/lib/python3/dist-packages/pytest_lazyfixture.py:105: in normalize_call
> valtype_keys = set(getattr(callspec, valtype).keys()) - used_keys
> E   AttributeError: 'CallSpec2' object has no attribute 'funcargs'
> __ ERROR collecting tests/test_prettytable.py 
> __
> /usr/lib/python3/dist-packages/pluggy/_hooks.py:501: in __call__
> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, 
> firstresult)
> /usr/lib/python3/dist-packages/pluggy/_manager.py:119: in _hookexec
> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
> /usr/lib/python3/dist-packages/_pytest/python.py:278: in 
> pytest_pycollect_makeitem
> return list(collector._genfunctions(name, obj))
> /usr/lib/python3/dist-packages/_pytest/python.py:507: in _genfunctions
> self.ihook.pytest_generate_tests.call_extra(methods, 
> dict(metafunc=metafunc))
> /usr/lib/python3/dist-packages/pluggy/_hooks.py:562: in call_extra
> return self._hookexec(self.name, hookimpls, kwargs, firstresult)
> /usr/lib/python3/dist-packages/pluggy/_manager.py:119: in _hookexec
> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
> /usr/lib/python3/dist-packages/pytest_lazyfixture.py:74: in 
> pytest_generate_tests
> normalize_metafunc_calls(metafunc, 'funcargs')
> /usr/lib/python3/dist-packages/pytest_lazyfixture.py:81: in 
> normalize_metafunc_calls
> calls = normalize_call(callspec, metafunc, valtype, used_keys)
> /usr/lib/python3/dist-packages/pytest_lazyfixture.py:105: in normalize_call
> valtype_keys = set(getattr(callspec, valtype).keys()) - used_keys
> E   AttributeError: 'CallSpec2' object has no attribute 'funcargs'
> __ ERROR collecting tests/test_prettytable.py 
> __
> /usr/lib/python3/dist-packages/pluggy/_hooks.py:501: in __call__
> return self._hookexec(self.name, self._hookimpls.copy(),