From 2ba43582cb62c497f088b48dec27b27547bfe760 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Tue, 28 Nov 2023 09:33:34 -0700 Subject: [PATCH] Deprecate Python 3.7 Support --- .github/workflows/run-crt-test.yml | 2 +- .github/workflows/run-tests.yml | 2 +- .pre-commit-config.yaml | 2 +- README.rst | 2 +- docs/source/guide/migrationpy3.rst | 2 +- requirements-dev-lock.txt | 18 ++---------------- setup.py | 3 +-- tox.ini | 2 +- 8 files changed, 9 insertions(+), 24 deletions(-) diff --git a/.github/workflows/run-crt-test.yml b/.github/workflows/run-crt-test.yml index 8132b44873..68bbc8eed7 100644 --- a/.github/workflows/run-crt-test.yml +++ b/.github/workflows/run-crt-test.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] os: [ubuntu-latest, macOS-latest, windows-latest] steps: diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 8bb8b987eb..8168e6fa58 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] os: [ubuntu-latest, macOS-latest, windows-latest] steps: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f12fe27b41..8e58c9ab59 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: hooks: - id: pyupgrade args: - - '--py36-plus' + - '--py38-plus' - repo: 'https://github.com/PyCQA/isort' rev: 5.12.0 hooks: diff --git a/README.rst b/README.rst index 787615a85c..eb91aca8fc 100644 --- a/README.rst +++ b/README.rst @@ -17,7 +17,7 @@ Boto (pronounced boh-toh) was named after the fresh water dolphin native to the Notices ------- -On 2023-12-13, support for Python 3.7 will end for Boto3. This follows the +On 2023-12-13, support for Python 3.7 ended for Boto3. This follows the Python Software Foundation `end of support `__ for the runtime which occurred on 2023-06-27. For more information, see this `blog post `__. diff --git a/docs/source/guide/migrationpy3.rst b/docs/source/guide/migrationpy3.rst index ed30226738..d838404db0 100644 --- a/docs/source/guide/migrationpy3.rst +++ b/docs/source/guide/migrationpy3.rst @@ -14,7 +14,7 @@ module) and Boto3 (which implements the API functionality and higher-level featu Timeline -------- Going forward, all projects using Boto3 need to transition to Python 3.8 or later. Boto3 and -Botocore will end support for Python 3.7 on December, 13, 2023, and support for Python 2.7 +Botocore ended support for Python 3.7 on December, 13, 2023, and support for Python 2.7 ended July 15, 2021. Updating your project to use Python 3 diff --git a/requirements-dev-lock.txt b/requirements-dev-lock.txt index a94d85bb27..28e083b43d 100644 --- a/requirements-dev-lock.txt +++ b/requirements-dev-lock.txt @@ -1,6 +1,6 @@ # -# This file is autogenerated by pip-compile with python 3.7 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.8 +# by the following command: # # pip-compile --allow-unsafe --generate-hashes --output-file=requirements-dev-lock.txt requirements-dev.txt # @@ -79,12 +79,6 @@ exceptiongroup==1.1.3 \ --hash=sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9 \ --hash=sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3 # via pytest -importlib-metadata==4.12.0 \ - --hash=sha256:637245b8bab2b6502fcbc752cc4b7a6f6243bb02b31c5c26156ad103d3d45670 \ - --hash=sha256:7401a975809ea1fdc658c3aa4f78cc2195a0e019c5cbc4c06122884e9ae80c23 - # via - # pluggy - # pytest iniconfig==1.1.1 \ --hash=sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3 \ --hash=sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32 @@ -117,15 +111,7 @@ tomli==2.0.1 \ # via # coverage # pytest -typing-extensions==4.3.0 \ - --hash=sha256:25642c956049920a5aa49edcdd6ab1e06d7e5d467fc00e0506c44ac86fbfca02 \ - --hash=sha256:e6d2677a32f47fc7eb2795db1dd15c1f34eff616bcaf2cfb5e997f854fa1c4a6 - # via importlib-metadata wheel==0.38.1 \ --hash=sha256:7a95f9a8dc0924ef318bd55b616112c70903192f524d120acc614f59547a9e1f \ --hash=sha256:ea041edf63f4ccba53ad6e035427997b3bb10ee88a4cd014ae82aeb9eea77bb9 # via -r requirements-dev.txt -zipp==3.8.0 \ - --hash=sha256:56bf8aadb83c24db6c4b577e13de374ccfb67da2078beba1d037c17980bf43ad \ - --hash=sha256:c4f6e5bbf48e74f7a38e7cc5b0480ff42b0ae5178957d564d18932525d5cf099 - # via importlib-metadata diff --git a/setup.py b/setup.py index bdc48c4fe0..812818bd13 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ def get_version(): include_package_data=True, install_requires=requires, license="Apache License 2.0", - python_requires=">= 3.7", + python_requires=">= 3.8", classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', @@ -46,7 +46,6 @@ def get_version(): 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3 :: Only', - '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 9d0ccaad46..691511dbe3 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py37,py38,py39,py310,py311,py312 +envlist = py38,py39,py310,py311,py312 # Comment to build sdist and install into virtualenv # This is helpful to test installation but takes extra time