Skip to content

Commit

Permalink
Added support for graphql-core 3 (stable) (#47)
Browse files Browse the repository at this point in the history
Changes include:
* Modified an error class to be more compatible
* Added typing_extensions req
  • Loading branch information
XChikuX authored Sep 27, 2022
1 parent 2800ff5 commit a63677c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
3 changes: 1 addition & 2 deletions graphene_tornado/tornado_graphql_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
from graphql import OperationType
from graphql import parse
from graphql import validate
from graphql.error import format_error as format_graphql_error
from graphql.error import GraphQLFormattedError as format_graphql_error
from graphql.error.graphql_error import GraphQLError
from graphql.error.syntax_error import GraphQLSyntaxError
from graphql.execution.execute import ExecutionResult
from graphql.pyutils import is_awaitable
from mypy_extensions import TypedDict
from tornado import web
from tornado.escape import json_encode
from tornado.escape import to_unicode
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ mypy==0.770
pre-commit==2.2.0
pytest==4.4.1
pytest-cov==2.6.1
pytest-tornado==0.8.0
pytest-tornado==0.8.1
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
six>=1.10.0
json-stable-stringify-python==0.2
graphene>=3.0b1
graphene>=3.0
Jinja2>=2.10.1, <2.11.0
opencensus>=0.7.7
protobuf>=3.7.1
snapshottest==0.5.1
tornado>=5.1.0
tornado>=6.1.0, <7.0
tornado-retry-client==0.6.1
tox
werkzeug==0.15.3
werkzeug
typing_extensions
18 changes: 8 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'mock',
'pytest>=4.4.1',
'pytest-cov>=2.6.1',
'pytest-tornado>=0.7.0',
'pytest-tornado>=0.8.1',
'tox'
]

Expand All @@ -32,17 +32,14 @@
license='MIT',

classifiers=[
'Development Status :: 3 - Alpha',
'Development Status :: 3 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10'
],

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

install_requires=[
'six>=1.10.0',
'graphene>=3.0b1',
'graphene>=3.0',
'Jinja2>=2.10.1',
'tornado>=5.1.0',
'werkzeug==0.12.2'
'tornado>=6.1.0, <7.0',
'werkzeug',
'typing_extensions'
],
setup_requires=[
'pytest',
Expand Down

0 comments on commit a63677c

Please sign in to comment.