From 099079c0b62d52884f8c95c3faa5ec972e5c6c98 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 12 Jul 2021 11:37:59 +0200 Subject: [PATCH] psycopg2: pin to a compatible version with Django 2.2 We upgraded to latest psycopg2 in #8293 to a version that's incompatible with Django 2.2. This commit downgrades it to a compatible version. Closes #8334 --- requirements/deploy.txt | 6 +++++- requirements/docker.txt | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/requirements/deploy.txt b/requirements/deploy.txt index e3809df00ba..b9ecd8e04da 100644 --- a/requirements/deploy.txt +++ b/requirements/deploy.txt @@ -1,7 +1,11 @@ # Requirements for our production systems -r pip.txt -psycopg2==2.9.1 + +# psycopg2 2.9 is not compatible with Django 2.2 +# https://github.com/readthedocs/readthedocs.org/issues/8334 +psycopg2==2.8.6 # pyup: ignore + gunicorn==20.1.0 # Version 3.0.0 drops support for Django < 3.0 diff --git a/requirements/docker.txt b/requirements/docker.txt index 15c8d56fd6d..9a62e3088cd 100644 --- a/requirements/docker.txt +++ b/requirements/docker.txt @@ -2,7 +2,9 @@ -r pip.txt # https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary -psycopg2-binary==2.9.1 +# psycopg2 2.9 is not compatible with Django 2.2 +# https://github.com/readthedocs/readthedocs.org/issues/8334 +psycopg2-binary==2.8.6 # pyup: ignore # Version 3.0.0 drops support for Django < 3.0 # https://github.com/sebleier/django-redis-cache/#300