From 8f4fa85a9c7a6007e3b933547e53396dfeae3073 Mon Sep 17 00:00:00 2001 From: Theodoros Katzalis Date: Mon, 16 Sep 2024 14:01:28 +0200 Subject: [PATCH] Restrict numpy<2 due to pytorch 2.2py39 build --- setup.py | 2 +- tests/test_server/test_grpc/test_fligh_control_servicer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 1f1895bf..a6313f3f 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ "bioimageio.spec==0.4.9.post5", "bioimageio.core==0.5.11", "grpcio>=1.31", - "numpy", + "numpy<2", # pytorch 2.2.2-py3.9_0 for macos is compiled with numpy 1.* "protobuf", "pyyaml", "xarray", diff --git a/tests/test_server/test_grpc/test_fligh_control_servicer.py b/tests/test_server/test_grpc/test_fligh_control_servicer.py index a2a5080b..52f32c41 100644 --- a/tests/test_server/test_grpc/test_fligh_control_servicer.py +++ b/tests/test_server/test_grpc/test_fligh_control_servicer.py @@ -23,7 +23,7 @@ def test_shutdown_event_is_not_set_while_pings_keep_coming(): def _pinger(): while not stop_pinger.is_set(): servicer.Ping(None, None) - time.sleep(0.05) + time.sleep(0.01) pinger_thread = threading.Thread(target=_pinger, name="Pinger", daemon=True) pinger_thread.start()