Source: python-pook Version: 1.0.2-1 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20221220 ftbfs-bookworm
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > make[1]: Entering directory '/<<PKGBUILDDIR>>' > http_proxy= dh_auto_test > I: pybuild pybuild:307: cp -r /<<PKGBUILDDIR>>/examples > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pook/build > I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pook/build; > python3.11 -m pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0+repack > rootdir: /<<PKGBUILDDIR>> > plugins: cov-4.0.0 > collected 12 items / 7 errors > > ==================================== ERRORS > ==================================== > _ ERROR collecting > .pybuild/cpython3_3.11_pook/build/tests/integration/pook_requests_test.py _ > tests/integration/pook_requests_test.py:3: in <module> > import pook > pook/__init__.py:1: in <module> > from .api import * # noqa > pook/api.py:6: in <module> > from .engine import Engine > pook/engine.py:5: in <module> > from .mock_engine import MockEngine > pook/mock_engine.py:1: in <module> > from .interceptors import interceptors > pook/interceptors/__init__.py:25: in <module> > from .aiohttp import AIOHTTPInterceptor > pook/interceptors/aiohttp.py:42: in <module> > class SimpleContent(EmptyStreamReader): > pook/interceptors/aiohttp.py:47: in SimpleContent > @asyncio.coroutine > E AttributeError: module 'asyncio' has no attribute 'coroutine' > __ ERROR collecting .pybuild/cpython3_3.11_pook/build/tests/unit/api_test.py > ___ > tests/unit/api_test.py:4: in <module> > from pook import api > pook/__init__.py:1: in <module> > from .api import * # noqa > pook/api.py:6: in <module> > from .engine import Engine > pook/engine.py:5: in <module> > from .mock_engine import MockEngine > pook/mock_engine.py:1: in <module> > from .interceptors import interceptors > pook/interceptors/__init__.py:25: in <module> > from .aiohttp import AIOHTTPInterceptor > pook/interceptors/aiohttp.py:42: in <module> > class SimpleContent(EmptyStreamReader): > pook/interceptors/aiohttp.py:47: in SimpleContent > @asyncio.coroutine > E AttributeError: module 'asyncio' has no attribute 'coroutine' > _ ERROR collecting > .pybuild/cpython3_3.11_pook/build/tests/unit/engine_test.py _ > tests/unit/engine_test.py:3: in <module> > from pook import Engine > pook/__init__.py:1: in <module> > from .api import * # noqa > pook/api.py:6: in <module> > from .engine import Engine > pook/engine.py:5: in <module> > from .mock_engine import MockEngine > pook/mock_engine.py:1: in <module> > from .interceptors import interceptors > pook/interceptors/__init__.py:25: in <module> > from .aiohttp import AIOHTTPInterceptor > pook/interceptors/aiohttp.py:42: in <module> > class SimpleContent(EmptyStreamReader): > pook/interceptors/aiohttp.py:47: in SimpleContent > @asyncio.coroutine > E AttributeError: module 'asyncio' has no attribute 'coroutine' > _ ERROR collecting > .pybuild/cpython3_3.11_pook/build/tests/unit/exceptions_test.py _ > tests/unit/exceptions_test.py:3: in <module> > from pook import exceptions as ex > pook/__init__.py:1: in <module> > from .api import * # noqa > pook/api.py:6: in <module> > from .engine import Engine > pook/engine.py:5: in <module> > from .mock_engine import MockEngine > pook/mock_engine.py:1: in <module> > from .interceptors import interceptors > pook/interceptors/__init__.py:25: in <module> > from .aiohttp import AIOHTTPInterceptor > pook/interceptors/aiohttp.py:42: in <module> > class SimpleContent(EmptyStreamReader): > pook/interceptors/aiohttp.py:47: in SimpleContent > @asyncio.coroutine > E AttributeError: module 'asyncio' has no attribute 'coroutine' > _ ERROR collecting > .pybuild/cpython3_3.11_pook/build/tests/unit/mock_engine_test.py _ > tests/unit/mock_engine_test.py:4: in <module> > from pook import MockEngine, Engine > pook/__init__.py:1: in <module> > from .api import * # noqa > pook/api.py:6: in <module> > from .engine import Engine > pook/engine.py:5: in <module> > from .mock_engine import MockEngine > pook/mock_engine.py:1: in <module> > from .interceptors import interceptors > pook/interceptors/__init__.py:25: in <module> > from .aiohttp import AIOHTTPInterceptor > pook/interceptors/aiohttp.py:42: in <module> > class SimpleContent(EmptyStreamReader): > pook/interceptors/aiohttp.py:47: in SimpleContent > @asyncio.coroutine > E AttributeError: module 'asyncio' has no attribute 'coroutine' > _ ERROR collecting > .pybuild/cpython3_3.11_pook/build/tests/unit/interceptors/module_test.py _ > tests/unit/interceptors/module_test.py:1: in <module> > from pook import interceptors > pook/__init__.py:1: in <module> > from .api import * # noqa > pook/api.py:6: in <module> > from .engine import Engine > pook/engine.py:5: in <module> > from .mock_engine import MockEngine > pook/mock_engine.py:1: in <module> > from .interceptors import interceptors > pook/interceptors/__init__.py:25: in <module> > from .aiohttp import AIOHTTPInterceptor > pook/interceptors/aiohttp.py:42: in <module> > class SimpleContent(EmptyStreamReader): > pook/interceptors/aiohttp.py:47: in SimpleContent > @asyncio.coroutine > E AttributeError: module 'asyncio' has no attribute 'coroutine' > _ ERROR collecting > .pybuild/cpython3_3.11_pook/build/tests/unit/interceptors/urllib3_test.py _ > tests/unit/interceptors/urllib3_test.py:4: in <module> > import pook > pook/__init__.py:1: in <module> > from .api import * # noqa > pook/api.py:6: in <module> > from .engine import Engine > pook/engine.py:5: in <module> > from .mock_engine import MockEngine > pook/mock_engine.py:1: in <module> > from .interceptors import interceptors > pook/interceptors/__init__.py:25: in <module> > from .aiohttp import AIOHTTPInterceptor > pook/interceptors/aiohttp.py:42: in <module> > class SimpleContent(EmptyStreamReader): > pook/interceptors/aiohttp.py:47: in SimpleContent > @asyncio.coroutine > E AttributeError: module 'asyncio' has no attribute 'coroutine' > =============================== warnings summary > =============================== > tests/unit/matchers/url_test.py:56 > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pook/build/tests/unit/matchers/url_test.py:56: > DeprecationWarning: invalid escape sequence '\?' > ('http://foo.com/foo\?x=[0-9]', 'http://foo.com/foo?x=5', True), > > tests/unit/matchers/url_test.py:65 > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pook/build/tests/unit/matchers/url_test.py:65: > DeprecationWarning: invalid escape sequence '\?' > ('http://foo.com/foo\?x=[1-3]', 'http://foo.com/foo?x=5', False), > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > =========================== short test summary info > ============================ > ERROR tests/integration/pook_requests_test.py - AttributeError: module > 'async... > ERROR tests/unit/api_test.py - AttributeError: module 'asyncio' has no > attrib... > ERROR tests/unit/engine_test.py - AttributeError: module 'asyncio' has no > att... > ERROR tests/unit/exceptions_test.py - AttributeError: module 'asyncio' has > no... > ERROR tests/unit/mock_engine_test.py - AttributeError: module 'asyncio' has > n... > ERROR tests/unit/interceptors/module_test.py - AttributeError: module > 'asynci... > ERROR tests/unit/interceptors/urllib3_test.py - AttributeError: module > 'async... > !!!!!!!!!!!!!!!!!!! Interrupted: 7 errors during collection > !!!!!!!!!!!!!!!!!!!! > ======================== 2 warnings, 7 errors in 0.37s > ========================= > E: pybuild pybuild:386: test: plugin distutils failed with: exit code=2: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pook/build; python3.11 -m pytest tests > I: pybuild pybuild:307: cp -r /<<PKGBUILDDIR>>/examples > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pook/build > I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pook/build; > python3.10 -m pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0+repack > rootdir: /<<PKGBUILDDIR>> > plugins: cov-4.0.0 > collected 33 items > > tests/integration/engines_test.py . [ > 3%] > tests/integration/examples_test.py . [ > 6%] > tests/integration/pook_requests_test.py .. [ > 12%] > tests/unit/api_test.py ..... [ > 27%] > tests/unit/engine_test.py .. [ > 33%] > tests/unit/exceptions_test.py . [ > 36%] > tests/unit/mock_engine_test.py .... [ > 48%] > tests/unit/mock_test.py .. [ > 54%] > tests/unit/regex_test.py .. [ > 60%] > tests/unit/interceptors/module_test.py . [ > 63%] > tests/unit/interceptors/urllib3_test.py ...... [ > 81%] > tests/unit/matchers/base_test.py .... [ > 93%] > tests/unit/matchers/url_test.py .. > [100%] > > =============================== warnings summary > =============================== > pook/interceptors/aiohttp.py:48 > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pook/build/pook/interceptors/aiohttp.py:48: > DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, > use "async def" instead > def read(self, n=-1): > > pook/interceptors/aiohttp.py:80 > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pook/build/pook/interceptors/aiohttp.py:80: > DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, > use "async def" instead > def _on_request(self, _request, session, method, url, > > tests/unit/matchers/url_test.py:56 > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pook/build/tests/unit/matchers/url_test.py:56: > DeprecationWarning: invalid escape sequence '\?' > ('http://foo.com/foo\?x=[0-9]', 'http://foo.com/foo?x=5', True), > > tests/unit/matchers/url_test.py:65 > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pook/build/tests/unit/matchers/url_test.py:65: > DeprecationWarning: invalid escape sequence '\?' > ('http://foo.com/foo\?x=[1-3]', 'http://foo.com/foo?x=5', False), > > .pybuild/cpython3_3.10_pook/build/tests/integration/pook_requests_test.py: 2 > warnings > .pybuild/cpython3_3.10_pook/build/tests/unit/api_test.py: 3 warnings > .pybuild/cpython3_3.10_pook/build/tests/unit/interceptors/urllib3_test.py: 5 > warnings > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pook/build/pook/interceptors/aiohttp.py:153: > DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, > use "async def" instead > def handler(session, method, url, data=None, headers=None, **kw): > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > ======================= 33 passed, 14 warnings in 1.56s > ======================== > I: pybuild pybuild:333: rm -rf > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pook/build/examples > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.11 > 3.10" returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2022/12/20/python-pook_1.0.2-1_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&fusertaguser=lu...@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.