Skip to content

Commit 0948a04

Browse files
authored
Merge pull request #1151 from python-openapi/dependabot/pip/starlette-1.0.0
Starlette 1.x support
2 parents e650512 + 703b1b7 commit 0948a04

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Supported [Integrations](https://openapi-core.readthedocs.io/en/latest/integrati
5151
| [FastAPI](https://openapi-core.readthedocs.io/en/latest/integrations/fastapi/) | versions 0.11x, 0.12x, and 0.13x | Middleware (low-level via Starlette integration) |
5252
| [Flask](https://openapi-core.readthedocs.io/en/latest/integrations/flask/) | versions 2 and 3 | View decorator, class-based view, and low-level classes |
5353
| [Requests](https://openapi-core.readthedocs.io/en/latest/integrations/requests/) | default dependency set | Low-level request, webhook request, and response classes |
54-
| [Starlette](https://openapi-core.readthedocs.io/en/latest/integrations/starlette/) | versions 0.4x and 0.5x | Middleware and low-level classes |
54+
| [Starlette](https://openapi-core.readthedocs.io/en/latest/integrations/starlette/) | versions 0.4x, 0.5x, and 1.x | Middleware and low-level classes |
5555
| [Werkzeug](https://openapi-core.readthedocs.io/en/latest/integrations/werkzeug/) | default dependency set | Low-level request and response classes |
5656

5757
## Installation

docs/integrations/starlette.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Starlette
22

3-
This section describes integration with the [Starlette](https://www.starlette.io) ASGI framework. The integration supports Flask versions 0.4x and 0.5x.
3+
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.
44

55
## Middleware
66

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ django = {version = ">=4.0", optional = true}
6464
falcon = {version = ">=4.0", optional = true}
6565
flask = {version = ">=2.0", optional = true}
6666
aiohttp = {version = ">=3.0", optional = true}
67-
starlette = {version = ">=0.40.0,<0.60.0", optional = true}
67+
starlette = {version = ">=0.40.0,<1.1.0", optional = true}
6868
isodate = "*"
6969
more-itertools = "*"
7070
openapi-schema-validator = ">=0.7.0,<0.9.0"
@@ -181,6 +181,7 @@ env_list = [
181181
"contrib-requests-default",
182182
"contrib-starlette-04x",
183183
"contrib-starlette-05x",
184+
"contrib-starlette-1x",
184185
"contrib-werkzeug-default",
185186
]
186187
isolated_build = true
@@ -243,5 +244,8 @@ set_env = { POETRY_EXTRA = "starlette", CONTRIB_PACKAGE = "starlette", CONTRIB_S
243244
[tool.tox.env."contrib-starlette-05x"]
244245
set_env = { POETRY_EXTRA = "starlette", CONTRIB_PACKAGE = "starlette", CONTRIB_SPEC = ">=0.50.0,<0.60.0", CONTRIB_PATHS = "tests/integration/contrib/starlette" }
245246

247+
[tool.tox.env."contrib-starlette-1x"]
248+
set_env = { POETRY_EXTRA = "starlette", CONTRIB_PACKAGE = "starlette", CONTRIB_SPEC = ">=1.0.0,<2.0.0", CONTRIB_PATHS = "tests/integration/contrib/starlette" }
249+
246250
[tool.tox.env."contrib-werkzeug-default"]
247251
set_env = { CONTRIB_PACKAGE = "werkzeug", CONTRIB_SPEC = "", CONTRIB_PATHS = "tests/integration/contrib/werkzeug" }

0 commit comments

Comments
 (0)