Skip to content

Commit 4011152

Browse files
author
Chad Chiang
committed
Update the numpy version to 2.0 and pandas version to 2.2.3
1 parent 2102bb7 commit 4011152

File tree

12 files changed

+29
-29
lines changed

12 files changed

+29
-29
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ dependencies = [
3939
"google-pasta",
4040
"importlib-metadata>=1.4.0,<7.0",
4141
"jsonschema",
42-
"numpy>=1.9.0,<2.0",
42+
"numpy==2.0",
4343
"omegaconf>=2.2,<2.3",
4444
"packaging>=20.0",
45-
"pandas",
45+
"pandas==2.2.3",
4646
"pathos",
4747
"platformdirs",
4848
"protobuf>=3.12,<6.0",

requirements/extras/test_requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tox==3.24.5
2-
numpy>=1.24.0
2+
numpy==2.0
33
build[virtualenv]==1.2.1
44
flake8==4.0.1
55
pytest==6.2.5
@@ -22,7 +22,7 @@ requests==2.32.2
2222
sagemaker-experiments==0.1.35
2323
Jinja2==3.1.4
2424
pyvis==0.2.1
25-
pandas==1.4.4
25+
pandas==2.2.3
2626
scikit-learn==1.3.0
2727
cloudpickle==2.2.1
2828
jsonpickle<4.0.0

src/sagemaker/serve/utils/conda_in_process.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ dependencies:
1212
- boto3>=1.34.142,<2.0
1313
- cloudpickle==2.2.1
1414
- google-pasta
15-
- numpy>=1.9.0,<2.0
15+
- numpy==2.0
1616
- protobuf>=3.12,<5.0
1717
- smdebug_rulesconfig==1.0.1
1818
- importlib-metadata>=1.4.0,<7.0
1919
- packaging>=20.0
20-
- pandas
20+
- pandas==2.2.3
2121
- pathos
2222
- schema
2323
- PyYAML~=6.0
@@ -64,7 +64,7 @@ dependencies:
6464
- multiprocess>=0.70.14
6565
- networkx>=3.1
6666
- packaging>=23.1
67-
- pandas>=1.5.3
67+
- pandas==2.2.3
6868
- pathos>=0.3.0
6969
- pillow>=9.5.0
7070
- platformdirs>=3.2.0

src/sagemaker/serve/utils/in_process_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mpmath>=1.3.0
3232
multiprocess>=0.70.14
3333
networkx>=3.1
3434
packaging>=23.1
35-
pandas>=1.5.3
35+
pandas==2.2.3
3636
pathos>=0.3.0
3737
pillow>=9.5.0
3838
platformdirs>=3.2.0

tests/data/serve_resources/mlflow/pytorch/conda.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ dependencies:
1111
- defusedxml==0.7.1
1212
- dill==0.3.8
1313
- gmpy2==2.1.2
14-
- numpy==1.26.4
14+
- numpy==2.0
1515
- opt-einsum==3.3.0
1616
- packaging==24.0
17-
- pandas==2.2.1
17+
- pandas==2.2.3
1818
- pyyaml==6.0.1
1919
- requests==2.31.0
2020
- torch==2.0.1

tests/data/serve_resources/mlflow/pytorch/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ cloudpickle==2.2.1
55
defusedxml==0.7.1
66
dill==0.3.8
77
gmpy2==2.1.2
8-
numpy==1.24.4
8+
numpy==2.0
99
opt-einsum==3.3.0
1010
packaging==21.3
11-
pandas==2.2.1
11+
pandas==2.2.3
1212
pyyaml==6.0.1
1313
requests==2.32.2
1414
torch==2.2.0

tests/data/serve_resources/mlflow/tensorflow/conda.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ dependencies:
66
- pip:
77
- mlflow==2.11.1
88
- cloudpickle==2.2.1
9-
- numpy==1.26.4
9+
- numpy==2.0
1010
- tensorflow==2.16.1
1111
name: mlflow-env
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
mlflow==2.13.2
22
cloudpickle==2.2.1
3-
numpy==1.26.4
3+
numpy==2.0
44
tensorflow==2.16.1

tests/data/serve_resources/mlflow/xgboost/conda.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ dependencies:
66
- pip:
77
- mlflow==2.11.1
88
- lz4==4.3.2
9-
- numpy==1.26.4
10-
- pandas==2.2.1
9+
- numpy==2.0
10+
- pandas==2.2.3
1111
- psutil==5.9.8
1212
- scikit-learn==1.3.2
1313
- scipy==1.11.3

tests/data/serve_resources/mlflow/xgboost/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mlflow==2.13.2
22
lz4==4.3.2
3-
numpy==1.24.4
4-
pandas==2.0.3
3+
numpy==2.0
4+
pandas==2.2.3
55
psutil==5.9.8
66
scikit-learn==1.3.2
77
scipy==1.10.1

tests/unit/sagemaker/jumpstart/constants.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12095,7 +12095,7 @@
1209512095
"inference_vulnerabilities": [],
1209612096
"training_vulnerable": False,
1209712097
"training_dependencies": [
12098-
"numpy==1.23.1",
12098+
"numpy==2.0",
1209912099
"opencv_python==4.7.0.68",
1210012100
"sagemaker_jumpstart_prepack_script_utilities==1.0.0",
1210112101
],
@@ -14360,10 +14360,10 @@
1436014360
"jmespath==1.0.1",
1436114361
"jsonschema==4.17.3",
1436214362
"multiprocess==0.70.14",
14363-
"numpy==1.24.3",
14363+
"numpy==2.0",
1436414364
"oscrypto==1.3.0",
1436514365
"packaging==23.1",
14366-
"pandas==2.0.2",
14366+
"pandas==2.2.3",
1436714367
"pathos==0.3.0",
1436814368
"pkgutil-resolve-name==1.3.10",
1436914369
"platformdirs==3.8.0",
@@ -14884,10 +14884,10 @@
1488414884
"jmespath==1.0.1",
1488514885
"jsonschema==4.17.3",
1488614886
"multiprocess==0.70.14",
14887-
"numpy==1.24.3",
14887+
"numpy==2.0",
1488814888
"oscrypto==1.3.0",
1488914889
"packaging==23.1",
14890-
"pandas==2.0.2",
14890+
"pandas==2.2.3",
1489114891
"pathos==0.3.0",
1489214892
"pkgutil-resolve-name==1.3.10",
1489314893
"platformdirs==3.8.0",

tests/unit/sagemaker/serve/detector/test_dependency_manager.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
DEPENDENCY_LIST = [
2323
"requests==2.26.0",
24-
"numpy>=1.20.0",
25-
"pandas<=1.3.3",
24+
"numpy==2.0",
25+
"pandas==2.2.3",
2626
"matplotlib<3.5.0",
2727
"scikit-learn>0.24.1",
2828
"Django!=4.0.0",
@@ -34,8 +34,8 @@
3434

3535
EXPECTED_DEPENDENCY_MAP = {
3636
"requests": "==2.26.0",
37-
"numpy": ">=1.20.0",
38-
"pandas": "<=1.3.3",
37+
"numpy": "==2.0",
38+
"pandas": "==2.2.3",
3939
"matplotlib": "<3.5.0",
4040
"scikit-learn": ">0.24.1",
4141
"Django": "!=4.0.0",
@@ -60,7 +60,7 @@
6060

6161
AUTODETECTED_REQUIREMENTS = """module==1.2
6262
custom_module==1.2.0
63-
numpy==4.5
63+
numpy==2.0
6464
boto3==1.26.135
6565
"""
6666

@@ -97,7 +97,7 @@ def test_capture_dependencies(self, mock_subprocess, mock_file, mock_path):
9797
expected_calls = [
9898
call("module==1.2\n"),
9999
call("custom_module==1.2.3\n"),
100-
call("numpy==4.5\n"),
100+
call("numpy==2.0\n"),
101101
call("boto3=1.28.*\n"),
102102
call("sagemaker[huggingface]>=2.199\n"),
103103
call("other_module@http://some/website.whl\n"),

0 commit comments

Comments
 (0)