]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
➖ Do not require backports in Python >= 3.7 (#1880)
authorFilipe Laíns <filipe.lains@gmail.com>
Tue, 5 Oct 2021 08:58:00 +0000 (09:58 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Oct 2021 08:58:00 +0000 (10:58 +0200)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
pyproject.toml

index b2be66fa133f493e093eceb4d3783eedacde33e9..30ebe55ccf715906d0ccf6c51f40fd76e865f17d 100644 (file)
@@ -59,11 +59,11 @@ test = [
     "databases[sqlite] >=0.3.2,<0.4.0",
     "orjson >=3.2.1,<4.0.0",
     "ujson >=4.0.1,<5.0.0",
-    "async_exit_stack >=1.0.1,<2.0.0",
-    "async_generator >=1.10,<2.0.0",
     "python-multipart >=0.0.5,<0.0.6",
     "aiofiles >=0.5.0,<0.6.0",
     "flask >=1.1.2,<2.0.0",
+    "async_exit_stack >=1.0.1,<2.0.0; python_version < '3.7'",
+    "async_generator >=1.10,<2.0.0; python_version < '3.7'",
 
     # types
     "types-ujson ==0.1.1",
@@ -98,8 +98,8 @@ all = [
     "orjson >=3.2.1,<4.0.0",
     "email_validator >=1.1.1,<2.0.0",
     "uvicorn[standard] >=0.12.0,<0.16.0",
-    "async_exit_stack >=1.0.1,<2.0.0",
-    "async_generator >=1.10,<2.0.0"
+    "async_exit_stack >=1.0.1,<2.0.0; python_version < '3.7'",
+    "async_generator >=1.10,<2.0.0; python_version < '3.7'",
 ]
 
 [tool.isort]