Skip to content

Commit 092cc94

Browse files
committed
Revert "Add Python 3.12 support (apache#36755)"
This reverts commit 76dee0b.
1 parent ac5f720 commit 092cc94

File tree

3 files changed

+2
-24
lines changed

3 files changed

+2
-24
lines changed

airflow/providers/apache/cassandra/provider.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,6 @@ dependencies:
4646
- apache-airflow>=2.6.0
4747
- cassandra-driver>=3.13.0
4848

49-
# Cassandra provider is not yet compatible with Python 3.12
50-
# The main issue is that python cassandra driver by default uses asyncore which has been deprecated since
51-
# Python 3.6 and removed in Python 3.12 (https://docs.python.org/3.11/library/asyncore.html)
52-
#
53-
# Currently the "wheel" package 3.29.0 distributed for manylinux platform is build without libev support (
54-
# which could be a viable asyncore replacement), and cassandra driver works in Python 3.12 if it is built
55-
# with libev support (using sdist, having gcc, libev4 and libev-dev installed). But it would be too much to
56-
# expect our users to build the driver from sources to use it with Python 3.12, so we are waiting for the
57-
# next release of cassandra-driver which will have libev support in the wheel package.
58-
# The issue is tracked here https://datastax-oss.atlassian.net/browse/PYTHON-1378
59-
#
60-
# Another option to get cassandra drive back is to have asyncio support in the driver instead of asyncore:
61-
# The issue is tracked here: https://datastax-oss.atlassian.net/browse/PYTHON-1375 and is scheduled
62-
# to be fixed in cassandra-driver 3.30.0.
63-
#
64-
# All Cassandra tests are automatically skipped if cassandra package is not present, so once you remove the
65-
# exclusion, they will start running for Python 3.12.
66-
#
67-
excluded-python-versions: ['3.12']
68-
6949
integrations:
7050
- integration-name: Apache Cassandra
7151
external-doc-url: https://cassandra.apache.org/

generated/provider_dependencies.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@
9090
],
9191
"devel-deps": [],
9292
"cross-providers-deps": [],
93-
"excluded-python-versions": [
94-
"3.12"
95-
],
93+
"excluded-python-versions": [],
9694
"state": "ready"
9795
},
9896
"apache.drill": {

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ apache-beam = [ # source: airflow/providers/apache/beam/provider.yaml
573573
"pyarrow>=14.0.1;python_version != \"3.12\"",
574574
]
575575
apache-cassandra = [ # source: airflow/providers/apache/cassandra/provider.yaml
576-
"cassandra-driver>=3.13.0;python_version != \"3.12\"",
576+
"cassandra-driver>=3.13.0",
577577
]
578578
apache-drill = [ # source: airflow/providers/apache/drill/provider.yaml
579579
"apache-airflow[common_sql]",

0 commit comments

Comments
 (0)