Skip to content

Commit 5a20a49

Browse files
shoumikhinfacebook-github-bot
authored andcommitted
Fix numpy and pandas versions. (#4430)
Summary: Pull Request resolved: #4430 Numpy has to match the coremltools requirements, and Pandas depends on Numpy: https://github.com/apple/coremltools/blob/main/reqs/build.pip Reviewed By: kirklandsign Differential Revision: D60265982 fbshipit-source-id: c84dd319c19fb48dc6d4ad3ffc8accd1fdc9b840
1 parent 9129892 commit 5a20a49

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.ci/docker/requirements-ci.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
mpmath==1.3.0
2-
numpy==1.25.2
2+
numpy==1.21.3; python_version == '3.10'
3+
numpy==1.23.2; python_version == '3.11'
4+
numpy; python_version >= '3.12'
35
PyYAML==6.0.1
46
ruamel.yaml==0.17.32
57
sympy==1.12
@@ -8,6 +10,8 @@ tomli==2.0.1
810
torchsr==1.0.4
911
transformers==4.38.0
1012
zstd==1.5.5.1
13+
pandas==2.0.3; python_version == '3.10'
14+
pandas; python_version >= '3.11'
1115
pytest==7.2.0
1216
pytest-cov==4.1.0
1317
expecttest==0.1.6

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ dependencies=[
5555
"flatbuffers",
5656
"hypothesis",
5757
"mpmath==1.3.0",
58-
"numpy>=1.25.2",
58+
"numpy==1.21.3; python_version == '3.10'",
59+
"numpy==1.23.2; python_version == '3.11'",
60+
"numpy; python_version >= '3.12'",
5961
"packaging",
60-
"pandas",
62+
"pandas==2.0.3; python_version == '3.10'",
63+
"pandas; python_version >= '3.11'",
6164
"parameterized",
6265
"pytest",
6366
"pytest-xdist",

0 commit comments

Comments
 (0)