Skip to content

Commit

Permalink
Fix numpy and pandas versions. (#4430)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
shoumikhin authored and facebook-github-bot committed Jul 26, 2024
1 parent 9129892 commit 5a20a49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .ci/docker/requirements-ci.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
mpmath==1.3.0
numpy==1.25.2
numpy==1.21.3; python_version == '3.10'
numpy==1.23.2; python_version == '3.11'
numpy; python_version >= '3.12'
PyYAML==6.0.1
ruamel.yaml==0.17.32
sympy==1.12
Expand All @@ -8,6 +10,8 @@ tomli==2.0.1
torchsr==1.0.4
transformers==4.38.0
zstd==1.5.5.1
pandas==2.0.3; python_version == '3.10'
pandas; python_version >= '3.11'
pytest==7.2.0
pytest-cov==4.1.0
expecttest==0.1.6
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ dependencies=[
"flatbuffers",
"hypothesis",
"mpmath==1.3.0",
"numpy>=1.25.2",
"numpy==1.21.3; python_version == '3.10'",
"numpy==1.23.2; python_version == '3.11'",
"numpy; python_version >= '3.12'",
"packaging",
"pandas",
"pandas==2.0.3; python_version == '3.10'",
"pandas; python_version >= '3.11'",
"parameterized",
"pytest",
"pytest-xdist",
Expand Down

0 comments on commit 5a20a49

Please sign in to comment.