Source: python-uvicorn
Severity: serious
Version: 0.17.6-1
Hello,
python-uvicorn FTBFS with added support for python3.11:
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
http_proxy= https_proxy= dh_auto_test
I: pybuild pybuild:300: cp -r /<<PKGBUILDDIR>>/tests
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build
I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build;
python3.11 -m pytest -s --verbose -k 'not test_run and not
test_invalid_upgrade and not test_default_headers and not
test_trace_logging and not test_websocket_auto'
--ignore=tests/protocols/test_websocket.py
============================= test session starts
==============================
platform linux -- Python 3.11.0+, pytest-7.1.2, pluggy-1.0.0+repack --
/usr/bin/python3.11
cachedir: .pytest_cache
rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
plugins: asyncio-0.19.0, mock-3.8.2, anyio-3.6.2
asyncio: mode=Mode.STRICT
collecting ... collected 201 items / 8 errors / 1 deselected / 200 selected
==================================== ERRORS
====================================
_ ERROR collecting
.pybuild/cpython3_3.11/build/tests/test_default_headers.py __
tests/test_default_headers.py:1: in <module>
import httpx
/usr/lib/python3/dist-packages/httpx/__init__.py:2: in <module>
from ._api import delete, get, head, options, patch, post, put,
request, stream
/usr/lib/python3/dist-packages/httpx/_api.py:4: in <module>
from ._client import Client
/usr/lib/python3/dist-packages/httpx/_client.py:9: in <module>
from ._auth import Auth, BasicAuth, FunctionAuth
/usr/lib/python3/dist-packages/httpx/_auth.py:10: in <module>
from ._models import Request, Response
/usr/lib/python3/dist-packages/httpx/_models.py:1: in <module>
import cgi
/usr/lib/python3.11/cgi.py:57: in <module>
warnings._deprecated(__name__, remove=(3,13))
/usr/lib/python3.11/warnings.py:514: in _deprecated
warn(msg, DeprecationWarning, stacklevel=3)
E DeprecationWarning: 'cgi' is deprecated and slated for removal in
Python 3.13
Many similar failures follow as well, skipped here for brevity.
Andrius