This is an automated email from the ASF dual-hosted git repository.
vatsrahul1001 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 7ea8362c55d Fix broken tests due to pymysql 1.2.0 incompat with
aiomysql (#67467)
7ea8362c55d is described below
commit 7ea8362c55dcf0023b51d1f3b51b6bc87781c043
Author: Amogh Desai <[email protected]>
AuthorDate: Mon May 25 18:40:11 2026 +0530
Fix broken tests due to pymysql 1.2.0 incompat with aiomysql (#67467)
---
providers/mysql/docs/index.rst | 1 +
providers/mysql/pyproject.toml | 3 +++
uv.lock | 12 +++++++-----
3 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/providers/mysql/docs/index.rst b/providers/mysql/docs/index.rst
index 817d9877fda..0292fd7e40d 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 6df421ed28d..71210c522e8 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 7d2bf8daf29..c1e290951ca 100644
--- a/uv.lock
+++ b/uv.lock
@@ -6265,6 +6265,7 @@ dependencies = [
{ name = "apache-airflow-providers-common-sql" },
{ name = "mysql-connector-python" },
{ name = "mysqlclient", marker = "sys_platform != 'darwin'" },
+ { name = "pymysql" },
]
[package.optional-dependencies]
@@ -6315,6 +6316,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"]
@@ -19155,11 +19157,11 @@ wheels = [
[[package]]
name = "pymysql"
-version = "1.2.0"
+version = "1.1.3"
source = { registry = "https://pypi.org/simple" }
-sdist = { url =
"https://files.pythonhosted.org/packages/c9/bc/1c6a92f385940f727daeecf3bacaf186e03875dff57197801046c583bcf0/pymysql-1.2.0.tar.gz",
hash =
"sha256:6c7b17ca686988104d7426c27895b455cdeea3e9d3ceb1270f0c3704fead8c33", size
= 49021, upload-time = "2026-05-19T08:26:22.302Z" }
+sdist = { url =
"https://files.pythonhosted.org/packages/7f/ec/8d45c920e90445f0b75c590b32851853ed319763b0d8dff8d283052da8cf/pymysql-1.1.3.tar.gz",
hash =
"sha256:e70ebf2047a4edf6138cf79c68ad418ef620af65900aa585c5e8bfc95044d43a", size
= 48207, upload-time = "2026-05-01T09:09:54.532Z" }
wheels = [
- { url =
"https://files.pythonhosted.org/packages/c4/bd/2534e130295c8cfd4f0a2e31623baab7502278f1e97bcfe61db75656a77f/pymysql-1.2.0-py3-none-any.whl",
hash =
"sha256:62169ce6d5510f08e140c5e7990ee884a9764024e4a9a27b2cc11f1099322ae0", size
= 45716, upload-time = "2026-05-19T08:26:20.974Z" },
+ { url =
"https://files.pythonhosted.org/packages/8e/dc/9085f3d6f497e9b25fb40d6e8ecef3ddbb5cf977a949b933624a299f5c16/pymysql-1.1.3-py3-none-any.whl",
hash =
"sha256:8164ba62c552f6105f3b11753352d0f16b90d1703ba67d81923d5a8a5d1c5289", size
= 45356, upload-time = "2026-05-01T09:09:53.316Z" },
]
[[package]]
@@ -21077,8 +21079,8 @@ name = "secretstorage"
version = "3.5.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
- { name = "cryptography", marker = "python_full_version >= '3.14' or
platform_machine != 'arm64' or sys_platform != 'darwin'" },
- { name = "jeepney", marker = "python_full_version >= '3.14' or
platform_machine != 'arm64' or sys_platform != 'darwin'" },
+ { name = "cryptography", marker = "(python_full_version >= '3.14' and
sys_platform == 'darwin') or (python_full_version < '3.15' and sys_platform ==
'emscripten') or (python_full_version < '3.15' and sys_platform == 'win32') or
(platform_machine != 'arm64' and sys_platform == 'darwin') or (sys_platform !=
'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')" },
+ { name = "jeepney", marker = "(python_full_version >= '3.14' and
sys_platform == 'darwin') or (python_full_version < '3.15' and sys_platform ==
'emscripten') or (python_full_version < '3.15' and sys_platform == 'win32') or
(platform_machine != 'arm64' and sys_platform == 'darwin') or (sys_platform !=
'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')" },
]
sdist = { url =
"https://files.pythonhosted.org/packages/1c/03/e834bcd866f2f8a49a85eaff47340affa3bfa391ee9912a952a1faa68c7b/secretstorage-3.5.0.tar.gz",
hash =
"sha256:f04b8e4689cbce351744d5537bf6b1329c6fc68f91fa666f60a380edddcd11be", size
= 19884, upload-time = "2025-11-23T19:02:53.191Z" }
wheels = [