Skip to content

Commit a63677c

Browse files
authored
Added support for graphql-core 3 (stable) (#47)
Changes include: * Modified an error class to be more compatible * Added typing_extensions req
1 parent 2800ff5 commit a63677c

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

graphene_tornado/tornado_graphql_handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
from graphql import OperationType
1919
from graphql import parse
2020
from graphql import validate
21-
from graphql.error import format_error as format_graphql_error
21+
from graphql.error import GraphQLFormattedError as format_graphql_error
2222
from graphql.error.graphql_error import GraphQLError
2323
from graphql.error.syntax_error import GraphQLSyntaxError
2424
from graphql.execution.execute import ExecutionResult
2525
from graphql.pyutils import is_awaitable
26-
from mypy_extensions import TypedDict
2726
from tornado import web
2827
from tornado.escape import json_encode
2928
from tornado.escape import to_unicode

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ mypy==0.770
55
pre-commit==2.2.0
66
pytest==4.4.1
77
pytest-cov==2.6.1
8-
pytest-tornado==0.8.0
8+
pytest-tornado==0.8.1

requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
six>=1.10.0
22
json-stable-stringify-python==0.2
3-
graphene>=3.0b1
3+
graphene>=3.0
44
Jinja2>=2.10.1, <2.11.0
55
opencensus>=0.7.7
66
protobuf>=3.7.1
77
snapshottest==0.5.1
8-
tornado>=5.1.0
8+
tornado>=6.1.0, <7.0
99
tornado-retry-client==0.6.1
1010
tox
11-
werkzeug==0.15.3
11+
werkzeug
12+
typing_extensions

setup.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'mock',
1414
'pytest>=4.4.1',
1515
'pytest-cov>=2.6.1',
16-
'pytest-tornado>=0.7.0',
16+
'pytest-tornado>=0.8.1',
1717
'tox'
1818
]
1919

@@ -32,17 +32,14 @@
3232
license='MIT',
3333

3434
classifiers=[
35-
'Development Status :: 3 - Alpha',
35+
'Development Status :: 3 - Beta',
3636
'Intended Audience :: Developers',
3737
'Topic :: Software Development :: Libraries',
38-
'Programming Language :: Python :: 3',
39-
'Programming Language :: Python :: 3.3',
40-
'Programming Language :: Python :: 3.4',
41-
'Programming Language :: Python :: 3.5',
4238
'Programming Language :: Python :: 3.6',
4339
'Programming Language :: Python :: 3.7',
4440
'Programming Language :: Python :: 3.8',
45-
'Programming Language :: Python :: Implementation :: PyPy',
41+
'Programming Language :: Python :: 3.9',
42+
'Programming Language :: Python :: 3.10'
4643
],
4744

4845
keywords='api graphql protocol rest relay graphene',
@@ -51,10 +48,11 @@
5148

5249
install_requires=[
5350
'six>=1.10.0',
54-
'graphene>=3.0b1',
51+
'graphene>=3.0',
5552
'Jinja2>=2.10.1',
56-
'tornado>=5.1.0',
57-
'werkzeug==0.12.2'
53+
'tornado>=6.1.0, <7.0',
54+
'werkzeug',
55+
'typing_extensions'
5856
],
5957
setup_requires=[
6058
'pytest',

0 commit comments

Comments
 (0)