Skip to content

Commit db85f7e

Browse files
potiukephraimbuddy
authored andcommitted
Add Python 3.12 exclusions in providers/pyproject.toml (#37404)
Some of the providers need to be currently excluded from Python 3.12 because they have conflicting dependencies. While we are working on Python 3.12 support in #36755, in order to install airflow (for caching purposes) from GitHub URL, we need to separately merge the exclusions to main - this will help to build Python 3.12 CI image with all necessary dependencies cached. (cherry picked from commit b53fe08)
1 parent d102d9f commit db85f7e

4 files changed

Lines changed: 20 additions & 7 deletions

File tree

airflow/providers/apache/beam/provider.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ additional-extras:
6161
dependencies:
6262
- apache-beam[gcp]
6363

64+
# Apache Beam currently does not support Python 3.12
65+
# There is an issue tracking it https://github.com/apache/beam/issues/29149
66+
excluded-python-versions: ['3.12']
67+
6468
integrations:
6569
- integration-name: Apache Beam
6670
external-doc-url: https://beam.apache.org/

airflow/providers/papermill/provider.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ name: Papermill
2121
description: |
2222
`Papermill <https://github.com/nteract/papermill>`__
2323
24+
# Papermill is technically compliant with 3.12, but it's 2.5.0 version that is compliant, requires pinned
25+
# version of aiohttp which conflicts with other providers. The fix for that is implemented extra-links:
26+
# https://github.com/nteract/papermill/pull/771 and waits for new Papermill release
27+
excluded-python-versions: ['3.12']
28+
2429
state: ready
2530
source-date-epoch: 1703288159
2631
versions:

generated/provider_dependencies.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@
7676
"cross-providers-deps": [
7777
"google"
7878
],
79-
"excluded-python-versions": [],
79+
"excluded-python-versions": [
80+
"3.12"
81+
],
8082
"state": "ready"
8183
},
8284
"apache.cassandra": {
@@ -886,7 +888,9 @@
886888
],
887889
"devel-deps": [],
888890
"cross-providers-deps": [],
889-
"excluded-python-versions": [],
891+
"excluded-python-versions": [
892+
"3.12"
893+
],
890894
"state": "ready"
891895
},
892896
"pgvector": {

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ amazon = [ # source: airflow/providers/amazon/provider.yaml
571571
"s3fs>=2023.10.0",
572572
]
573573
apache-beam = [ # source: airflow/providers/apache/beam/provider.yaml
574-
"apache-beam>=2.53.0",
575-
"pyarrow>=14.0.1",
574+
"apache-beam>=2.53.0;python_version != \"3.12\"",
575+
"pyarrow>=14.0.1;python_version != \"3.12\"",
576576
]
577577
apache-cassandra = [ # source: airflow/providers/apache/cassandra/provider.yaml
578578
"cassandra-driver>=3.13.0",
@@ -865,9 +865,9 @@ pagerduty = [ # source: airflow/providers/pagerduty/provider.yaml
865865
"pdpyras>=4.1.2",
866866
]
867867
papermill = [ # source: airflow/providers/papermill/provider.yaml
868-
"ipykernel",
869-
"papermill[all]>=2.4.0",
870-
"scrapbook[all]",
868+
"ipykernel;python_version != \"3.12\"",
869+
"papermill[all]>=2.4.0;python_version != \"3.12\"",
870+
"scrapbook[all];python_version != \"3.12\"",
871871
]
872872
pgvector = [ # source: airflow/providers/pgvector/provider.yaml
873873
"apache-airflow[postgres]",

0 commit comments

Comments
 (0)