Skip to content

Commit

Permalink
feat: remove Python3.7 support (#648)
Browse files Browse the repository at this point in the history
* chore: remove py3.7 testing

* docs: stop advertising py3.7 support

* chore: warn about Py3.7 deprecation

* fix: date in for py37 in compatability

* Addresses PR Comments

---------

Co-authored-by: Lucas McDonald <[email protected]>
Co-authored-by: Shubham Chaturvedi <[email protected]>
  • Loading branch information
3 people authored May 15, 2024
1 parent 124e55d commit 2dbd62b
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 90 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
- windows-latest
- macos-12
python:
- 3.7
- 3.8
- 3.9
- "3.10"
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Getting Started
Required Prerequisites
======================

* Python 3.7+
* Python 3.8+
* cryptography >= 3.4.6
* boto3 >= 1.10.0
* attrs
Expand Down
13 changes: 0 additions & 13 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@ version: 0.2
batch:
fast-fail: false
build-list:
- identifier: py37_integ
buildspec: codebuild/py37/integ.yml
env:
image: aws/codebuild/standard:5.0
- identifier: py37_examples
buildspec: codebuild/py37/examples.yml
env:
image: aws/codebuild/standard:5.0
- identifier: py37_awses_local
buildspec: codebuild/py37/awses_local.yml
env:
image: aws/codebuild/standard:5.0

- identifier: py38_integ
buildspec: codebuild/py38/integ.yml
env:
Expand Down
25 changes: 0 additions & 25 deletions codebuild/py37/awses_local.yml

This file was deleted.

22 changes: 0 additions & 22 deletions codebuild/py37/examples.yml

This file was deleted.

22 changes: 0 additions & 22 deletions codebuild/py37/integ.yml

This file was deleted.

1 change: 0 additions & 1 deletion decrypt_oracle/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def get_requirements():
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,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",
Expand Down
3 changes: 2 additions & 1 deletion src/aws_encryption_sdk/compatability.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ def _warn_deprecated_python():
(2, 7): {"date": DEPRECATION_DATE_MAP["2.x"]},
(3, 4): {"date": DEPRECATION_DATE_MAP["2.x"]},
(3, 5): {"date": "2021-11-10"},
(3, 7): {"date": "2024-03-04"},
}
py_version = (sys.version_info.major, sys.version_info.minor)
minimum_version = (3, 6)
minimum_version = (3, 8)

if py_version in deprecated_versions:
params = deprecated_versions[py_version]
Expand Down
2 changes: 1 addition & 1 deletion test_vector_handlers/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Getting Started
Required Prerequisites
======================

* Python 3.7+
* Python 3.8+
* aws-encryption-sdk

Use
Expand Down
1 change: 0 additions & 1 deletion test_vector_handlers/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ 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 :: Implementation :: CPython",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{37,38,39,310,311,312}-{local,integ,accept,examples}, nocmk,
py{38,39,310,311,312}-{local,integ,accept,examples}, nocmk,
bandit, doc8, readme, docs,
{flake8,pylint}{,-tests,-examples},
isort-check, black-check,
Expand Down

0 comments on commit 2dbd62b

Please sign in to comment.