Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
FROM ubuntu:${UBUNTU_VERSION}@sha256:${UBUNTU_IMAGE_DIGEST}

ARG MINICONDA_VERSION=24.7.1
ARG CONDA_CHECKSUM=2006a61abc8b4fd04de5eb92620e1f72bada713cc84b5b4899463095e1210556
ARG CONDA_PY_VERSION=39
ARG CONDA_CHECKSUM=684cda724bc37e3bbbb342e440fc4cac515c92e91a489eb4359feca35382894b
ARG CONDA_PY_VERSION=310
ARG CONDA_PKG_VERSION=24.7.1
ARG PYTHON_VERSION=3.9
ARG PYTHON_VERSION=3.10
ARG PYARROW_VERSION=14.0.1
ARG MLIO_VERSION=v0.9.0

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM sklearn-base:1.2-1
ENV SAGEMAKER_SKLEARN_VERSION 1.2-1
FROM sklearn-base:1.2-1-1
ENV SAGEMAKER_SKLEARN_VERSION 1.2-1-1
ENV PIP_ROOT_USER_ACTION=ignore

LABEL com.amazonaws.sagemaker.capabilities.accept-bind-to-port=true
Expand All @@ -9,8 +9,8 @@ RUN python -m pip install -r /requirements.txt && \
rm /requirements.txt

COPY dist/sagemaker_sklearn_container-2.0-py3-none-any.whl /sagemaker_sklearn_container-2.0-py3-none-any.whl
RUN rm /miniconda3/lib/python3.9/site-packages/**/REQUESTED && \
rm /miniconda3/lib/python3.9/site-packages/**/direct_url.json
RUN rm /miniconda3/lib/python3.10/site-packages/**/REQUESTED && \
rm /miniconda3/lib/python3.10/site-packages/**/direct_url.json
RUN pip install --no-cache /sagemaker_sklearn_container-2.0-py3-none-any.whl && \
rm /sagemaker_sklearn_container-2.0-py3-none-any.whl

Expand Down
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ itsdangerous==2.0.1
gunicorn==23.0.0
model-archiver==1.0.3
multi-model-server==1.1.1
pandas==1.1.3
pandas==1.5.3
protobuf==3.20.2
psutil==5.7.2
python-dateutil==2.8.1
Expand All @@ -15,7 +15,7 @@ sagemaker-containers==2.8.6.post2
sagemaker-inference==1.2.0
sagemaker-training==4.8.0
scikit-learn==1.2.1
scipy==1.8.0
scipy==1.9.3
urllib3==1.26.17
six==1.15.0
jinja2==3.0.3
Expand All @@ -25,4 +25,5 @@ gevent==23.9.1
Werkzeug==2.0.3
setuptools
wheel
certifi
certifi
PyYAML==6.0.1
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def read(fname):
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],

install_requires=read("requirements.txt"),
Expand Down
1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ Flask
PyYAML
boto3>=1.24.17
coverage
docker-compose
flake8
mock
pytest
Expand Down
Binary file added test.parquet
Binary file not shown.
6 changes: 6 additions & 0 deletions test/utils/local_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
# language governing permissions and limitations under the License.
from __future__ import absolute_import

# Fix for Python 3.10+ compatibility
import collections
import collections.abc
if not hasattr(collections, 'Mapping'):
collections.Mapping = collections.abc.Mapping

import json
import logging
import os
Expand Down