Skip to content

Commit

Permalink
Remove Python 2.7 support references (#2922)
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprewitt authored Jul 15, 2021
1 parent 76070a4 commit e27a3a3
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changes/next-release/feature-Python-31902.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "feature",
"category": "Python",
"description": "Drop support for Python 2.7"
}
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8]
os: [ubuntu-latest, macOS-latest, windows-latest ]

steps:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ of services like Amazon S3 and Amazon EC2. You can find the latest, most
up to date, documentation at our `doc site`_, including a list of
services that are supported.

On 01/15/2021 deprecation for Python 2.7 was announced and support will be dropped
On 01/15/2021 deprecation for Python 2.7 was announced and support was dropped
on 07/15/2021. To avoid disruption, customers using Boto3 on Python 2.7 may
need to upgrade their version of Python or pin the version of Boto3. For
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/>`__.
Expand Down
4 changes: 4 additions & 0 deletions boto3/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def filter_python_deprecation_warnings():


def _warn_deprecated_python():
"""Python 2.7 is deprecated so this code will no longer run.
Use this template for future deprecation campaigns as needed.
"""
py_27_params = {
'date': 'July 15, 2021',
'blog_link': 'https://aws.amazon.com/blogs/developer/announcing-end-'
Expand Down
3 changes: 2 additions & 1 deletion docs/source/guide/migrationpy3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ 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.6 or later. Boto3 and
Botocore support for Python 3.4 and 3.5 has already ended, and support for Python 2.7 will end effective July 15, 2021.
Botocore ended support for Python 3.4 and 3.5 on Feb 21, 2021, and support for Python 2.7
ended July 15, 2021.

Updating your project to use Python 3
-------------------------------------
Expand Down
9 changes: 5 additions & 4 deletions docs/source/guide/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ To use Boto3, you first need to install it and its dependencies.
Install or update Python
~~~~~~~~~~~~~~~~~~~~~~~~

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

For information about how to get the latest version of Python, see the official `Python
documentation <https://www.python.org/downloads/>`_.
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bdist_wheel]
universal = 1
universal = 0

[metadata]
requires_dist =
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ def get_version():
include_package_data=True,
install_requires=requires,
license="Apache License 2.0",
python_requires=">= 2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*",
python_requires=">= 3.6",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py36,py37,py38
envlist = py36,py37,py38

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

0 comments on commit e27a3a3

Please sign in to comment.