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

utkarsharma pushed a commit to branch sync_2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 645eee967e10b8d7157d2552379e9725af28655f
Author: Jens Scheffler <[email protected]>
AuthorDate: Mon Nov 4 23:03:59 2024 +0100

    Fix venv numpy example which needs to be 1.26 at least to be working in 
Python 3.12 (#43659)
---
 airflow/example_dags/example_branch_operator_decorator.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow/example_dags/example_branch_operator_decorator.py 
b/airflow/example_dags/example_branch_operator_decorator.py
index 59cb3b29194..66cea26f391 100644
--- a/airflow/example_dags/example_branch_operator_decorator.py
+++ b/airflow/example_dags/example_branch_operator_decorator.py
@@ -117,7 +117,7 @@ if is_venv_installed():
         #       Run the example a second time and see that it re-uses it and 
is faster.
         VENV_CACHE_PATH = tempfile.gettempdir()
 
-        @task.branch_virtualenv(requirements=["numpy~=1.24.4"], 
venv_cache_path=VENV_CACHE_PATH)
+        @task.branch_virtualenv(requirements=["numpy~=1.26.0"], 
venv_cache_path=VENV_CACHE_PATH)
         def branching_virtualenv(choices) -> str:
             import random
 
@@ -137,7 +137,7 @@ if is_venv_installed():
         for option in options:
 
             @task.virtualenv(
-                task_id=f"venv_{option}", requirements=["numpy~=1.24.4"], 
venv_cache_path=VENV_CACHE_PATH
+                task_id=f"venv_{option}", requirements=["numpy~=1.26.0"], 
venv_cache_path=VENV_CACHE_PATH
             )
             def some_venv_task():
                 import numpy as np

Reply via email to