Skip to content

Commit 6dda2e5

Browse files
chore: deprecate Python 3.9 support (#5941)
1 parent 796bdf3 commit 6dda2e5

13 files changed

Lines changed: 19 additions & 26 deletions

File tree

README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ Supported Python Versions
220220

221221
SageMaker Python SDK is tested on:
222222

223-
- Python 3.9
224223
- Python 3.10
225224
- Python 3.11
226225
- Python 3.12

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Prerequisites
1616
---------------
1717

1818
**Python Version**
19-
SageMaker Python SDK V3 supports Python 3.9, 3.10, 3.11, and 3.12
19+
SageMaker Python SDK V3 supports Python 3.10, 3.11, and 3.12
2020

2121
**Operating Systems**
2222
- Linux

docs/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Get started with SageMaker Python SDK V3 in minutes. This guide walks you throug
66
Prerequisites
77
-------------
88

9-
* Python 3.9+ installed
9+
* Python 3.10+ installed
1010
* AWS account with appropriate permissions
1111
* AWS credentials configured
1212

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "sagemaker"
77
dynamic = ["version"]
88
description = "Open source library for training and deploying models on Amazon SageMaker."
99
readme = "README.rst"
10-
requires-python = ">=3.9"
10+
requires-python = ">=3.10"
1111
authors = [
1212
{ name = "Amazon Web Services" },
1313
]
@@ -27,7 +27,6 @@ classifiers = [
2727
"License :: OSI Approved :: Apache Software License",
2828
"Natural Language :: English",
2929
"Programming Language :: Python",
30-
"Programming Language :: Python :: 3.9",
3130
"Programming Language :: Python :: 3.10",
3231
"Programming Language :: Python :: 3.11",
3332
"Programming Language :: Python :: 3.12",

sagemaker-core/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,11 @@ dependencies = [
3939
"tblib>=1.7.0",
4040
"cryptography>=46.0.0",
4141
]
42-
requires-python = ">=3.9"
42+
requires-python = ">=3.10"
4343
classifiers = [
4444
"Development Status :: 3 - Alpha",
4545
"Intended Audience :: Developers",
4646
"License :: OSI Approved :: Apache Software License",
47-
"Programming Language :: Python :: 3.9",
4847
"Programming Language :: Python :: 3.10",
4948
"Programming Language :: Python :: 3.11",
5049
"Programming Language :: Python :: 3.12",

sagemaker-core/tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[tox]
77
isolated_build = true
8-
envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py39,py310,py311,py312
8+
envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py310,py311,py312
99
skip_missing_interpreters = False
1010

1111
[flake8]
@@ -86,7 +86,7 @@ allowlist_externals =
8686
pytest
8787
commands =
8888
python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')"
89-
pip install 'apache-airflow==2.10.4' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.10.4/constraints-3.9.txt"
89+
pip install 'apache-airflow==2.10.4' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.10.4/constraints-3.10.txt"
9090
pip install 'torch==2.3.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
9191
pip install 'torchvision==0.18.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
9292
pip install 'dill>=0.3.9'
@@ -98,7 +98,7 @@ deps =
9898
.[test]
9999
mock
100100
depends =
101-
{py39,py310,py311,py312}: clean
101+
{py310,py311,py312}: clean
102102

103103
[testenv:py312]
104104
basepython = python3.12

sagemaker-mlops/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dynamic = ["version"]
88
description = "SageMaker MLOps package for workflow orchestration and model building"
99
readme = "README.md"
1010
license = {file = "LICENSE"}
11-
requires-python = ">=3.9"
11+
requires-python = ">=3.10"
1212
authors = [
1313
{name = "Amazon Web Services"},
1414
]
@@ -17,7 +17,6 @@ classifiers = [
1717
"Intended Audience :: Developers",
1818
"License :: OSI Approved :: Apache Software License",
1919
"Programming Language :: Python :: 3",
20-
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
2322
"Programming Language :: Python :: 3.12",

sagemaker-mlops/tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[tox]
77
isolated_build = true
8-
envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py39,py310,py311,py312
8+
envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py310,py311,py312
99

1010
skip_missing_interpreters = False
1111

@@ -88,7 +88,7 @@ allowlist_externals =
8888
pytest
8989
commands =
9090
python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')"
91-
pip install 'apache-airflow==2.10.4' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.10.4/constraints-3.9.txt"
91+
pip install 'apache-airflow==2.10.4' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.10.4/constraints-3.10.txt"
9292
pip install 'torch==2.8.0' 'torchvision==0.23.0'
9393
pip install 'dill>=0.3.9'
9494

@@ -101,7 +101,7 @@ deps =
101101
.[test]
102102
mock
103103
depends =
104-
{py39,py310,py311,py312}: clean
104+
{py310,py311,py312}: clean
105105

106106
[testenv:py312]
107107
basepython = python3.12

sagemaker-serve/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dynamic = ["version"]
88
description = "SageMaker Serve package for model serving and deployment"
99
readme = "README.md"
1010
license = {file = "LICENSE"}
11-
requires-python = ">=3.9"
11+
requires-python = ">=3.10"
1212
authors = [
1313
{name = "Amazon Web Services"},
1414
]
@@ -17,7 +17,6 @@ classifiers = [
1717
"Intended Audience :: Developers",
1818
"License :: OSI Approved :: Apache Software License",
1919
"Programming Language :: Python :: 3",
20-
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
2322
"Programming Language :: Python :: 3.12",

sagemaker-serve/tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[tox]
77
isolated_build = true
8-
envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py39,py310,py311,py312
8+
envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py310,py311,py312
99

1010
skip_missing_interpreters = False
1111

@@ -88,7 +88,7 @@ allowlist_externals =
8888
pytest
8989
commands =
9090
python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')"
91-
pip install 'apache-airflow==2.10.4' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.10.4/constraints-3.9.txt"
91+
pip install 'apache-airflow==2.10.4' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.10.4/constraints-3.10.txt"
9292
pip install 'torch==2.8.0' 'torchvision==0.23.0'
9393
pip install 'onnx>=1.16.0,<1.17.0' 'onnxruntime>=1.19.0,<1.20.0'
9494
pip install 'dill>=0.3.9'
@@ -102,7 +102,7 @@ deps =
102102
.[test]
103103
mock
104104
depends =
105-
{py39,py310,py311,py312}: clean
105+
{py310,py311,py312}: clean
106106

107107
[testenv:py312]
108108
basepython = python3.12

0 commit comments

Comments
 (0)