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

potiuk 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 573cb473f5f Exclude mysql-connector-python 9.6.0 version (#60889)
573cb473f5f is described below

commit 573cb473f5fe85f23f52d713e81cf3950f6cb120
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Jan 21 20:17:03 2026 +0100

    Exclude mysql-connector-python 9.6.0 version (#60889)
    
    MySQL Connector/Python package from Oracle version 9.6.0 has been badly
    published to PyPI and it misses both sdist and wheel distributions for
    Python 3.12, 3.13, 3.14 making it impossible to install on these Python
    versions. We need to exclude this version until Oracle fixes the issue.
    Issue raised: https://bugs.mysql.com/bug.php?id=119736
---
 providers/mysql/docs/index.rst | 2 +-
 providers/mysql/pyproject.toml | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/providers/mysql/docs/index.rst b/providers/mysql/docs/index.rst
index 673ed806928..bdcb0aeb375 100644
--- a/providers/mysql/docs/index.rst
+++ b/providers/mysql/docs/index.rst
@@ -104,7 +104,7 @@ PIP package                                 Version required
 ``apache-airflow-providers-common-compat``  ``>=1.12.0``
 ``apache-airflow-providers-common-sql``     ``>=1.20.0``
 ``mysqlclient``                             ``>=2.2.5; sys_platform != 
"darwin"``
-``mysql-connector-python``                  ``>=9.1.0``
+``mysql-connector-python``                  ``>=9.1.0,!=9.6.0``
 ``aiomysql``                                ``>=0.2.0``
 ==========================================  
=====================================
 
diff --git a/providers/mysql/pyproject.toml b/providers/mysql/pyproject.toml
index 90b30af234f..eff40bc03fc 100644
--- a/providers/mysql/pyproject.toml
+++ b/providers/mysql/pyproject.toml
@@ -65,7 +65,11 @@ dependencies = [
     # Install and compile, and it's really only used by MySQL provider, so we 
can skip it on MacOS
     # Instead, if someone attempts to use it on MacOS, they will get 
explanatory error on how to install it
     'mysqlclient>=2.2.5; sys_platform != "darwin"',
-    'mysql-connector-python>=9.1.0',
+    # MySQL Connector/Python package from Oracle version 9.6.0 has been badly 
published to PyPI
+    # and it misses both sdist and wheel distributions for Python 3.12, 3.13, 
3.14 making it impossible
+    # to install on these Python versions. We need to exclude this version 
until Oracle
+    # fixes the issue. Issue raised: https://bugs.mysql.com/bug.php?id=119736
+    'mysql-connector-python>=9.1.0,!=9.6.0',
     "aiomysql>=0.2.0",
 ]
 

Reply via email to