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

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new bcd559c933e Allow revent packages when testing RC versions (#64774)
bcd559c933e is described below

commit bcd559c933e101cb27add2e59009ba4cbfda8582
Author: Jens Scheffler <[email protected]>
AuthorDate: Mon Apr 6 18:49:49 2026 +0200

    Allow revent packages when testing RC versions (#64774)
---
 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