Skip to content

Commit 582d103

Browse files
chore: Remove support for Python 2 (#226)
1 parent 6bbda0d commit 582d103

File tree

11 files changed

+25
-73
lines changed

11 files changed

+25
-73
lines changed

.github/workflows/ci_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
- os: macos-latest
2626
architecture: x64
2727
python:
28-
- 2.7
2928
- 3.5
3029
- 3.6
3130
- 3.7
3231
- 3.8
32+
- 3.9
3333
- 3.x
3434
category:
3535
- local

CHANGELOG.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
Changelog
33
*********
44

5+
4.0.0 -- 2021-07-13
6+
===================
7+
8+
Deprecation
9+
-----------
10+
The AWS Encryption SDK CLI no longer supports Python 2 or Python 3.4
11+
as of major version 4.x; only Python 3.5+ is supported. Customers using Python 2
12+
or Python 3.4 can still use the 3.x line of the AWS Encryption SDK CLI,
13+
which will continue to receive security updates for the next 12 months, in accordance
14+
with our `Support Policy <https://github.com/aws/aws-encryption-sdk-cli/blob/master/SUPPORT_POLICY.rst>`__.
15+
16+
517
3.1.0 -- 2021-07-13
618
===================
719

README.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,8 @@ Getting Started
4444
Required Prerequisites
4545
======================
4646

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

5550
Installation
5651
============

SUPPORT_POLICY.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ This table describes the current support status of each major version of the AWS
3030
- End of Support
3131
- 2022-07-13
3232
* - 3.x
33-
- General Availability
3433
- Maintenance
35-
- 2021-07-13
34+
- End of Support
35+
- 2022-07-13
3636
* - 4.x
37-
-
3837
- General Availability
39-
- 2021-07-13
38+
-
39+
-
4040

4141
.. _AWS SDKs and Tools Maintenance Policy: https://docs.aws.amazon.com/sdkref/latest/guide/maint-policy.html#version-life-cycle

buildspec.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ version: 0.2
33
batch:
44
fast-fail: false
55
build-list:
6-
- identifier: py27_integ
7-
buildspec: codebuild/py27/integ.yml
8-
- identifier: py27_examples
9-
buildspec: codebuild/py27/examples.yml
10-
116
- identifier: py35_integ
127
buildspec: codebuild/py35/integ.yml
138
- identifier: py35_examples

codebuild/py27/examples.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

codebuild/py27/integ.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
base64io>=1.0.1
2-
aws-encryption-sdk~=2.3
2+
aws-encryption-sdk~=3.0
33
setuptools
44
attrs>=17.1.0

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ def get_requirements():
4848
"Natural Language :: English",
4949
"License :: OSI Approved :: Apache Software License",
5050
"Programming Language :: Python",
51-
"Programming Language :: Python :: 2",
52-
"Programming Language :: Python :: 2.7",
5351
"Programming Language :: Python :: 3",
54-
"Programming Language :: Python :: 3.4",
5552
"Programming Language :: Python :: 3.5",
5653
"Programming Language :: Python :: 3.6",
5754
"Programming Language :: Python :: 3.7",
55+
"Programming Language :: Python :: 3.8",
56+
"Programming Language :: Python :: 3.9",
5857
"Programming Language :: Python :: Implementation :: CPython",
5958
"Topic :: Security",
6059
"Topic :: Security :: Cryptography",

src/aws_encryption_sdk_cli/internal/identifiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"DEFAULT_MASTER_KEY_PROVIDER",
3232
"OperationResult",
3333
)
34-
__version__ = "3.1.0" # type: str
34+
__version__ = "4.0.0" # type: str
3535

3636
#: Suffix added to output files if specific output filename is not specified.
3737
OUTPUT_SUFFIX = {

tox.ini

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
envlist =
3-
py{27,35,36,37,38}-{local,integ,examples},
4-
mypy-py{2,3},
3+
py{35,36,37,38,39}-{local,integ,examples},
4+
mypy-py{3},
55
bandit, doc8, readme, docs,
66
flake8, pylint,
77
flake8-tests, pylint-tests,
@@ -101,17 +101,6 @@ commands =
101101
{posargs}
102102
{[testenv:mypy-coverage]commands}
103103

104-
[testenv:mypy-py2]
105-
basepython = {[testenv:mypy-common]basepython}
106-
deps = {[testenv:mypy-common]deps}
107-
commands =
108-
python -m mypy \
109-
--py2 \
110-
--linecoverage-report build \
111-
src/aws_encryption_sdk_cli/ \
112-
{posargs}
113-
{[testenv:mypy-coverage]commands}
114-
115104
# Linters
116105
[testenv:flake8]
117106
basepython = python3

0 commit comments

Comments
 (0)