mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-21 08:24:14 -06:00
Remove the dependency on python packages eventlet and greenlet. #8102
This commit is contained in:
parent
efe7f1de6a
commit
772c6ecd84
@ -12,7 +12,6 @@ Flask==3.0.*
|
||||
Flask-Login==0.*
|
||||
Flask-Mail==0.*
|
||||
Flask-Migrate==4.*
|
||||
greenlet==1.1.2; python_version <= '3.10'
|
||||
Flask-SQLAlchemy==3.1.*
|
||||
Flask-WTF==1.2.*
|
||||
Flask-Compress==1.*
|
||||
@ -36,7 +35,6 @@ cryptography==43.0.*
|
||||
sshtunnel==0.*
|
||||
ldap3==2.*
|
||||
gssapi==1.9.*
|
||||
eventlet==0.37.0
|
||||
user-agents==2.2.0
|
||||
pywinpty==2.0.*; sys_platform=="win32"
|
||||
Authlib==1.3.*
|
||||
|
@ -35,16 +35,6 @@ if 'PGADMIN_SERVER_MODE' in os.environ:
|
||||
else:
|
||||
builtins.SERVER_MODE = None
|
||||
|
||||
if (3, 10) > sys.version_info > (3, 8, 99) and os.name == 'posix':
|
||||
# Fix eventlet issue with Python 3.9.
|
||||
# Ref: https://github.com/eventlet/eventlet/issues/670
|
||||
# This was causing issue in psycopg3
|
||||
from eventlet import hubs
|
||||
hubs.use_hub("poll")
|
||||
|
||||
import selectors
|
||||
selectors.DefaultSelector = selectors.PollSelector
|
||||
|
||||
import config
|
||||
import setup
|
||||
from pgadmin import create_app, socketio
|
||||
|
@ -12,7 +12,7 @@ import select
|
||||
import struct
|
||||
import config
|
||||
import re
|
||||
from eventlet.green import subprocess
|
||||
import subprocess
|
||||
from sys import platform as _platform
|
||||
from config import PG_DEFAULT_DRIVER
|
||||
from flask import Response, request
|
||||
|
Loading…
Reference in New Issue
Block a user