Skip to content

Commit

Permalink
chore: Remove support for Python 2 (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
farleyb-amazon authored Jul 13, 2021
1 parent 6bbda0d commit 582d103
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
- os: macos-latest
architecture: x64
python:
- 2.7
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9
- 3.x
category:
- local
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
Changelog
*********

4.0.0 -- 2021-07-13
===================

Deprecation
-----------
The AWS Encryption SDK CLI no longer supports Python 2 or Python 3.4
as of major version 4.x; only Python 3.5+ is supported. Customers using Python 2
or Python 3.4 can still use the 3.x line of the AWS Encryption SDK CLI,
which will continue to receive security updates for the next 12 months, in accordance
with our `Support Policy <https://github.com/aws/aws-encryption-sdk-cli/blob/master/SUPPORT_POLICY.rst>`__.


3.1.0 -- 2021-07-13
===================

Expand Down
9 changes: 2 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,8 @@ Getting Started
Required Prerequisites
======================

* Python 2.7+ or 3.4+

**NOTE: 2.x is the last major version of this library that will
support Python 2. Future major versions will begin to adopt changes
known to break Python 2. Python 3.4 support will also be removed
in future major versions; Python 3.5+ will be required.**
* aws-encryption-sdk >= 2.3.0
* Python 3.5+
* aws-encryption-sdk >= 3.0.0

Installation
============
Expand Down
8 changes: 4 additions & 4 deletions SUPPORT_POLICY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ This table describes the current support status of each major version of the AWS
- End of Support
- 2022-07-13
* - 3.x
- General Availability
- Maintenance
- 2021-07-13
- End of Support
- 2022-07-13
* - 4.x
-
- General Availability
- 2021-07-13
-
-

.. _AWS SDKs and Tools Maintenance Policy: https://docs.aws.amazon.com/sdkref/latest/guide/maint-policy.html#version-life-cycle
5 changes: 0 additions & 5 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ version: 0.2
batch:
fast-fail: false
build-list:
- identifier: py27_integ
buildspec: codebuild/py27/integ.yml
- identifier: py27_examples
buildspec: codebuild/py27/examples.yml

- identifier: py35_integ
buildspec: codebuild/py35/integ.yml
- identifier: py35_examples
Expand Down
20 changes: 0 additions & 20 deletions codebuild/py27/examples.yml

This file was deleted.

18 changes: 0 additions & 18 deletions codebuild/py27/integ.yml

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
base64io>=1.0.1
aws-encryption-sdk~=2.3
aws-encryption-sdk~=3.0
setuptools
attrs>=17.1.0
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ def get_requirements():
"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.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Security",
"Topic :: Security :: Cryptography",
Expand Down
2 changes: 1 addition & 1 deletion src/aws_encryption_sdk_cli/internal/identifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"DEFAULT_MASTER_KEY_PROVIDER",
"OperationResult",
)
__version__ = "3.1.0" # type: str
__version__ = "4.0.0" # type: str

#: Suffix added to output files if specific output filename is not specified.
OUTPUT_SUFFIX = {
Expand Down
15 changes: 2 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
py{27,35,36,37,38}-{local,integ,examples},
mypy-py{2,3},
py{35,36,37,38,39}-{local,integ,examples},
mypy-py{3},
bandit, doc8, readme, docs,
flake8, pylint,
flake8-tests, pylint-tests,
Expand Down Expand Up @@ -101,17 +101,6 @@ commands =
{posargs}
{[testenv:mypy-coverage]commands}

[testenv:mypy-py2]
basepython = {[testenv:mypy-common]basepython}
deps = {[testenv:mypy-common]deps}
commands =
python -m mypy \
--py2 \
--linecoverage-report build \
src/aws_encryption_sdk_cli/ \
{posargs}
{[testenv:mypy-coverage]commands}

# Linters
[testenv:flake8]
basepython = python3
Expand Down

0 comments on commit 582d103

Please sign in to comment.