From 4f7a9b0689877b6122eff05695d9ae17252da460 Mon Sep 17 00:00:00 2001 From: hammadb Date: Mon, 17 Jun 2024 11:01:29 -0700 Subject: [PATCH] [BUG] Lock numpy to < 2.0.0 across all reqs and pyproject.toml --- clients/python/pyproject.toml | 2 +- clients/python/requirements.txt | 2 +- pyproject.toml | 2 +- requirements.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/python/pyproject.toml b/clients/python/pyproject.toml index edd0c00d7cf..028d8fd1824 100644 --- a/clients/python/pyproject.toml +++ b/clients/python/pyproject.toml @@ -15,7 +15,7 @@ classifiers = [ "Operating System :: OS Independent", ] dependencies = [ - 'numpy >= 1.22.5', + 'numpy >= 1.22.5, < 2.0.0', 'opentelemetry-api>=1.2.0', 'opentelemetry-exporter-otlp-proto-grpc>=1.2.0', 'opentelemetry-sdk>=1.2.0', diff --git a/clients/python/requirements.txt b/clients/python/requirements.txt index e386659d3d9..057af2f963c 100644 --- a/clients/python/requirements.txt +++ b/clients/python/requirements.txt @@ -1,4 +1,4 @@ -numpy >= 1.22.5 +numpy >= 1.22.5, < 2.0.0 opentelemetry-api>=1.2.0 opentelemetry-exporter-otlp-proto-grpc>=1.2.0 opentelemetry-sdk>=1.2.0 diff --git a/pyproject.toml b/pyproject.toml index 9216f24e909..f4e35264e03 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ dependencies = [ 'chroma-hnswlib==0.7.3', 'fastapi >= 0.95.2', 'uvicorn[standard] >= 0.18.3', - 'numpy >= 1.22.5', + 'numpy >= 1.22.5, < 2.0.0', 'posthog >= 2.4.0', 'typing_extensions >= 4.5.0', 'onnxruntime >= 1.14.1', diff --git a/requirements.txt b/requirements.txt index b3cdf5d873b..413ae4b3cbd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ httpx>=0.27.0 importlib-resources kubernetes>=28.1.0 mmh3>=4.0.1 -numpy>=1.22.5 +numpy>=1.22.5, <2.0.0 onnxruntime>=1.14.1 opentelemetry-api>=1.2.0 opentelemetry-exporter-otlp-proto-grpc>=1.24.0