Skip to content

Commit 11696cf

Browse files
author
Nikhil Raverkar
committed
upgrading sklearn to 1.0.2
1 parent e1bd92d commit 11696cf

File tree

8 files changed

+14
-3
lines changed

8 files changed

+14
-3
lines changed

ci/buildspec-extension.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 0.2
22

33
env:
44
variables:
5-
SKLEARN_FRAMEWORK_VERSION: "1.0-11.0-1"
5+
SKLEARN_FRAMEWORK_VERSION: "1.0-1"
66
EXTENSION_FRAMEWORK_VERSION: "2.5-1"
77

88
phases:

ci/buildspec.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ phases:
2222
- pip install wheel setuptools
2323
- python setup.py bdist_wheel
2424
- docker build -t preprod-sklearn:$FRAMEWORK_VERSION-cpu-py3 -f docker/$FRAMEWORK_VERSION/final/Dockerfile.cpu .
25+
- echo Running tox...
26+
- printf "FROM preprod-sklearn:$FRAMEWORK_VERSION-cpu-py3\nADD . /app\nWORKDIR /app\nRUN python3 -m pip install .[test]" > Dockerfile.test
27+
- docker build -t test-sklearn -f Dockerfile.test .
28+
- docker run --rm -t test-sklearn sh -c 'pytest --cov=sagemaker_sklearn --cov-fail-under=60 test/unit'
29+
- docker run --rm -t test-sklearn sh -c 'flake8 setup.py src test'
30+
- echo Running container tests...
31+
- pytest test/integration/local --docker-base-name preprod-sklearn --tag $FRAMEWORK_VERSION-cpu-py3 --py-version 3 --framework-version $FRAMEWORK_VERSION
2532
- docker tag preprod-sklearn:$FRAMEWORK_VERSION-cpu-py3 515193369038.dkr.ecr.us-west-2.amazonaws.com/sagemaker-scikit-learn:$FRAMEWORK_VERSION-cpu-py3
2633
post_build:
2734
commands:

requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ sagemaker-inference==1.2.0
1717
sagemaker-training==4.0.1
1818
scikit-learn==1.0.2
1919
scipy==1.5.3
20-
six==1.15.0
20+
six==1.15.0
21+
jinja2==2.10.2
22+
MarkupSafe==1.1.1
23+
Werkzeug==0.15.6

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def read(fname):
3232
"Programming Language :: Python",
3333
"Programming Language :: Python :: 3.6",
3434
"Programming Language :: Python :: 3.7",
35+
"Programming Language :: Python :: 3.9",
3536
],
3637

3738
install_requires=read("requirements.txt"),

test/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def pytest_addoption(parser):
4343
parser.addoption('--install-container-support', '-C', action='store_true')
4444
parser.addoption('--docker-base-name', default='sk-learn')
4545
parser.addoption('--region', default='us-west-2')
46-
parser.addoption('--framework-version', default='0.20.0')
46+
parser.addoption('--framework-version', default='1.0.2')
4747
parser.addoption('--py-version', choices=['2', '3'], default=str(sys.version_info.major))
4848
parser.addoption('--processor', choices=['cpu'], default='cpu')
4949
# If not specified, will default to {framework-version}-{processor}-py{py-version}
Binary file not shown.
Binary file not shown.
302 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)