summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-05 16:34:14 +0100
committerGitHub <noreply@github.com>2023-01-05 16:34:14 +0100
commit7d9329935a842510fab5eb2634bf08e40e1cb2cb (patch)
tree8126f686ccf1b506a898a6c1e8624b13fba23989
parent6c86495bcee22eac19d7fb040b2988b830707cbd (diff)
Refs #32355 -- Bumped mysqlclient requirement to >= 1.4.3.
mysqlclient 1.4.3 is the first release to support Python 3.8.
-rw-r--r--django/db/backends/mysql/base.py4
-rw-r--r--docs/ref/databases.txt2
-rw-r--r--docs/releases/4.2.txt3
-rw-r--r--tests/requirements/mysql.txt2
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