mirror of https://github.com/encode/starlette.git
Test on Python 3.10 (#1201)
This commit is contained in:
parent
a839d9220d
commit
ab0fff9dd3
|
@ -14,7 +14,7 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.6", "3.7", "3.8", "3.9"]
|
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10.0-beta.3"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: "actions/checkout@v2"
|
- uses: "actions/checkout@v2"
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
!!! Warning
|
!!! Warning
|
||||||
|
|
||||||
GraphQL support in Starlette is **deprecated** as of version 0.15 and will
|
GraphQL support in Starlette is **deprecated** as of version 0.15 and will
|
||||||
be removed in a future release. Please consider using a third-party library
|
be removed in a future release. It is also incompatible with Python 3.10+.
|
||||||
to provide GraphQL support. This is usually done by mounting a GraphQL ASGI
|
Please consider using a third-party library to provide GraphQL support. This
|
||||||
application. See [#619](https://github.com/encode/starlette/issues/619).
|
is usually done by mounting a GraphQL ASGI application.
|
||||||
|
See [#619](https://github.com/encode/starlette/issues/619).
|
||||||
Some example libraries are:
|
Some example libraries are:
|
||||||
|
|
||||||
* [Ariadne](https://ariadnegraphql.org/docs/asgi)
|
* [Ariadne](https://ariadnegraphql.org/docs/asgi)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Optionals
|
# Optionals
|
||||||
graphene
|
graphene; python_version<'3.10'
|
||||||
itsdangerous
|
itsdangerous
|
||||||
jinja2
|
jinja2
|
||||||
python-multipart
|
python-multipart
|
||||||
|
|
|
@ -32,3 +32,8 @@ filterwarnings=
|
||||||
|
|
||||||
[coverage:run]
|
[coverage:run]
|
||||||
source_pkgs = starlette, tests
|
source_pkgs = starlette, tests
|
||||||
|
# GraphQLApp incompatible with and untested on Python 3.10. It's deprecated, let's just ignore
|
||||||
|
# coverage for it until it's gone.
|
||||||
|
omit =
|
||||||
|
starlette/graphql.py
|
||||||
|
tests/test_graphql.py
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -40,7 +40,7 @@ setup(
|
||||||
install_requires=["anyio>=3.0.0,<4"],
|
install_requires=["anyio>=3.0.0,<4"],
|
||||||
extras_require={
|
extras_require={
|
||||||
"full": [
|
"full": [
|
||||||
"graphene",
|
"graphene; python_version<'3.10'",
|
||||||
"itsdangerous",
|
"itsdangerous",
|
||||||
"jinja2",
|
"jinja2",
|
||||||
"python-multipart",
|
"python-multipart",
|
||||||
|
@ -60,6 +60,7 @@ setup(
|
||||||
"Programming Language :: Python :: 3.7",
|
"Programming Language :: Python :: 3.7",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
],
|
],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
|
import sys
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from starlette.testclient import TestClient
|
from starlette.testclient import TestClient
|
||||||
|
|
||||||
|
collect_ignore = ["test_graphql.py"] if sys.version_info >= (3, 10) else []
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(
|
@pytest.fixture(
|
||||||
params=[
|
params=[
|
||||||
|
|
Loading…
Reference in New Issue