From d9af197801376fae178761cac12d57178a738cf4 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 28 Jan 2025 08:02:13 +0100 Subject: Refs #36005 -- Bumped minimum supported versions of 3rd-party packages. This bumps minimum supported versions of 3rd-party packages to the first releases to support Python 3.12. --- django/db/backends/postgresql/base.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'django/db/backends/postgresql/base.py') diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index c864cab57a..a0b5e4154e 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -1,7 +1,7 @@ """ PostgreSQL database backend for Django. -Requires psycopg2 >= 2.8.4 or psycopg >= 3.1.8 +Requires psycopg2 >= 2.9.9 or psycopg >= 3.1.12 """ import asyncio @@ -34,13 +34,13 @@ def psycopg_version(): return get_version_tuple(version) -if psycopg_version() < (2, 8, 4): +if psycopg_version() < (2, 9, 9): raise ImproperlyConfigured( - f"psycopg2 version 2.8.4 or newer is required; you have {Database.__version__}" + f"psycopg2 version 2.9.9 or newer is required; you have {Database.__version__}" ) -if (3,) <= psycopg_version() < (3, 1, 8): +if (3,) <= psycopg_version() < (3, 1, 12): raise ImproperlyConfigured( - f"psycopg version 3.1.8 or newer is required; you have {Database.__version__}" + f"psycopg version 3.1.12 or newer is required; you have {Database.__version__}" ) -- cgit v1.3