Skip to content

Commit 27084a2

Browse files
committed
Fix import in Python 2.7
1 parent 38a4338 commit 27084a2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

graphql_ws/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,4 @@
77
__version__ = '0.1.0'
88

99

10-
from .observable_aiter import setup_observable_extension
1110
from .base import BaseConnectionContext, BaseSubscriptionServer
12-
13-
setup_observable_extension()

graphql_ws/aiohttp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@
55
from graphql.execution.executors.asyncio import AsyncioExecutor
66

77
from .base import ConnectionClosedException, BaseConnectionContext, BaseSubscriptionServer
8+
from .observable_aiter import setup_observable_extension
89

910
from .constants import (
1011
GQL_CONNECTION_ACK,
1112
GQL_CONNECTION_ERROR,
1213
GQL_COMPLETE
1314
)
1415

16+
setup_observable_extension()
17+
1518

1619
class AiohttpConnectionContext(BaseConnectionContext):
1720
async def receive(self):

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
]
3131

3232
setup(
33-
name='graphql_ws',
33+
name='graphql-ws',
3434
version='0.1.1',
3535
description="Websocket server for GraphQL subscriptions",
3636
long_description=readme + '\n\n' + history,
@@ -42,7 +42,7 @@
4242
install_requires=requirements,
4343
license="MIT license",
4444
zip_safe=False,
45-
keywords='graphql_ws',
45+
keywords=['graphql', 'subscriptions', 'graphene', 'websockets'],
4646
classifiers=[
4747
'Development Status :: 2 - Pre-Alpha',
4848
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)