Skip to content

Commit 4604a85

Browse files
authored
feat: remove Python3.7 support (#764)
1 parent 2a7fe12 commit 4604a85

File tree

7 files changed

+7
-11
lines changed

7 files changed

+7
-11
lines changed

.github/workflows/ci_tests.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
- os: macos-latest
2626
architecture: x64
2727
python:
28-
- 3.7
2928
- 3.8
3029
- 3.9
3130
- "3.10"

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Getting Started
4747
Required Prerequisites
4848
======================
4949

50-
* Python 3.7+
50+
* Python 3.8+
5151

5252

5353
Installation

buildspec.yml

-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ version: 0.2
33
batch:
44
fast-fail: false
55
build-list:
6-
- identifier: python3_7
7-
buildspec: codebuild/python3.7.yml
8-
env:
9-
image: aws/codebuild/standard:5.0
106
- identifier: python3_8
117
buildspec: codebuild/python3.8.yml
128
env:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ def get_requirements():
4848
"License :: OSI Approved :: Apache Software License",
4949
"Programming Language :: Python",
5050
"Programming Language :: Python :: 3",
51-
"Programming Language :: Python :: 3.7",
5251
"Programming Language :: Python :: 3.8",
5352
"Programming Language :: Python :: 3.9",
5453
"Programming Language :: Python :: 3.10",
5554
"Programming Language :: Python :: 3.11",
55+
"Programming Language :: Python :: 3.12",
5656
"Programming Language :: Python :: Implementation :: CPython",
5757
"Topic :: Security",
5858
"Topic :: Security :: Cryptography",

src/dynamodb_encryption_sdk/compatability.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ def _warn_deprecated_python():
2424
(3, 4): {"date": DEPRECATION_DATE_MAP["2.x"]},
2525
(3, 5): {"date": "2021-11-10"},
2626
(3, 6): {"date": "2021-12-19"},
27+
(3, 7): {"date": "2024-03-04"},
2728
}
2829
py_version = (sys.version_info.major, sys.version_info.minor)
29-
minimum_version = (3, 7)
30+
minimum_version = (3, 8)
3031

3132
if py_version in deprecated_versions:
3233
params = deprecated_versions[py_version]
@@ -36,5 +37,5 @@ def _warn_deprecated_python():
3637
"bug fixes, and security updates please upgrade to Python {}.{} or "
3738
"later. For more information, see SUPPORT_POLICY.rst: "
3839
"https://github.com/aws/aws-dynamodb-encryption-python/blob/master/SUPPORT_POLICY.rst"
39-
).format(py_version[0], py_version[1], minimum_version[0], minimum_version[1], params["date"])
40+
).format(py_version[0], py_version[1], params["date"], minimum_version[0], minimum_version[1])
4041
warnings.warn(warning, DeprecationWarning)

test/unit/test_compatability.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TestWarnDeprecatedPython:
2525
def test_happy_version(self):
2626
with mock.patch.object(sys, "version_info") as v_info:
2727
v_info.major = 3
28-
v_info.minor = 7
28+
v_info.minor = 8
2929
with pytest.warns(None) as record:
3030
_warn_deprecated_python()
3131
assert len(record) == 0

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{37,38,39,310,311,312}-{local,integ,ddb,examples}-fast,
3+
py{38,39,310,311,312}-{local,integ,ddb,examples}-fast,
44
nocmk, sourcebuildcheck,
55
docs, bandit, doc8, readme,
66
flake8{,-tests,-examples}, pylint{,-tests,-examples},

0 commit comments

Comments
 (0)