Skip to content

Commit c822545

Browse files
committed
update tests with pyversion 311
1 parent 3f06e23 commit c822545

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/sagemaker/fw_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
"2.1.0",
153153
"2.1.2",
154154
"2.2.0",
155+
"2.3.0",
155156
"2.3.1",
156157
"2.4.1",
157158
]

src/sagemaker/serve/model_format/mlflow/constants.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"py38": "1.12.1",
1919
"py39": "1.13.1",
2020
"py310": "2.2.0",
21+
"py311": "2.3.0",
2122
}
2223
MODEL_PACKAGE_ARN_REGEX = (
2324
r"^arn:aws:sagemaker:[a-z0-9\-]+:[0-9]{12}:model-package\/(.*?)(?:/(\d+))?$"

tests/conftest.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ def huggingface_training_compiler_pytorch_py_version(
356356
@pytest.fixture(scope="module")
357357
def huggingface_pytorch_latest_training_py_version(
358358
huggingface_training_pytorch_latest_version,
359-
):
359+
):
360+
if Version(huggingface_training_pytorch_latest_version) >= Version("2.3"):
361+
return "py311"
360362
if Version(huggingface_training_pytorch_latest_version) >= Version("2.0"):
361363
return "py310"
362364
elif Version(huggingface_training_pytorch_latest_version) >= Version("1.13"):

0 commit comments

Comments
 (0)