Skip to content

Commit 119f495

Browse files
committed
Adopt flit 4 as the provider distribution build backend
flit build has no PEP 517 isolation, so the installed flit_core is what builds every provider distribution and the per-provider pin never applies. The floors in breeze were capped below 4 to stop that backend changing by accident; taking the cap off deliberately is what this does. Validated against the imap provider: wheel and sdist contents are identical to what 3.12.0 produces, and METADATA differs only by the intended metadata 2.5 additions - Import-Name and Import-Namespace. closes: #71121
1 parent e3671dd commit 119f495

107 files changed

Lines changed: 121 additions & 120 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎dev/breeze/pyproject.toml‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
[build-system]
18-
requires = ["flit_core >=3.12.0,<4"]
18+
requires = ["flit_core >=4.0.2"]
1919
build-backend = "flit_core.buildapi"
2020

2121
[project]
@@ -47,12 +47,11 @@ dependencies = [
4747
"black>=26.1.0",
4848
"click>=8.3.0",
4949
"filelock>=3.13.0",
50-
# Capped below 4 because `flit build` has no PEP 517 isolation: the installed flit_core is
51-
# what builds every provider distribution, so the `flit_core==` pin they declare never
52-
# applies. Adopting the 4.x backend is tracked at
53-
# https://github.com/apache/airflow/issues/71121
54-
"flit>=3.12.0,<4",
55-
"flit-core>=3.12.0,<4",
50+
# `flit build` has no PEP 517 isolation: the installed flit_core is what builds every provider
51+
# distribution, so the `flit_core==` pin they declare never applies and these two are what
52+
# decide the backend. Floors, moved by `upgrade_important_versions.py` together with those pins.
53+
"flit>=4.0.2",
54+
"flit-core>=4.0.2",
5655
"google-api-python-client>=2.142.0",
5756
"google-auth-httplib2>=0.2.0",
5857
"google-auth-oauthlib>=1.2.0",

‎dev/breeze/src/airflow_breeze/templates/pyproject_TEMPLATE.toml.jinja2‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
4141
[build-system]
4242
{% if BUILD_SYSTEM == "flit_core" -%}
43-
requires = ["flit_core==3.12.0"]
43+
requires = ["flit_core==4.0.2"]
4444
build-backend = "flit_core.buildapi"
4545
{% else -%}
4646
requires = [

‎devel-common/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818
[build-system]
19-
requires = ["flit_core==3.12.0"]
19+
requires = ["flit_core==4.0.2"]
2020
build-backend = "flit_core.buildapi"
2121

2222
[project]

‎performance/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
[build-system]
18-
requires = ["flit_core==3.12.0"]
18+
requires = ["flit_core==4.0.2"]
1919
build-backend = "flit_core.buildapi"
2020

2121
[project]

‎providers/airbyte/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# IF YOU WANT TO MODIFY THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE
2121
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
2222
[build-system]
23-
requires = ["flit_core==3.12.0"]
23+
requires = ["flit_core==4.0.2"]
2424
build-backend = "flit_core.buildapi"
2525

2626
[project]

‎providers/akeyless/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# IF YOU WANT TO MODIFY THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE
2121
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
2222
[build-system]
23-
requires = ["flit_core==3.12.0"]
23+
requires = ["flit_core==4.0.2"]
2424
build-backend = "flit_core.buildapi"
2525

2626
[project]

‎providers/alibaba/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# IF YOU WANT TO MODIFY THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE
2121
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
2222
[build-system]
23-
requires = ["flit_core==3.12.0"]
23+
requires = ["flit_core==4.0.2"]
2424
build-backend = "flit_core.buildapi"
2525

2626
[project]

‎providers/amazon/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# IF YOU WANT TO MODIFY THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE
2121
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
2222
[build-system]
23-
requires = ["flit_core==3.12.0"]
23+
requires = ["flit_core==4.0.2"]
2424
build-backend = "flit_core.buildapi"
2525

2626
[project]

‎providers/anthropic/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# IF YOU WANT TO MODIFY THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE
2121
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
2222
[build-system]
23-
requires = ["flit_core==3.12.0"]
23+
requires = ["flit_core==4.0.2"]
2424
build-backend = "flit_core.buildapi"
2525

2626
[project]

‎providers/apache/beam/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# IF YOU WANT TO MODIFY THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE
2121
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
2222
[build-system]
23-
requires = ["flit_core==3.12.0"]
23+
requires = ["flit_core==4.0.2"]
2424
build-backend = "flit_core.buildapi"
2525

2626
[project]

0 commit comments

Comments
 (0)