From 4d0e96659230348a529c9d21852b4a3bc8fb3a6c Mon Sep 17 00:00:00 2001 From: Trayan Azarov Date: Sat, 25 Nov 2023 00:00:39 +0200 Subject: [PATCH] [CLN]: Numpy version alignment (#1422) ## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Aligned requirements.txt and pyproject.toml to use 1.22.5 of numpy - Removed version specifiers as we now only support python 3.8+ - Aligned python client pyproject.toml with numpy version 1.22.5 ## Test plan *How are these changes tested?* - [x] Tests pass locally with `pytest` for python ## Documentation Changes N/A --- clients/python/pyproject.toml | 2 +- pyproject.toml | 3 +-- requirements.txt | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/clients/python/pyproject.toml b/clients/python/pyproject.toml index a276becb196..76b930b4f70 100644 --- a/clients/python/pyproject.toml +++ b/clients/python/pyproject.toml @@ -17,7 +17,7 @@ classifiers = [ dependencies = [ 'requests >= 2.28', 'pydantic>=1.9,<2.0', - 'numpy >= 1.21.6', + 'numpy >= 1.22.5', 'posthog >= 2.4.0', 'typing_extensions >= 4.5.0', 'overrides >= 7.3.1', diff --git a/pyproject.toml b/pyproject.toml index f5579c62332..cca89d5ef66 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,8 +20,7 @@ dependencies = [ 'chroma-hnswlib==0.7.3', 'fastapi >= 0.95.2', 'uvicorn[standard] >= 0.18.3', - 'numpy == 1.21.6; python_version < "3.8"', - 'numpy >= 1.22.5; python_version >= "3.8"', + 'numpy >= 1.22.5', 'posthog >= 2.4.0', 'typing_extensions >= 4.5.0', 'pulsar-client>=3.1.0', diff --git a/requirements.txt b/requirements.txt index 3ba61555fa5..3e99734fd3a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,8 +6,7 @@ grpcio>=1.58.0 importlib-resources kubernetes>=28.1.0 mmh3>=4.0.1 -numpy==1.21.6; python_version < '3.8' -numpy>=1.22.4; python_version >= '3.8' +numpy>=1.22.5 onnxruntime>=1.14.1 opentelemetry-api>=1.2.0 opentelemetry-exporter-otlp-proto-grpc>=1.2.0