From 7d9329935a842510fab5eb2634bf08e40e1cb2cb Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 5 Jan 2023 16:34:14 +0100 Subject: [PATCH] Refs #32355 -- Bumped mysqlclient requirement to >= 1.4.3. mysqlclient 1.4.3 is the first release to support Python 3.8. --- django/db/backends/mysql/base.py | 4 ++-- docs/ref/databases.txt | 2 +- docs/releases/4.2.txt | 3 +++ tests/requirements/mysql.txt | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index ca12917322..6811b10abb 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -31,9 +31,9 @@ from .schema import DatabaseSchemaEditor from .validation import DatabaseValidation version = Database.version_info -if version < (1, 4, 0): +if version < (1, 4, 3): raise ImproperlyConfigured( - "mysqlclient 1.4.0 or newer is required; you have %s." % Database.__version__ + "mysqlclient 1.4.3 or newer is required; you have %s." % Database.__version__ ) diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index ee573c5f65..860d550232 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -450,7 +450,7 @@ Connector/Python includes `its own`_. mysqlclient ~~~~~~~~~~~ -Django requires `mysqlclient`_ 1.4.0 or later. +Django requires `mysqlclient`_ 1.4.3 or later. MySQL Connector/Python ~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt index c846d1b3d7..55aef8a327 100644 --- a/docs/releases/4.2.txt +++ b/docs/releases/4.2.txt @@ -507,6 +507,9 @@ Miscellaneous that differ only in case. If you need the previous behavior, use :class:`~django.contrib.auth.forms.BaseUserCreationForm` instead. +* The minimum supported version of ``mysqlclient`` is increased from 1.4.0 to + 1.4.3. + .. _deprecated-features-4.2: Features deprecated in 4.2 diff --git a/tests/requirements/mysql.txt b/tests/requirements/mysql.txt index df8a023017..27be1d86cc 100644 --- a/tests/requirements/mysql.txt +++ b/tests/requirements/mysql.txt @@ -1 +1 @@ -mysqlclient >= 1.4.0 +mysqlclient >= 1.4.3