--- Begin Message ---
Source: starlette
Version: 0.31.1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240319 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> tests/test_websockets.py:459:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> starlette/testclient.py:402: in __init__
> super().__init__(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = <starlette.testclient.TestClient object at 0x7ff7f719c550>
>
> def __init__(
> self,
> *,
> auth: AuthTypes | None = None,
> params: QueryParamTypes | None = None,
> headers: HeaderTypes | None = None,
> cookies: CookieTypes | None = None,
> verify: VerifyTypes = True,
> cert: CertTypes | None = None,
> http1: bool = True,
> http2: bool = False,
> proxy: ProxyTypes | None = None,
> proxies: ProxiesTypes | None = None,
> mounts: None | (typing.Mapping[str, BaseTransport | None]) = None,
> timeout: TimeoutTypes = DEFAULT_TIMEOUT_CONFIG,
> follow_redirects: bool = False,
> limits: Limits = DEFAULT_LIMITS,
> max_redirects: int = DEFAULT_MAX_REDIRECTS,
> event_hooks: None | (typing.Mapping[str, list[EventHook]]) = None,
> base_url: URLTypes = "",
> transport: BaseTransport | None = None,
> app: typing.Callable[..., typing.Any] | None = None,
> trust_env: bool = True,
> default_encoding: str | typing.Callable[[bytes], str] = "utf-8",
> ) -> None:
> super().__init__(
> auth=auth,
> params=params,
> headers=headers,
> cookies=cookies,
> timeout=timeout,
> follow_redirects=follow_redirects,
> max_redirects=max_redirects,
> event_hooks=event_hooks,
> base_url=base_url,
> trust_env=trust_env,
> default_encoding=default_encoding,
> )
>
> if http2:
> try:
> import h2 # noqa
> except ImportError: # pragma: no cover
> raise ImportError(
> "Using http2=True, but the 'h2' package is not installed.
> "
> "Make sure to install httpx using `pip install
> httpx[http2]`."
> ) from None
>
> if proxies:
> message = (
> "The 'proxies' argument is now deprecated."
> " Use 'proxy' or 'mounts' instead."
> )
> warnings.warn(message, DeprecationWarning)
> if proxy:
> raise RuntimeError("Use either `proxy` or 'proxies', not
> both.")
>
> if app:
> message = (
> "The 'app' shortcut is now deprecated."
> " Use the explicit style 'transport=WSGITransport(app=...)'
> instead."
> )
> > warnings.warn(message, DeprecationWarning)
> E DeprecationWarning: The 'app' shortcut is now deprecated. Use the
> explicit style 'transport=WSGITransport(app=...)' instead.
>
> /usr/lib/python3/dist-packages/httpx/_client.py:680: DeprecationWarning
> ___________________ test_receive_wrong_message_type[asyncio]
> ___________________
>
> test_client_factory = functools.partial(<class
> 'starlette.testclient.TestClient'>, backend='asyncio', backend_options={})
>
> def test_receive_wrong_message_type(test_client_factory):
> async def app(scope, receive, send):
> websocket = WebSocket(scope, receive=receive, send=send)
> await websocket.accept()
> await websocket.receive()
>
> > client = test_client_factory(app)
>
> tests/test_websockets.py:471:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> starlette/testclient.py:402: in __init__
> super().__init__(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self = <starlette.testclient.TestClient object at 0x7ff7f7206110>
>
> def __init__(
> self,
> *,
> auth: AuthTypes | None = None,
> params: QueryParamTypes | None = None,
> headers: HeaderTypes | None = None,
> cookies: CookieTypes | None = None,
> verify: VerifyTypes = True,
> cert: CertTypes | None = None,
> http1: bool = True,
> http2: bool = False,
> proxy: ProxyTypes | None = None,
> proxies: ProxiesTypes | None = None,
> mounts: None | (typing.Mapping[str, BaseTransport | None]) = None,
> timeout: TimeoutTypes = DEFAULT_TIMEOUT_CONFIG,
> follow_redirects: bool = False,
> limits: Limits = DEFAULT_LIMITS,
> max_redirects: int = DEFAULT_MAX_REDIRECTS,
> event_hooks: None | (typing.Mapping[str, list[EventHook]]) = None,
> base_url: URLTypes = "",
> transport: BaseTransport | None = None,
> app: typing.Callable[..., typing.Any] | None = None,
> trust_env: bool = True,
> default_encoding: str | typing.Callable[[bytes], str] = "utf-8",
> ) -> None:
> super().__init__(
> auth=auth,
> params=params,
> headers=headers,
> cookies=cookies,
> timeout=timeout,
> follow_redirects=follow_redirects,
> max_redirects=max_redirects,
> event_hooks=event_hooks,
> base_url=base_url,
> trust_env=trust_env,
> default_encoding=default_encoding,
> )
>
> if http2:
> try:
> import h2 # noqa
> except ImportError: # pragma: no cover
> raise ImportError(
> "Using http2=True, but the 'h2' package is not installed.
> "
> "Make sure to install httpx using `pip install
> httpx[http2]`."
> ) from None
>
> if proxies:
> message = (
> "The 'proxies' argument is now deprecated."
> " Use 'proxy' or 'mounts' instead."
> )
> warnings.warn(message, DeprecationWarning)
> if proxy:
> raise RuntimeError("Use either `proxy` or 'proxies', not
> both.")
>
> if app:
> message = (
> "The 'app' shortcut is now deprecated."
> " Use the explicit style 'transport=WSGITransport(app=...)'
> instead."
> )
> > warnings.warn(message, DeprecationWarning)
> E DeprecationWarning: The 'app' shortcut is now deprecated. Use the
> explicit style 'transport=WSGITransport(app=...)' instead.
>
> /usr/lib/python3/dist-packages/httpx/_client.py:680: DeprecationWarning
> ================= 292 failed, 103 passed, 25 errors in 23.34s
> ==================
> E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_starlette/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/starlette_0.31.1-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240319;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240319&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.
--- End Message ---