From 0feb9248cf37c6ac68a05c3bd4c8d454f734a1b8 Mon Sep 17 00:00:00 2001 From: Jonas Drotleff Date: Sat, 10 Jun 2023 23:31:19 +0300 Subject: [PATCH] Requirements: Update to psycopg 3.1 --- gunicorn.conf.py | 2 -- requirements.txt | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gunicorn.conf.py b/gunicorn.conf.py index fd924982..9e153cb2 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -15,12 +15,10 @@ from gunicorn.workers.base import Worker from gevent import monkey -from psycogreen.gevent import patch_psycopg def post_fork_patch(server, worker: Worker): monkey.patch_all() - patch_psycopg() worker.log.info("Patched 'psycopg'") diff --git a/requirements.txt b/requirements.txt index 00d6bf61..faefa5c7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ django~=4.1 -psycogreen~=1.0.2 -psycopg2-binary~=2.9.3 +psycopg~=3.1 celery[redis]~=5.2 redis~=4.5 gevent~=22.10.2