diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index 6ec74181..d856f4ae 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -25,7 +25,6 @@ jobs: - os: macos-latest architecture: x64 python: - - 3.7 - 3.8 - 3.9 - "3.10" diff --git a/README.rst b/README.rst index d2e3647a..438a10ee 100644 --- a/README.rst +++ b/README.rst @@ -47,7 +47,7 @@ Getting Started Required Prerequisites ====================== -* Python 3.7+ +* Python 3.8+ Installation diff --git a/buildspec.yml b/buildspec.yml index b0005071..b53801b5 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -3,10 +3,6 @@ version: 0.2 batch: fast-fail: false build-list: - - identifier: python3_7 - buildspec: codebuild/python3.7.yml - env: - image: aws/codebuild/standard:5.0 - identifier: python3_8 buildspec: codebuild/python3.8.yml env: diff --git a/setup.py b/setup.py index 55408c94..e64e7d4e 100644 --- a/setup.py +++ b/setup.py @@ -48,11 +48,11 @@ def get_requirements(): "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Security", "Topic :: Security :: Cryptography", diff --git a/src/dynamodb_encryption_sdk/compatability.py b/src/dynamodb_encryption_sdk/compatability.py index 9819c825..ccd7be9f 100644 --- a/src/dynamodb_encryption_sdk/compatability.py +++ b/src/dynamodb_encryption_sdk/compatability.py @@ -24,9 +24,10 @@ def _warn_deprecated_python(): (3, 4): {"date": DEPRECATION_DATE_MAP["2.x"]}, (3, 5): {"date": "2021-11-10"}, (3, 6): {"date": "2021-12-19"}, + (3, 7): {"date": "2024-03-04"}, } py_version = (sys.version_info.major, sys.version_info.minor) - minimum_version = (3, 7) + minimum_version = (3, 8) if py_version in deprecated_versions: params = deprecated_versions[py_version] @@ -36,5 +37,5 @@ def _warn_deprecated_python(): "bug fixes, and security updates please upgrade to Python {}.{} or " "later. For more information, see SUPPORT_POLICY.rst: " "https://github.com/aws/aws-dynamodb-encryption-python/blob/master/SUPPORT_POLICY.rst" - ).format(py_version[0], py_version[1], minimum_version[0], minimum_version[1], params["date"]) + ).format(py_version[0], py_version[1], params["date"], minimum_version[0], minimum_version[1]) warnings.warn(warning, DeprecationWarning) diff --git a/test/unit/test_compatability.py b/test/unit/test_compatability.py index 37241aa9..51510952 100644 --- a/test/unit/test_compatability.py +++ b/test/unit/test_compatability.py @@ -25,7 +25,7 @@ class TestWarnDeprecatedPython: def test_happy_version(self): with mock.patch.object(sys, "version_info") as v_info: v_info.major = 3 - v_info.minor = 7 + v_info.minor = 8 with pytest.warns(None) as record: _warn_deprecated_python() assert len(record) == 0 diff --git a/tox.ini b/tox.ini index 07a0aed6..9024f22b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{37,38,39,310,311,312}-{local,integ,ddb,examples}-fast, + py{38,39,310,311,312}-{local,integ,ddb,examples}-fast, nocmk, sourcebuildcheck, docs, bandit, doc8, readme, flake8{,-tests,-examples}, pylint{,-tests,-examples},