diff --git a/dev/breeze/pyproject.toml b/dev/breeze/pyproject.toml index 96a637857afe3..122b67729c0a6 100644 --- a/dev/breeze/pyproject.toml +++ b/dev/breeze/pyproject.toml @@ -47,8 +47,12 @@ dependencies = [ "black>=26.1.0", "click>=8.3.0", "filelock>=3.13.0", - "flit>=3.12.0", - "flit-core>=3.12.0", + # Capped below 4 because `flit build` has no PEP 517 isolation: the installed flit_core is + # what builds every provider distribution, so the `flit_core==` pin they declare never + # applies. Adopting the 4.x backend is tracked at + # https://github.com/apache/airflow/issues/71121 + "flit>=3.12.0,<4", + "flit-core>=3.12.0,<4", "google-api-python-client>=2.142.0", "google-auth-httplib2>=0.2.0", "google-auth-oauthlib>=1.2.0", diff --git a/dev/breeze/src/airflow_breeze/prepare_providers/provider_distributions.py b/dev/breeze/src/airflow_breeze/prepare_providers/provider_distributions.py index ff4ce0b0a0332..459b66a013ccf 100644 --- a/dev/breeze/src/airflow_breeze/prepare_providers/provider_distributions.py +++ b/dev/breeze/src/airflow_breeze/prepare_providers/provider_distributions.py @@ -251,7 +251,7 @@ def build_provider_distribution( build_backend = provider_info.get("build-system", "flit_core") build_env = {"SOURCE_DATE_EPOCH": str(get_provider_details(provider_id).source_date_epoch)} if build_backend == "flit_core": - command: list[str] = [sys.executable, "-m", "flit", "build", "--no-setup-py", "--use-vcs"] + command: list[str] = [sys.executable, "-m", "flit", "build", "--use-vcs"] console_print( "[warning]Workaround wheel-only package bug in flit by building both and removing sdist." ) diff --git a/dev/breeze/uv.lock b/dev/breeze/uv.lock index 49aa70ea7a951..3441e1155caf6 100644 --- a/dev/breeze/uv.lock +++ b/dev/breeze/uv.lock @@ -68,8 +68,8 @@ requires-dist = [ { name = "boto3", specifier = ">=1.37.2" }, { name = "click", specifier = ">=8.3.0" }, { name = "filelock", specifier = ">=3.13.0" }, - { name = "flit", specifier = ">=3.12.0" }, - { name = "flit-core", specifier = ">=3.12.0" }, + { name = "flit", specifier = ">=3.12.0,<4" }, + { name = "flit-core", specifier = ">=3.12.0,<4" }, { name = "gitpython", specifier = ">=3.1.40" }, { name = "google-api-python-client", specifier = ">=2.142.0" }, { name = "google-auth-httplib2", specifier = ">=0.2.0" }, diff --git a/uv.lock b/uv.lock index 6f593f9fb857a..36ead8dbe9483 100644 --- a/uv.lock +++ b/uv.lock @@ -1889,8 +1889,8 @@ requires-dist = [ { name = "boto3", specifier = ">=1.37.2" }, { name = "click", specifier = ">=8.3.0" }, { name = "filelock", specifier = ">=3.13.0" }, - { name = "flit", specifier = ">=3.12.0" }, - { name = "flit-core", specifier = ">=3.12.0" }, + { name = "flit", specifier = ">=3.12.0,<4" }, + { name = "flit-core", specifier = ">=3.12.0,<4" }, { name = "gitpython", specifier = ">=3.1.40" }, { name = "google-api-python-client", specifier = ">=2.142.0" }, { name = "google-auth-httplib2", specifier = ">=0.2.0" },