diff --git a/pyproject.toml b/pyproject.toml index e9cfdc1..2430d2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,26 +4,27 @@ version = "1.0.1" description = "A light weight Python async framework with batteries included." authors = [{ name = "Tabot Kevin", email = "tabot.kevin@gmail.com" }] dependencies = [ - "starlette>=0.37.2", - "uvicorn[standard]>=0.29.0", - "aiofiles>=23.2.1", - "pyyaml>=6.0.1", - "requests>=2.31.0", - "jinja2>=3.1.3", - "rfc3986>=2.0.0", - "python-multipart>=0.0.9", - "chardet>=5.2.0", - "apispec>=1.0.0b1", - "whitenoise>=6.6.0", - "docopt>=0.6.2", - "requests-toolbelt>=1.0.0", - "graphene>=3.3", - "itsdangerous>=2.1.2", - "graphql-server>=3.0.0b7", - "marshmallow>=3.21.1", - "flask>=3.0.3", - "pydantic>=2.7.0", - "sqlalchemy>=2.0.29", + "starlette>=0.37.2", + "uvicorn[standard]>=0.29.0", + "aiofiles>=23.2.1", + "pyyaml>=6.0.1", + "requests>=2.31.0", + "jinja2>=3.1.3", + "rfc3986>=2.0.0", + "python-multipart>=0.0.9", + "chardet>=5.2.0", + "apispec>=1.0.0b1", + "whitenoise>=6.6.0", + "docopt>=0.6.2", + "requests-toolbelt>=1.0.0", + "graphene>=3.3", + "itsdangerous>=2.1.2", + "graphql-server>=3.0.0b7", + "marshmallow>=3.21.1", + "flask>=3.0.3", + "pydantic>=2.7.0", + "sqlalchemy>=2.0.29", + "a2wsgi>=1.10.7", ] readme = "README.md" requires-python = ">= 3.8" diff --git a/requirements-dev.lock b/requirements-dev.lock index 730b621..4f20a19 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -8,6 +8,8 @@ # with-sources: false -e file:. +a2wsgi==1.10.7 + # via dyne aiofiles==23.2.1 # via dyne aniso8601==9.0.1 diff --git a/requirements.lock b/requirements.lock index 80a145d..eba5549 100644 --- a/requirements.lock +++ b/requirements.lock @@ -8,6 +8,8 @@ # with-sources: false -e file:. +a2wsgi==1.10.7 + # via dyne aiofiles==23.2.1 # via dyne aniso8601==9.0.1 diff --git a/src/dyne/routes.py b/src/dyne/routes.py index 1cd9b68..e025cae 100644 --- a/src/dyne/routes.py +++ b/src/dyne/routes.py @@ -4,8 +4,8 @@ import traceback from collections import defaultdict +from a2wsgi import WSGIMiddleware from starlette.concurrency import run_in_threadpool -from starlette.middleware.wsgi import WSGIMiddleware from starlette.websockets import WebSocket, WebSocketClose from . import status