Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gevent enable for Python 3 #88

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions chaussette/backend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@
except ImportError:
pass

PY3 = sys.version_info[0] == 3
try:
from chaussette.backend import _gevent
_backends['gevent'] = _gevent.Server

if not PY3:
try:
from chaussette.backend import _gevent
_backends['gevent'] = _gevent.Server
from chaussette.backend import _fastgevent
_backends['fastgevent'] = _fastgevent.Server
except ImportError:
pass

from chaussette.backend import _fastgevent
_backends['fastgevent'] = _fastgevent.Server
except ImportError:
pass
PY3 = sys.version_info[0] == 3

if not PY3:
try:
from chaussette.backend import _geventwebsocket
_backends['geventwebsocket'] = _geventwebsocket.Server
Expand Down
2 changes: 1 addition & 1 deletion chaussette/tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'socketio', 'tornado', 'waitress',
'wsgiref']
PYPY = ['tornado', 'waitress', 'wsgiref']
PY3 = ['eventlet', 'meinheld', 'tornado', 'waitress', 'wsgiref']
PY3 = ['eventlet', 'gevent', 'meinheld', 'tornado', 'waitress', 'wsgiref']


class TestBackend(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ commands =
deps =
{[testenv]deps}
ws4py
gevent
eventlet
waitress

Expand Down