This is an automated email from the ASF dual-hosted git repository.

vatsrahul1001 pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-2-test by this push:
     new 3f0d3e7a1bb Fix broken tests due to pymysql 1.2.0 incompat with 
aiomysql (#67467) (#67470)
3f0d3e7a1bb is described below

commit 3f0d3e7a1bbc4669f224efdedeef8496522b62c7
Author: Rahul Vats <[email protected]>
AuthorDate: Mon May 25 18:52:55 2026 +0530

    Fix broken tests due to pymysql 1.2.0 incompat with aiomysql (#67467) 
(#67470)
    
    (cherry picked from commit 7ea8362c55dcf0023b51d1f3b51b6bc87781c043)
    
    Co-authored-by: Amogh Desai <[email protected]>
---
 providers/mysql/docs/index.rst | 1 +
 providers/mysql/pyproject.toml | 3 +++
 uv.lock                        | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/providers/mysql/docs/index.rst b/providers/mysql/docs/index.rst
index 5527adae4a7..f2873c90d34 100644
--- a/providers/mysql/docs/index.rst
+++ b/providers/mysql/docs/index.rst
@@ -107,6 +107,7 @@ PIP package                                 Version required
 ``mysql-connector-python``                  ``>=9.1.0; python_version < 
"3.12"``
 ``mysql-connector-python``                  ``>=9.1.0,!=9.7.0; python_version 
>= "3.12"``
 ``aiomysql``                                ``>=0.2.0``
+``pymysql``                                 ``>=1.0.3,<1.2``
 ==========================================  
=============================================
 
 Cross provider package dependencies
diff --git a/providers/mysql/pyproject.toml b/providers/mysql/pyproject.toml
index 16c0e8fc087..ed159a68437 100644
--- a/providers/mysql/pyproject.toml
+++ b/providers/mysql/pyproject.toml
@@ -68,7 +68,10 @@ dependencies = [
     'mysqlclient>=2.2.5; sys_platform != "darwin"',
     'mysql-connector-python>=9.1.0; python_version < "3.12"',
     'mysql-connector-python>=9.1.0, !=9.7.0; python_version >= "3.12"',
+    # pymysql 1.2.0 changed ping() to require reconnect as a positional arg;
+    # aiomysql is not yet compatible — cap until aiomysql releases a fix
     "aiomysql>=0.2.0",
+    "pymysql>=1.0.3,<1.2",
 ]
 
 # The optional dependencies should be modified in place in the generated file
diff --git a/uv.lock b/uv.lock
index ec39daa5a23..b9b83279905 100644
--- a/uv.lock
+++ b/uv.lock
@@ -6042,6 +6042,7 @@ dependencies = [
     { name = "apache-airflow-providers-common-sql" },
     { name = "mysql-connector-python" },
     { name = "mysqlclient", marker = "sys_platform != 'darwin'" },
+    { name = "pymysql" },
 ]
 
 [package.optional-dependencies]
@@ -6092,6 +6093,7 @@ requires-dist = [
     { name = "mysql-connector-python", marker = "python_full_version < 
'3.12'", specifier = ">=9.1.0" },
     { name = "mysql-connector-python", marker = "python_full_version >= 
'3.12'", specifier = ">=9.1.0,!=9.7.0" },
     { name = "mysqlclient", marker = "sys_platform != 'darwin'", specifier = 
">=2.2.5" },
+    { name = "pymysql", specifier = ">=1.0.3,<1.2" },
 ]
 provides-extras = ["mysql-connector-python", "amazon", "openlineage", 
"presto", "trino", "vertica"]
 

Reply via email to