Browse Source

[libs] Fix gunicorn and gevent lib compatibility and dependency on six

Romain Rigaux 4 years ago
parent
commit
d8e436dc08

+ 1 - 1
desktop/core/requirements.txt

@@ -28,7 +28,7 @@ django_prometheus==1.0.15
 django-webpack-loader==1.0.0
 djangorestframework-simplejwt==4.4.0  # For Python 3.6
 djangorestframework==3.12.2
-eventlet==0.31.0
+eventlet==0.30.2
 future==0.18.2
 greenlet==0.4.15
 gunicorn==19.9.0

+ 2 - 3
desktop/core/src/desktop/management/commands/rungunicornserver.py

@@ -19,7 +19,6 @@ from __future__ import unicode_literals
 
 import os
 import sys
-
 import multiprocessing
 
 import gunicorn.app.base
@@ -27,15 +26,15 @@ import gunicorn.app.base
 from desktop import conf
 from django.core.management.base import BaseCommand
 from django.core.wsgi import get_wsgi_application
-
 from gunicorn import util
-from gunicorn.six import iteritems
+from six import iteritems
 
 if sys.version_info[0] > 2:
   from django.utils.translation import gettext as _
 else:
   from django.utils.translation import ugettext as _
 
+
 GUNICORN_SERVER_HELP = r"""
   Run Hue using the Gunicorn WSGI server in asynchronous mode.
 """