This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new 5d09457d8e5 [v3-0-test] Fix broken main on release commands
constraints (#52734) (#52736)
5d09457d8e5 is described below
commit 5d09457d8e56c9ce2a5a0fe65c165bf18cd79308
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Jul 2 21:51:58 2025 +0200
[v3-0-test] Fix broken main on release commands constraints (#52734)
(#52736)
(cherry picked from commit c6cdfc6ba56d849f86fb0fe2dcddf8edb8d0261f)
Co-authored-by: Jens Scheffler <[email protected]>
---
dev/breeze/src/airflow_breeze/commands/release_management_commands.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
index 1c38c614bbf..4585b17cfc9 100644
--- a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
@@ -95,6 +95,7 @@ from airflow_breeze.global_constants import (
ALLOWED_PLATFORMS,
ALLOWED_PYTHON_MAJOR_MINOR_VERSIONS,
APACHE_AIRFLOW_GITHUB_REPOSITORY,
+ CONSTRAINTS_SOURCE_PROVIDERS,
CURRENT_PYTHON_MAJOR_MINOR_VERSIONS,
DEFAULT_PYTHON_MAJOR_MINOR_VERSION,
DESTINATION_LOCATIONS,
@@ -2778,6 +2779,7 @@ def get_airflow_versions_supported_by_python(
def get_all_constraint_files(
refresh_constraints: bool,
python_version: str,
+ airflow_constraints_mode: str,
github_token: str | None = None,
) -> tuple[list[str], dict[str, str]]:
if refresh_constraints:
@@ -2798,6 +2800,7 @@ def get_all_constraint_files(
constraints_reference=f"constraints-{airflow_version}",
python_version=python_version,
github_token=github_token,
+ airflow_constraints_mode=airflow_constraints_mode,
output_file=CONSTRAINTS_CACHE_PATH
/
f"constraints-{airflow_version}-python-{python_version}.txt",
):
@@ -2842,6 +2845,7 @@ def generate_providers_metadata(refresh_constraints:
bool, github_token: str | N
all_airflow_releases, airflow_release_dates = get_all_constraint_files(
refresh_constraints=refresh_constraints,
python_version=python,
+ airflow_constraints_mode=CONSTRAINTS_SOURCE_PROVIDERS,
github_token=github_token,
)
constraints = load_constraints(python_version=python)