Skip to content

Commit e27a3a3

Browse files
authored
Remove Python 2.7 support references (#2922)
1 parent 76070a4 commit e27a3a3

File tree

9 files changed

+21
-12
lines changed

9 files changed

+21
-12
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Python",
4+
"description": "Drop support for Python 2.7"
5+
}

.github/workflows/run-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: [2.7, 3.6, 3.7, 3.8]
16+
python-version: [3.6, 3.7, 3.8]
1717
os: [ubuntu-latest, macOS-latest, windows-latest ]
1818

1919
steps:

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ of services like Amazon S3 and Amazon EC2. You can find the latest, most
1010
up to date, documentation at our `doc site`_, including a list of
1111
services that are supported.
1212

13-
On 01/15/2021 deprecation for Python 2.7 was announced and support will be dropped
13+
On 01/15/2021 deprecation for Python 2.7 was announced and support was dropped
1414
on 07/15/2021. To avoid disruption, customers using Boto3 on Python 2.7 may
1515
need to upgrade their version of Python or pin the version of Boto3. For
1616
more information, see this `blog post <https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-python-2-7-in-aws-sdk-for-python-and-aws-cli-v1/>`__.

boto3/compat.py

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ def filter_python_deprecation_warnings():
6464

6565

6666
def _warn_deprecated_python():
67+
"""Python 2.7 is deprecated so this code will no longer run.
68+
69+
Use this template for future deprecation campaigns as needed.
70+
"""
6771
py_27_params = {
6872
'date': 'July 15, 2021',
6973
'blog_link': 'https://aws.amazon.com/blogs/developer/announcing-end-'

docs/source/guide/migrationpy3.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ module) and Boto3 (which implements the API functionality and higher-level featu
1414
Timeline
1515
--------
1616
Going forward, all projects using Boto3 need to transition to Python 3.6 or later. Boto3 and
17-
Botocore support for Python 3.4 and 3.5 has already ended, and support for Python 2.7 will end effective July 15, 2021.
17+
Botocore ended support for Python 3.4 and 3.5 on Feb 21, 2021, and support for Python 2.7
18+
ended July 15, 2021.
1819

1920
Updating your project to use Python 3
2021
-------------------------------------

docs/source/guide/quickstart.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ To use Boto3, you first need to install it and its dependencies.
2424
Install or update Python
2525
~~~~~~~~~~~~~~~~~~~~~~~~
2626

27-
Before installing Boto3, install Python 3.6 or later; support for Python 2.7 and Python 3.5 and
28-
earlier is deprecated. After the deprecation date listed for each Python version, new releases of
29-
Boto3 will not include support for that version of Python. For details, including the deprecation
30-
schedule and how to update your project to use Python 3.6, see :ref:`guide_migration_py3`.
27+
Before installing Boto3, install Python 3.6 or later; support for Python 3.5 and
28+
earlier is deprecated. After the deprecation date listed for each Python
29+
version, new releases of Boto3 will not include support for that version of
30+
Python. For details, including the deprecation schedule and how to update your
31+
project to use Python 3.6, see :ref:`guide_migration_py3`.
3132

3233
For information about how to get the latest version of Python, see the official `Python
3334
documentation <https://www.python.org/downloads/>`_.

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bdist_wheel]
2-
universal = 1
2+
universal = 0
33

44
[metadata]
55
requires_dist =

setup.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ def get_version():
4343
include_package_data=True,
4444
install_requires=requires,
4545
license="Apache License 2.0",
46-
python_requires=">= 2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*",
46+
python_requires=">= 3.6",
4747
classifiers=[
4848
'Development Status :: 5 - Production/Stable',
4949
'Intended Audience :: Developers',
5050
'Natural Language :: English',
5151
'License :: OSI Approved :: Apache Software License',
5252
'Programming Language :: Python',
53-
'Programming Language :: Python :: 2',
54-
'Programming Language :: Python :: 2.7',
5553
'Programming Language :: Python :: 3',
5654
'Programming Language :: Python :: 3.6',
5755
'Programming Language :: Python :: 3.7',

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27,py36,py37,py38
2+
envlist = py36,py37,py38
33

44
# Comment to build sdist and install into virtualenv
55
# This is helpful to test installation but takes extra time

0 commit comments

Comments
 (0)