From f6347e24a2285e392b6ad1454589678ade7d5cce Mon Sep 17 00:00:00 2001 From: Alvaro Lopez Garcia Date: Tue, 23 Jul 2019 13:35:00 +0200 Subject: [PATCH] Bump gevent dependency version --- deepaas/openwhisk/proxy.py | 7 +++++-- requirements.txt | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/deepaas/openwhisk/proxy.py b/deepaas/openwhisk/proxy.py index d8107fbb..98e0713f 100644 --- a/deepaas/openwhisk/proxy.py +++ b/deepaas/openwhisk/proxy.py @@ -24,7 +24,10 @@ import sys import flask -from gevent import wsgi +try: + from gevent import wsgi as pywsgi # noqa +except ImportError: + from gevent import pywsgi # noqa from oslo_config import cfg from deepaas import api @@ -101,5 +104,5 @@ def complete(response): def main(): - server = wsgi.WSGIServer((CONF.listen_ip, 8080), proxy, log=None) + server = pywsgi.WSGIServer((CONF.listen_ip, 8080), proxy, log=None) server.serve_forever() diff --git a/requirements.txt b/requirements.txt index f4c6c104..8c8bb4a3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,4 +12,4 @@ Flask>=1.0.2 Werkzeug>=0.15.0 stevedore>=1.20.0 # Apache-2.0 -gevent==1.2.1 +gevent==1.4.0