MushroomMaula / fastapi_login

FastAPI-Login tries to provide similar functionality as Flask-Login does.
https://pypi.org/project/fastapi-login
MIT License
639 stars 58 forks source link

Upgrade anyio[trio] version to above 4 #143

Closed IterableTrucks closed 2 weeks ago

IterableTrucks commented 3 weeks ago

anyio<4.0 will restrict the trio version under 0.22.0 which will cause conflict with loguru>=0.7.0 and emit the warning:

trio/_core/_multierror.py:511: RuntimeWarning: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks.

The Python version is 3.9.18

kigawas commented 3 weeks ago

Anyio is used by fastapi, we don't have to upgrade it, just following fastapi's anyio version

IterableTrucks commented 2 weeks ago

Fastapi requires Anyio indirectly by Starlette, and in the lastest version of Starlette the anyio version requirement is anyio>=3.4.0,<5. So there seems no reason to remain a tighter version constraint anyio = {version = "^3.6.2", extras = ["trio"]} which means anyio>=3.6.2,<4 in fastapi-login's dependencies.

kigawas commented 2 weeks ago

released