From b084051cff60807b03804d99a6189466970a2b99 Mon Sep 17 00:00:00 2001 From: Erick Benitez-Ramos Date: Tue, 29 Aug 2023 10:33:42 -0700 Subject: [PATCH] deprecation: remove support for py37 --- .githooks/pre-push | 4 ++-- README.rst | 1 - setup.py | 3 +-- tox.ini | 6 +++--- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.githooks/pre-push b/.githooks/pre-push index 9235297add..8a5df3bbc3 100755 --- a/.githooks/pre-push +++ b/.githooks/pre-push @@ -12,5 +12,5 @@ start_time=`date +%s` tox -e sphinx,doc8 --parallel all ./ci-scripts/displaytime.sh 'sphinx,doc8' $start_time start_time=`date +%s` -tox -e py37,py38,py39 --parallel all -- tests/unit -./ci-scripts/displaytime.sh 'py37,py38,py39 unit' $start_time +tox -e py38,py39,py310 --parallel all -- tests/unit +./ci-scripts/displaytime.sh 'py38,py39,py310 unit' $start_time diff --git a/README.rst b/README.rst index 1e9bdf162a..80281bad5a 100644 --- a/README.rst +++ b/README.rst @@ -87,7 +87,6 @@ Supported Python Versions SageMaker Python SDK is tested on: -- Python 3.7 - Python 3.8 - Python 3.9 - Python 3.10 diff --git a/setup.py b/setup.py index 611e7b0520..ae4a172b80 100644 --- a/setup.py +++ b/setup.py @@ -92,14 +92,13 @@ def read_requirements(filename): url="https://github.com/aws/sagemaker-python-sdk/", license="Apache License 2.0", keywords="ML Amazon AWS AI Tensorflow MXNet", - python_requires=">= 3.6", + python_requires=">= 3.7", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Natural Language :: English", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", diff --git a/tox.ini b/tox.ini index 5a1c0289c7..675bd7149f 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py37,py38,py39,py310 +envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py38,py39,py310 skip_missing_interpreters = False @@ -73,13 +73,13 @@ passenv = # Can be used to specify which tests to run, e.g.: tox -- -s commands = python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')" - pip install 'apache-airflow==2.6.3' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.6.3/constraints-3.7.txt" + pip install 'apache-airflow==2.7.0' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.7.0/constraints-3.8.txt" pytest --cov=sagemaker --cov-append {posargs} {env:IGNORE_COVERAGE:} coverage report -i --fail-under=86 deps = .[test] depends = - {py37,py38,py39,py310}: clean + {py38,py39,py310}: clean [testenv:flake8] skipdist = true