Skip to content

Commit 27fa540

Browse files
authored
Drop support for Python 3.6 (#3278)
1 parent 6e1e073 commit 27fa540

File tree

9 files changed

+16
-12
lines changed

9 files changed

+16
-12
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Python",
4+
"description": "Dropped support for Python 3.6"
5+
}

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
15+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1616
os: [ubuntu-latest, macOS-latest, windows-latest ]
1717

1818
steps:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on 2021-07-15. To avoid disruption, customers using Boto3 on Python 2.7 may
2222
need to upgrade their version of Python or pin the version of Boto3. For
2323
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/>`__.
2424

25-
On 2022-05-30, we will be dropping support for Python 3.6. This follows the
25+
On 2022-05-30, support for Python 3.6 was ended. This follows the
2626
Python Software Foundation `end of support <https://www.python.org/dev/peps/pep-0494/#lifespan>`__
2727
for the runtime which occurred on 2021-12-23.
2828
For more information, see this `blog post <https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/>`__.

boto3/compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def _warn_deprecated_python():
7373
)
7474
}
7575
deprecated_versions = {
76-
(3, 6): py_36_params,
76+
# Example template for future deprecations
77+
# (3, 6): py_36_params,
7778
}
7879
py_version = sys.version_info[:2]
7980

docs/source/guide/migrationpy3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ module) and Boto3 (which implements the API functionality and higher-level featu
1313

1414
Timeline
1515
--------
16-
Going forward, all projects using Boto3 need to transition to Python 3.6 or later. Boto3 and
16+
Going forward, all projects using Boto3 need to transition to Python 3.7 or later. Boto3 and
1717
Botocore ended support for Python 3.4 and 3.5 on Feb 21, 2021, and support for Python 2.7
1818
ended July 15, 2021.
1919

2020
Updating your project to use Python 3
2121
-------------------------------------
2222

2323
Before you begin to update your project and environment, make sure you’ve installed or updated to
24-
Python 3.6 or later as described in :ref:`upgrade to Python 3 <quickstart_install_python>`. You can
24+
Python 3.7 or later as described in :ref:`upgrade to Python 3 <quickstart_install_python>`. You can
2525
get Python from the `PSF web site <https://www.python.org/downloads>`_ or using your local package
2626
manager.
2727

docs/source/guide/quickstart.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +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 3.5 and
27+
Before installing Boto3, install Python 3.7 or later; support for Python 3.6 and
2828
earlier is deprecated. After the deprecation date listed for each Python
2929
version, new releases of Boto3 will not include support for that version of
3030
Python. For details, including the deprecation schedule and how to update your
31-
project to use Python 3.6, see :ref:`guide_migration_py3`.
31+
project to use Python 3.7, see :ref:`guide_migration_py3`.
3232

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

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
-e git+https://github.com/boto/botocore.git@develop#egg=botocore
2-
-e 'git+https://github.com/boto/jmespath.git@develop#egg=jmespath; python_version > "3.6"'
3-
jmespath<1.0; python_version <= '3.6'
2+
-e git+https://github.com/boto/jmespath.git@develop#egg=jmespath
43
-e git+https://github.com/boto/s3transfer.git@develop#egg=s3transfer

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,14 @@ def get_version():
3737
include_package_data=True,
3838
install_requires=requires,
3939
license="Apache License 2.0",
40-
python_requires=">= 3.6",
40+
python_requires=">= 3.7",
4141
classifiers=[
4242
'Development Status :: 5 - Production/Stable',
4343
'Intended Audience :: Developers',
4444
'Natural Language :: English',
4545
'License :: OSI Approved :: Apache Software License',
4646
'Programming Language :: Python',
4747
'Programming Language :: Python :: 3',
48-
'Programming Language :: Python :: 3.6',
4948
'Programming Language :: Python :: 3.7',
5049
'Programming Language :: Python :: 3.8',
5150
'Programming Language :: Python :: 3.9',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py36,py37,py38,py39,py310
2+
envlist = py37,py38,py39,py310
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)