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

ephraimanierobi pushed a commit to branch v2-9-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit e968e048630257071732493e9bd88eaecfbed9a0
Author: Ephraim Anierobi <[email protected]>
AuthorDate: Thu May 23 12:46:17 2024 +0100

    Fix example_branch_operator failing in python 3.12 (#39783)
    
    Recently, this dag started failing due to python 3.12 removal of some
    deprecated symbols. The fix here was moving to a higher version of
    numpy as the old version uses pinned setuptools
    
    (cherry picked from commit 61e90704c6794e8554d17a8a94a6e3f42f304767)
---
 airflow/example_dags/example_branch_operator.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow/example_dags/example_branch_operator.py 
b/airflow/example_dags/example_branch_operator.py
index a26733c849..492d6315d1 100644
--- a/airflow/example_dags/example_branch_operator.py
+++ b/airflow/example_dags/example_branch_operator.py
@@ -141,7 +141,7 @@ if is_venv_installed():
 
         branching_venv = BranchPythonVirtualenvOperator(
             task_id="branching_venv",
-            requirements=["numpy~=1.24.4"],
+            requirements=["numpy~=1.26.0"],
             venv_cache_path=VENV_CACHE_PATH,
             python_callable=branch_with_venv,
             op_args=[options],
@@ -162,7 +162,7 @@ if is_venv_installed():
         for option in options:
             t = PythonVirtualenvOperator(
                 task_id=f"venv_{option}",
-                requirements=["numpy~=1.24.4"],
+                requirements=["numpy~=1.26.0"],
                 venv_cache_path=VENV_CACHE_PATH,
                 python_callable=hello_world_with_venv,
             )

Reply via email to