diff --git a/README.md b/README.md index f0a1f760..98e575d3 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Supported [Integrations](https://openapi-core.readthedocs.io/en/latest/integrati | [FastAPI](https://openapi-core.readthedocs.io/en/latest/integrations/fastapi/) | versions 0.11x, 0.12x, and 0.13x | Middleware (low-level via Starlette integration) | | [Flask](https://openapi-core.readthedocs.io/en/latest/integrations/flask/) | versions 2 and 3 | View decorator, class-based view, and low-level classes | | [Requests](https://openapi-core.readthedocs.io/en/latest/integrations/requests/) | default dependency set | Low-level request, webhook request, and response classes | -| [Starlette](https://openapi-core.readthedocs.io/en/latest/integrations/starlette/) | versions 0.4x and 0.5x | Middleware and low-level classes | +| [Starlette](https://openapi-core.readthedocs.io/en/latest/integrations/starlette/) | versions 0.4x, 0.5x, and 1.x | Middleware and low-level classes | | [Werkzeug](https://openapi-core.readthedocs.io/en/latest/integrations/werkzeug/) | default dependency set | Low-level request and response classes | ## Installation diff --git a/docs/integrations/starlette.md b/docs/integrations/starlette.md index 84a19447..aed9d4b1 100644 --- a/docs/integrations/starlette.md +++ b/docs/integrations/starlette.md @@ -1,6 +1,6 @@ # Starlette -This section describes integration with the [Starlette](https://www.starlette.io) ASGI framework. The integration supports Flask versions 0.4x and 0.5x. +This section describes integration with the [Starlette](https://www.starlette.io) ASGI framework. The integration supports Starlette versions 0.4x, 0.5x, and 1.x. ## Middleware diff --git a/poetry.lock b/poetry.lock index 4d3b477e..bc3a314d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -3730,15 +3730,15 @@ tests = ["cython", "littleutils", "pygments", "pytest", "typeguard"] [[package]] name = "starlette" -version = "0.50.0" +version = "1.0.0" description = "The little ASGI library that shines." optional = true python-versions = ">=3.10" groups = ["main"] markers = "extra == \"fastapi\" or extra == \"starlette\"" files = [ - {file = "starlette-0.50.0-py3-none-any.whl", hash = "sha256:9e5391843ec9b6e472eed1365a78c8098cfceb7a74bfd4d6b1c0c0095efb3bca"}, - {file = "starlette-0.50.0.tar.gz", hash = "sha256:a2a17b22203254bcbc2e1f926d2d55f3f9497f769416b3190768befe598fa3ca"}, + {file = "starlette-1.0.0-py3-none-any.whl", hash = "sha256:d3ec55e0bb321692d275455ddfd3df75fff145d009685eb40dc91fc66b03d38b"}, + {file = "starlette-1.0.0.tar.gz", hash = "sha256:6a4beaf1f81bb472fd19ea9b918b50dc3a77a6f2e190a12954b25e6ed5eea149"}, ] [package.dependencies] @@ -4154,4 +4154,4 @@ werkzeug = [] [metadata] lock-version = "2.1" python-versions = "^3.10.0" -content-hash = "f5eaf014a5df4938aa3dceebad513c86554551b7116c5d94fe3adb12e97d9452" +content-hash = "d7e0dda94eff30865daa9fe709e2d396bf6f1fa9a96ce049a577aa5f94b2e5f2" diff --git a/pyproject.toml b/pyproject.toml index 3d4f7c39..809d4f28 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,7 +64,7 @@ django = {version = ">=4.0", optional = true} falcon = {version = ">=4.0", optional = true} flask = {version = ">=2.0", optional = true} aiohttp = {version = ">=3.0", optional = true} -starlette = {version = ">=0.40.0,<0.60.0", optional = true} +starlette = {version = ">=0.40.0,<1.1.0", optional = true} isodate = "*" more-itertools = "*" openapi-schema-validator = ">=0.7.0,<0.9.0" @@ -181,6 +181,7 @@ env_list = [ "contrib-requests-default", "contrib-starlette-04x", "contrib-starlette-05x", + "contrib-starlette-1x", "contrib-werkzeug-default", ] isolated_build = true @@ -243,5 +244,8 @@ set_env = { POETRY_EXTRA = "starlette", CONTRIB_PACKAGE = "starlette", CONTRIB_S [tool.tox.env."contrib-starlette-05x"] set_env = { POETRY_EXTRA = "starlette", CONTRIB_PACKAGE = "starlette", CONTRIB_SPEC = ">=0.50.0,<0.60.0", CONTRIB_PATHS = "tests/integration/contrib/starlette" } +[tool.tox.env."contrib-starlette-1x"] +set_env = { POETRY_EXTRA = "starlette", CONTRIB_PACKAGE = "starlette", CONTRIB_SPEC = ">=1.0.0,<2.0.0", CONTRIB_PATHS = "tests/integration/contrib/starlette" } + [tool.tox.env."contrib-werkzeug-default"] set_env = { CONTRIB_PACKAGE = "werkzeug", CONTRIB_SPEC = "", CONTRIB_PATHS = "tests/integration/contrib/werkzeug" }