Andrius Merkys
unread,Dec 1, 2022, 6:30:05 AM12/1/22You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Source: fastapi
Severity: serious
Version: 0.85.0-2
Hello,
fastapi FTBFS with added support for python3.11:
pybuild --test --test-pytest -i python{version} -p "3.11 3.10"
I: pybuild base:240: PYTHONPATH=/<<PKGBUILDDIR>>/build/lib/ python3.11
-m pytest tests/ --ignore=tests/test_default_response_class.py
--ignore-glob=tests/test_tutorial/test_security/test_tutorial005*
--ignore=te
sts/test_tutorial/test_custom_response/test_tutorial009c.py
--ignore=tests/test_response_by_alias.py -k ' not
test_get_custom_response and not test_root and not test_async_testing
and not test_orjson_non_str_key
s'
============================= test session starts
==============================
platform linux -- Python 3.11.0+, pytest-7.1.2, pluggy-1.0.0+repack
rootdir: /<<PKGBUILDDIR>>, configfile: pyproject.toml
plugins: anyio-3.6.2
collected 35 items / 287 errors
==================================== ERRORS
====================================
_____________ ERROR collecting tests/test_additional_properties.py
_____________
tests/test_additional_properties.py:3: in <module>
from fastapi import FastAPI
fastapi/__init__.py:7: in <module>
from .applications import FastAPI as FastAPI
fastapi/applications.py:15: in <module>
from fastapi import routing
fastapi/routing.py:23: in <module>
from fastapi.dependencies.models import Dependant
fastapi/dependencies/models.py:3: in <module>
from fastapi.security.base import SecurityBase
fastapi/security/__init__.py:1: in <module>
from .api_key import APIKeyCookie as APIKeyCookie
fastapi/security/api_key.py:3: in <module>
from fastapi.openapi.models import APIKey, APIKeyIn
fastapi/openapi/models.py:8: in <module>
import email_validator # type: ignore
/usr/lib/python3/dist-packages/email_validator/__init__.py:6: in <module>
import dns.resolver
/usr/lib/python3/dist-packages/dns/resolver.py:38: in <module>
import dns.query
/usr/lib/python3/dist-packages/dns/query.py:52: 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