Skip to content

Commit

Permalink
Add Python 3.12 exclusions in providers/pyproject.toml (#37404)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
potiuk authored Feb 13, 2024
1 parent 9593fb7 commit b53fe08
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
4 changes: 4 additions & 0 deletions airflow/providers/apache/beam/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ additional-extras:
dependencies:
- apache-beam[gcp]

# Apache Beam currently does not support Python 3.12
# There is an issue tracking it https://github.com/apache/beam/issues/29149
excluded-python-versions: ['3.12']

integrations:
- integration-name: Apache Beam
external-doc-url: https://beam.apache.org/
Expand Down
5 changes: 5 additions & 0 deletions airflow/providers/papermill/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ name: Papermill
description: |
`Papermill <https://github.com/nteract/papermill>`__
# Papermill is technically compliant with 3.12, but it's 2.5.0 version that is compliant, requires pinned
# version of aiohttp which conflicts with other providers. The fix for that is implemented extra-links:
# https://github.com/nteract/papermill/pull/771 and waits for new Papermill release
excluded-python-versions: ['3.12']

state: ready
source-date-epoch: 1705912216
versions:
Expand Down
8 changes: 6 additions & 2 deletions generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
"cross-providers-deps": [
"google"
],
"excluded-python-versions": [],
"excluded-python-versions": [
"3.12"
],
"state": "ready"
},
"apache.cassandra": {
Expand Down Expand Up @@ -880,7 +882,9 @@
],
"devel-deps": [],
"cross-providers-deps": [],
"excluded-python-versions": [],
"excluded-python-versions": [
"3.12"
],
"state": "ready"
},
"pgvector": {
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ amazon = [ # source: airflow/providers/amazon/provider.yaml
"s3fs>=2023.10.0",
]
apache-beam = [ # source: airflow/providers/apache/beam/provider.yaml
"apache-beam>=2.53.0",
"pyarrow>=14.0.1",
"apache-beam>=2.53.0;python_version != \"3.12\"",
"pyarrow>=14.0.1;python_version != \"3.12\"",
]
apache-cassandra = [ # source: airflow/providers/apache/cassandra/provider.yaml
"cassandra-driver>=3.13.0",
Expand Down Expand Up @@ -867,9 +867,9 @@ pagerduty = [ # source: airflow/providers/pagerduty/provider.yaml
"pdpyras>=4.1.2",
]
papermill = [ # source: airflow/providers/papermill/provider.yaml
"ipykernel",
"papermill[all]>=2.4.0",
"scrapbook[all]",
"ipykernel;python_version != \"3.12\"",
"papermill[all]>=2.4.0;python_version != \"3.12\"",
"scrapbook[all];python_version != \"3.12\"",
]
pgvector = [ # source: airflow/providers/pgvector/provider.yaml
"apache-airflow[postgres]",
Expand Down

0 comments on commit b53fe08

Please sign in to comment.