Skip to content

Commit f1f26c9

Browse files
committed
feature: add support for python 3.11
1 parent c56a7d1 commit f1f26c9

File tree

8 files changed

+13
-11
lines changed

8 files changed

+13
-11
lines changed

.githooks/pre-push

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# this pre-push hook runs style checks and unit tests in python 3.6, 3.7, and 3.8 using tox.
2+
# this pre-push hook runs style checks and unit tests in python 3.8, 3.9, 3.10, 3.11 using tox.
33

44
set -e
55

@@ -12,5 +12,5 @@ start_time=`date +%s`
1212
tox -e sphinx,doc8 --parallel all
1313
./ci-scripts/displaytime.sh 'sphinx,doc8' $start_time
1414
start_time=`date +%s`
15-
tox -e py38,py39,py310 --parallel all -- tests/unit
16-
./ci-scripts/displaytime.sh 'py38,py39,py310 unit' $start_time
15+
tox -e py38,py39,py310,py311 --parallel all -- tests/unit
16+
./ci-scripts/displaytime.sh 'py38,py39,py310,py311 unit' $start_time

README.rst

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ SageMaker Python SDK is tested on:
9090
- Python 3.8
9191
- Python 3.9
9292
- Python 3.10
93+
- Python 3.11
9394

9495
AWS Permissions
9596
~~~~~~~~~~~~~~~
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
scipy==1.7.3
1+
scipy==1.10.1

requirements/extras/test_requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ sagemaker-experiments==0.1.35
2121
Jinja2==3.0.3
2222
pyvis==0.2.1
2323
pandas>=1.3.5,<1.5
24-
scikit-learn==1.0.2
24+
scikit-learn==1.3.0
2525
cloudpickle==2.2.1
26-
scipy==1.7.3
26+
scipy==1.10.1
2727
urllib3>=1.26.8,<1.26.15
2828
docker>=5.0.2,<7.0.0
2929
PyYAML==6.0

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def read_requirements(filename):
9292
url="https://github.com/aws/sagemaker-python-sdk/",
9393
license="Apache License 2.0",
9494
keywords="ML Amazon AWS AI Tensorflow MXNet",
95-
python_requires=">= 3.7",
95+
python_requires=">= 3.8",
9696
classifiers=[
9797
"Development Status :: 5 - Production/Stable",
9898
"Intended Audience :: Developers",
@@ -102,6 +102,7 @@ def read_requirements(filename):
102102
"Programming Language :: Python :: 3.8",
103103
"Programming Language :: Python :: 3.9",
104104
"Programming Language :: Python :: 3.10",
105+
"Programming Language :: Python :: 3.11",
105106
],
106107
install_requires=required_packages,
107108
extras_require=extras,
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
scipy==1.7.3
1+
scipy==1.10.1

tests/integ/sagemaker/remote_function/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"channels:\n"
8181
" - defaults\n"
8282
"dependencies:\n"
83-
" - scipy=1.7.3\n"
83+
" - scipy=1.10.1\n"
8484
" - pip:\n"
8585
" - /sagemaker-{sagemaker_version}.tar.gz\n"
8686
"prefix: /opt/conda/bin/conda\n"

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py38,py39,py310
7+
envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py38,py39,py310,py311
88

99
skip_missing_interpreters = False
1010

@@ -79,7 +79,7 @@ commands =
7979
{env:IGNORE_COVERAGE:} coverage report -i --fail-under=86
8080
deps = .[test]
8181
depends =
82-
{py38,py39,py310}: clean
82+
{py38,py39,py310,py311}: clean
8383

8484
[testenv:flake8]
8585
skipdist = true

0 commit comments

Comments
 (0)