From 4a08541d6193097eea3edf3d98da0cc171f8e3c0 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Thu, 25 Jul 2024 16:51:48 -0700 Subject: [PATCH] Fix numpy and pandas versions. Summary: It has to match the coremltools minimum requirement for Python 3.10: https://github.com/apple/coremltools/blob/main/reqs/build.pip Differential Revision: D60265982 --- .ci/docker/requirements-ci.txt | 3 ++- pyproject.toml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.ci/docker/requirements-ci.txt b/.ci/docker/requirements-ci.txt index 3a0cd57ddb5..95911457652 100644 --- a/.ci/docker/requirements-ci.txt +++ b/.ci/docker/requirements-ci.txt @@ -1,5 +1,5 @@ mpmath==1.3.0 -numpy==1.25.2 +numpy==1.21.3 PyYAML==6.0.1 ruamel.yaml==0.17.32 sympy==1.12 @@ -8,6 +8,7 @@ tomli==2.0.1 torchsr==1.0.4 transformers==4.38.0 zstd==1.5.5.1 +pandas==2.0.3 pytest==7.2.0 pytest-cov==4.1.0 expecttest==0.1.6 diff --git a/pyproject.toml b/pyproject.toml index b23091cc5f4..a6b351e54a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,9 +55,9 @@ dependencies=[ "flatbuffers", "hypothesis", "mpmath==1.3.0", - "numpy>=1.25.2", + "numpy==1.21.3", "packaging", - "pandas", + "pandas==2.0.3", "parameterized", "pytest", "pytest-xdist",