add tomli for python < 3.11 compatibility

This commit is contained in:
Anatol Ulrich 2023-10-11 16:58:50 +02:00
parent b1d845a41c
commit 9331b64797
2 changed files with 6 additions and 3 deletions

View File

@ -25,7 +25,10 @@ from os import environ
from functools import wraps from functools import wraps
# dependencies imports # dependencies imports
try:
import tomllib import tomllib
except ImportError:
import tomli as tomllib
import logging import logging
# app imports # app imports

View File

@ -1,8 +1,8 @@
fastapi fastapi
python-jose[cryptography] python-jose[cryptography]
toml
strawberry-graphql[fastapi] strawberry-graphql[fastapi]
uvicorn[standard] uvicorn[standard]
coloredlogs coloredlogs
pydantic pydantic
httpx httpx
tomli