This is an automated email from the ASF dual-hosted git repository.

jscheffl pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-2-test by this push:
     new ab94c71d68f [v3-2-test] Allow revent packages when testing RC versions 
(#64774) (#64783)
ab94c71d68f is described below

commit ab94c71d68f46d98236e9e2506ac9251d673c60e
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Apr 6 19:39:25 2026 +0200

    [v3-2-test] Allow revent packages when testing RC versions (#64774) (#64783)
    
    (cherry picked from commit bcd559c933e101cb27add2e59009ba4cbfda8582)
    
    Co-authored-by: Jens Scheffler <[email protected]>
---
 scripts/in_container/install_airflow_and_providers.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/scripts/in_container/install_airflow_and_providers.py 
b/scripts/in_container/install_airflow_and_providers.py
index df7443271af..31187737215 100755
--- a/scripts/in_container/install_airflow_and_providers.py
+++ b/scripts/in_container/install_airflow_and_providers.py
@@ -23,6 +23,7 @@ import os
 import re
 import shutil
 import sys
+from datetime import datetime
 from functools import cache
 from pathlib import Path
 from typing import NamedTuple
@@ -1127,7 +1128,8 @@ def _install_airflow_and_optionally_providers_together(
         "install",
     ]
     if installation_spec.pre_release:
-        base_install_cmd.append("--pre")
+        console.print("[bright_blue]Allowing pre-release versions of airflow 
and providers")
+        base_install_cmd.extend(["--pre", "--exclude-newer", 
datetime.now().isoformat()])
     if installation_spec.airflow_distribution:
         console.print(
             f"\n[bright_blue]Adding airflow distribution to installation: 
{installation_spec.airflow_distribution} "
@@ -1223,8 +1225,8 @@ def 
_install_only_airflow_airflow_core_task_sdk_with_constraints(
         "install",
     ]
     if installation_spec.pre_release:
-        console.print("[bright_blue]Allowing pre-release versions of airflow")
-        base_install_airflow_cmd.append("--pre")
+        console.print("[bright_blue]Allowing pre-release versions of airflow 
and providers")
+        base_install_airflow_cmd.extend(["--pre", "--exclude-newer", 
datetime.now().isoformat()])
     if installation_spec.airflow_distribution:
         console.print(
             f"\n[bright_blue]Installing airflow distribution: 
{installation_spec.airflow_distribution} with constraints"

Reply via email to