Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Python version from 3.8 to 3.10 #291

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion ci/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
python: 3.8
python: 3.10
docker: 17
pre_build:
commands:
Expand Down
2 changes: 1 addition & 1 deletion ci/buildspec_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
python: 3.8
python: 3.10
docker: 19
pre_build:
commands:
Expand Down
2 changes: 1 addition & 1 deletion ci/buildspec_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
python: 3.8
python: 3.10
docker: 19
pre_build:
commands:
Expand Down
2 changes: 1 addition & 1 deletion ci/buildspec_multiarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
python: 3.8
python: 3.10
docker: 19
commands:
- yum update -y
Expand Down
2 changes: 1 addition & 1 deletion docker/1.5-1/base/Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ARG MINICONDA_VERSION=4.9.2
ARG CONDA_PY_VERSION=39
ARG CONDA_CHECKSUM="b4e46fcc8029e2cfa731b788f25b1d36"
ARG CONDA_PKG_VERSION=4.10.1
ARG PYTHON_VERSION=3.8.13
ARG PYTHON_VERSION=3.10.4
ARG PYARROW_VERSION=1.0
ARG MLIO_VERSION=0.7.0
ARG XGBOOST_VERSION=1.5.2
Expand Down
2 changes: 1 addition & 1 deletion docker/1.5-1/base/Dockerfile_arm64.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG MINICONDA_VERSION=4.9.2
ARG CONDA_PY_VERSION=39
ARG CONDA_CHECKSUM="af1c16d821569ebf1bdaf549fcba7d27"
ARG CONDA_PKG_VERSION=4.10.1
ARG PYTHON_VERSION=3.8.13
ARG PYTHON_VERSION=3.10.4
ARG PYARROW_VERSION=1.0
ARG MLIO_VERSION=arch-agnostic
ARG XGBOOST_VERSION=1.5.2
Expand Down
4 changes: 2 additions & 2 deletions docker/1.5-1/final/Dockerfile.cpu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG SAGEMAKER_XGBOOST_VERSION=1.5-1
ARG PYTHON_VERSION=3.8
ARG PYTHON_VERSION=3.10

FROM xgboost-container-base:${SAGEMAKER_XGBOOST_VERSION}-cpu-py3

Expand All @@ -15,7 +15,7 @@ RUN python3 -m pip install -r /requirements.txt && rm /requirements.txt
# Copy wheel to container #
###########################
COPY dist/sagemaker_xgboost_container-2.0-py2.py3-none-any.whl /sagemaker_xgboost_container-1.0-py2.py3-none-any.whl
RUN rm -rf /miniconda3/lib/python3.7/site-packages/numpy-1.21.2.dist-info && \
RUN rm -rf /miniconda3/lib/python3.7/site-packages/numpy-1.22.4.dist-info && \
python3 -m pip install --no-cache /sagemaker_xgboost_container-1.0-py2.py3-none-any.whl && \
python3 -m pip uninstall -y typing && \
rm /sagemaker_xgboost_container-1.0-py2.py3-none-any.whl
Expand Down
4 changes: 2 additions & 2 deletions docker/1.5-1/final/Dockerfile_arm64.cpu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG SAGEMAKER_XGBOOST_VERSION=1.5-1
ARG PYTHON_VERSION=3.8
ARG PYTHON_VERSION=3.10

FROM xgboost-container-base:${SAGEMAKER_XGBOOST_VERSION}-cpu-py3-arm64

Expand All @@ -15,7 +15,7 @@ RUN python3 -m pip install -r /requirements.txt && rm /requirements.txt
# Copy wheel to container #
###########################
COPY dist/sagemaker_xgboost_container-2.0-py2.py3-none-any.whl /sagemaker_xgboost_container-1.0-py2.py3-none-any.whl
RUN rm -rf /miniconda3/lib/python3.8/site-packages/numpy-1.21.2.dist-info && \
RUN rm -rf /miniconda3/lib/python3.8/site-packages/numpy-1.22.4.dist-info && \
python3 -m pip install --no-cache /sagemaker_xgboost_container-1.0-py2.py3-none-any.whl && \
python3 -m pip uninstall -y typing && \
rm /sagemaker_xgboost_container-1.0-py2.py3-none-any.whl
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gunicorn==19.10.0
itsdangerous==2.0.1
matplotlib==3.4.1
multi-model-server==1.1.2
numpy==1.21.0
numpy==1.22.4
pandas==1.2.4
protobuf==3.20.1
psutil==5.6.7 # sagemaker-containers requires psutil 5.6.7
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def read(fname):
'Programming Language :: Python :: 3.6',
'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
4 changes: 2 additions & 2 deletions test/resources/versions/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


PYTHON_MAJOR_VERSION = 3
PYTHON_MINOR_VERSION = 8
PYTHON_MINOR_VERSION = 10
REQUIREMENTS = """\
Flask==1.1.1
Pillow==9.1.0
Expand All @@ -15,7 +15,7 @@
gunicorn==19.10.0
matplotlib==3.4.1
multi-model-server==1.1.2
numpy==1.21.0
numpy==1.22.4
pandas==1.2.4
psutil==5.6.7
pyarrow==1.0.1
Expand Down