Skip to content

Commit

Permalink
Limit dnspython to < 2.3.0 until eventlet incompatibitliy is solved (#…
Browse files Browse the repository at this point in the history
…28962)

The dnspython has been released 2 hours ago and apparently eventlet
that cassandra-driver uses is not compatible with the new version.

Until the problem is fixed, we should limit dnspython to <2.3.0.

Related: eventlet/eventlet#781
  • Loading branch information
potiuk authored Jan 15, 2023
1 parent 3a3adfb commit d169df7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions airflow/providers/apache/cassandra/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ versions:
dependencies:
- apache-airflow>=2.3.0
- cassandra-driver>=3.13.0
# dnspython 2.3.0 is not compatible with eventlet that cassandra-driver uses under-the-hood
# This can be removed when the issue is resolved (reported in two places):
# * https://github.com/eventlet/eventlet/issues/781
# * https://datastax-oss.atlassian.net/browse/PYTHON-1320
- dnspython<2.3.0

integrations:
- integration-name: Apache Cassandra
Expand Down
3 changes: 2 additions & 1 deletion generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"apache.cassandra": {
"deps": [
"apache-airflow>=2.3.0",
"cassandra-driver>=3.13.0"
"cassandra-driver>=3.13.0",
"dnspython<2.3.0"
],
"cross-providers-deps": []
},
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ def write_version(filename: str = str(AIRFLOW_SOURCES_ROOT / "airflow" / "git_ve
# If you change this mark you should also change ./scripts/ci/check_order_setup.py
# Start dependencies group
async_packages = [
# dnspython 2.3.0 is not compatible with eventlet.
# This can be removed when the issue is resolved (reported in two places):
# * https://github.com/eventlet/eventlet/issues/781
# * https://datastax-oss.atlassian.net/browse/PYTHON-1320
"dnspython<2.3.0",
"eventlet>=0.9.7",
"gevent>=0.13",
"greenlet>=0.4.9",
Expand Down

0 comments on commit d169df7

Please sign in to comment.