Remove the dependency on python packages eventlet and greenlet. #8102

This commit is contained in:
Aditya Toshniwal 2024-11-07 16:45:18 +05:30 committed by GitHub
parent efe7f1de6a
commit 772c6ecd84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 13 deletions

View File

@ -12,7 +12,6 @@ Flask==3.0.*
Flask-Login==0.* Flask-Login==0.*
Flask-Mail==0.* Flask-Mail==0.*
Flask-Migrate==4.* Flask-Migrate==4.*
greenlet==1.1.2; python_version <= '3.10'
Flask-SQLAlchemy==3.1.* Flask-SQLAlchemy==3.1.*
Flask-WTF==1.2.* Flask-WTF==1.2.*
Flask-Compress==1.* Flask-Compress==1.*
@ -36,7 +35,6 @@ cryptography==43.0.*
sshtunnel==0.* sshtunnel==0.*
ldap3==2.* ldap3==2.*
gssapi==1.9.* gssapi==1.9.*
eventlet==0.37.0
user-agents==2.2.0 user-agents==2.2.0
pywinpty==2.0.*; sys_platform=="win32" pywinpty==2.0.*; sys_platform=="win32"
Authlib==1.3.* Authlib==1.3.*

View File

@ -35,16 +35,6 @@ if 'PGADMIN_SERVER_MODE' in os.environ:
else: else:
builtins.SERVER_MODE = None 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 config
import setup import setup
from pgadmin import create_app, socketio from pgadmin import create_app, socketio

View File

@ -12,7 +12,7 @@ import select
import struct import struct
import config import config
import re import re
from eventlet.green import subprocess import subprocess
from sys import platform as _platform from sys import platform as _platform
from config import PG_DEFAULT_DRIVER from config import PG_DEFAULT_DRIVER
from flask import Response, request from flask import Response, request