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

eladkal 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 a5d343d37ce Cleanup Cassandra driver dependencies (#61724)
a5d343d37ce is described below

commit a5d343d37ce337746a9aad32accb66e36b49237d
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Feb 10 15:06:30 2026 +0100

    Cleanup Cassandra driver dependencies (#61724)
    
    Follow-up after #61666 and #61685 - there are two small things to
    fix:
    
    * setuptools limit is not effective, because it is not taken
      into account when cassandra driver is built from sdist (which
      happens if the driver does not have wheels published for python
      version it is installed on). All the tools are using build
      isolation by default when installing sdist-build packages so the
      version specified in dependencies does not matter in this case -
      so We should remove it.
    
    * the specification for >= 3.29.2 that limits the driver to versions
      that have wheels for relevant python versions was ambiguous
      >= 3.29.1 - both applied to `<3.13`. We needed to add >= as well
      to make sure that the ranges are not overlapping. Not a big
      issue because in this case resolver will handle it well, but it
      is still not exactly correct.
---
 providers/apache/cassandra/docs/index.rst | 9 ++++-----
 providers/apache/cassandra/pyproject.toml | 5 +----
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/providers/apache/cassandra/docs/index.rst 
b/providers/apache/cassandra/docs/index.rst
index 647aea3c5b5..05a88d90f88 100644
--- a/providers/apache/cassandra/docs/index.rst
+++ b/providers/apache/cassandra/docs/index.rst
@@ -96,16 +96,15 @@ Requirements
 
 The minimum Apache Airflow version supported by this provider distribution is 
``2.11.0``.
 
-==========================================  
======================================
+==========================================  
==================================================================
 PIP package                                 Version required
-==========================================  
======================================
+==========================================  
==================================================================
 ``apache-airflow``                          ``>=2.11.0``
 ``apache-airflow-providers-common-compat``  ``>=1.8.0``
 ``cassandra-driver``                        ``>=3.29.3; python_version >= 
"3.13"``
-``cassandra-driver``                        ``>=3.29.2; python_version < 
"3.13"``
+``cassandra-driver``                        ``>=3.29.2; python_version >= 
"3.12" and python_version < "3.13"``
 ``cassandra-driver``                        ``>=3.29.1; python_version < 
"3.12"``
-``setuptools``                              ``<82.0.0``
-==========================================  
======================================
+==========================================  
==================================================================
 
 Cross provider package dependencies
 -----------------------------------
diff --git a/providers/apache/cassandra/pyproject.toml 
b/providers/apache/cassandra/pyproject.toml
index 4db8fbf12f0..a2782474fb3 100644
--- a/providers/apache/cassandra/pyproject.toml
+++ b/providers/apache/cassandra/pyproject.toml
@@ -61,11 +61,8 @@ dependencies = [
     "apache-airflow>=2.11.0",
     "apache-airflow-providers-common-compat>=1.8.0",
     "cassandra-driver>=3.29.3; python_version >= '3.13'",
-    "cassandra-driver>=3.29.2; python_version < '3.13'",
+    "cassandra-driver>=3.29.2; python_version >= '3.12' and python_version < 
'3.13'",
     "cassandra-driver>=3.29.1; python_version < '3.12'",
-    # https://github.com/apache/cassandra-python-driver/pull/1268 remove this 
once new version of
-    # cassandra-driver is released with the fix, and we depend on it as 
minimum version for all python versions
-    "setuptools<82.0.0",
 ]
 
 [dependency-groups]

Reply via email to