[Python-modules-team] Bug#977055: apipkg FTBFS with pytest 6

Christian Kastner ckk at debian.org
Thu Dec 10 18:13:16 GMT 2020


Source: apipkg
Version: 1.5-5
Severity: important
User: pytest at packages.debian.org
Usertags: pytest-v6

Hi,

apipkg FTBFS with pytest 6 in unstable because it uses the
pytest.config global option, which as been removed:

    https://docs.pytest.org/en/stable/deprecations.html#pytest-config-global

The top of the error log below has more details.

> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_apipkg/build/apipkg
> copying src/apipkg/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_apipkg/build/apipkg
> copying src/apipkg/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_apipkg/build/apipkg
>    debian/rules override_dh_auto_test
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -x" dh_auto_test
> I: pybuild base:232: python3.9 -m pytest -v -x
> ============================= test session starts ==============================
> platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0 -- /usr/bin/python3.9
> cachedir: .pytest_cache
> apipkg full install version=1.5
> rootdir: /<<PKGBUILDDIR>>
> collecting ... collected 37 items
> 
> test_apipkg.py::TestRealModule::test_realmodule ERROR                    [  2%]
> 
> ==================================== ERRORS ====================================
> _______________ ERROR at setup of TestRealModule.test_realmodule _______________
> 
> cls = <class 'test_apipkg.TestRealModule'>
> 
>     def setup_class(cls):
>>       cls.tmpdir = py.test.config._tmpdirhandler.getbasetemp().ensure('test_apipkg', dir=1)
> 
> test_apipkg.py:16: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 
> self = <AliasModule 'py.test' for 'pytest'>, name = 'config'
> 
>     def __getattribute__(self, name):
>         try:
>>           return getattr(getmod(), name)
> E           AttributeError: module 'pytest' has no attribute 'config'
> 
> /usr/lib/python3/dist-packages/py/_vendored_packages/apipkg.py:195: AttributeError
> =========================== short test summary info ============================
> ERROR test_apipkg.py::TestRealModule::test_realmodule - AttributeError: modul...
> !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
> =============================== 1 error in 0.06s ===============================
> E: pybuild pybuild:353: test: plugin custom failed with: exit code=1: python3.9 -m pytest -v -x
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13
> make[1]: *** [debian/rules:8: override_dh_auto_test] Error 25
> make: *** [debian/rules:5: binary] Error 2
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'



More information about the Python-modules-team mailing list