Skip to content

Commit

Permalink
chore: Drop py36 from changelog (#356)
Browse files Browse the repository at this point in the history
* chore: Drop py36 from changelog

* fix: tox dependency < 4.0

Co-authored-by: Shubham Chaturvedi <scchatur@amazon.com>
  • Loading branch information
ShubhamChaturvedi7 and Shubham Chaturvedi authored Jan 23, 2023
1 parent 5fc460e commit 7ed9eb5
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 17 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
Changelog
*********

4.2.0 -- 2023-01-19
===================

Deprecation
-----------
The AWS Encryption SDK CLI no longer supports Python 3.6
as of major version 4.2.x; only Python 3.7+ is supported.

Maintenance
-----------
* Warn on Deprecated Python 3.6 usage


4.1.0 -- 2021-10-11
===================

Expand Down
2 changes: 1 addition & 1 deletion codebuild/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ phases:
python: latest
build:
commands:
- pip install tox
- pip install "tox < 4.0"
- tox
2 changes: 1 addition & 1 deletion codebuild/py310/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ phases:
commands:
- pyenv install 3.10.0
- pyenv local 3.10.0
- pip install tox tox-pyenv
- pip install "tox < 4.0"
- tox
2 changes: 1 addition & 1 deletion codebuild/py310/integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ phases:
commands:
- pyenv install 3.10.0
- pyenv local 3.10.0
- pip install tox tox-pyenv
- pip install "tox < 4.0"
- tox
2 changes: 1 addition & 1 deletion codebuild/py37/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ phases:
# The choice of versions should be reviewed.
- pyenv install 3.7.12
- pyenv local 3.7.12
- pip install tox tox-pyenv
- pip install "tox < 4.0"
- tox
2 changes: 1 addition & 1 deletion codebuild/py37/integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ phases:
# The choice of versions should be reviewed.
- pyenv install 3.7.12
- pyenv local 3.7.12
- pip install tox tox-pyenv
- pip install "tox < 4.0"
- tox
2 changes: 1 addition & 1 deletion codebuild/py38/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ phases:
commands:
- pyenv install 3.8.12
- pyenv local 3.8.12
- pip install tox tox-pyenv
- pip install "tox < 4.0"
- tox
2 changes: 1 addition & 1 deletion codebuild/py38/integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ phases:
commands:
- pyenv install 3.8.12
- pyenv local 3.8.12
- pip install tox tox-pyenv
- pip install "tox < 4.0"
- tox
2 changes: 1 addition & 1 deletion codebuild/py39/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ phases:
commands:
- pyenv install 3.9.7
- pyenv local 3.9.7
- pip install tox tox-pyenv
- pip install "tox < 4.0"
- tox
2 changes: 1 addition & 1 deletion codebuild/py39/integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ phases:
commands:
- pyenv install 3.9.7
- pyenv local 3.9.7
- pip install tox tox-pyenv
- pip install "tox < 4.0"
- tox
2 changes: 1 addition & 1 deletion codebuild/release/prod-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
phases:
install:
commands:
- pip install tox
- pip install "tox < 4.0"
- pip install --upgrade pip
runtime-versions:
python: latest
Expand Down
2 changes: 1 addition & 1 deletion codebuild/release/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
phases:
install:
commands:
- pip install tox
- pip install "tox < 4.0"
- pip install --upgrade pip
runtime-versions:
python: latest
Expand Down
2 changes: 1 addition & 1 deletion codebuild/release/validate-api-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
phases:
install:
commands:
- pip install tox
- pip install "tox < 4.0"
runtime-versions:
python: latest
pre_build:
Expand Down
2 changes: 1 addition & 1 deletion codebuild/release/validate-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
phases:
install:
commands:
- pip install tox
- pip install "tox < 4.0"
runtime-versions:
python: latest
pre_build:
Expand Down
5 changes: 3 additions & 2 deletions src/aws_encryption_sdk_cli/compatability.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ def _warn_deprecated_python():
(2, 7): {"date": DEPRECATION_DATE_MAP["3.x"]},
(3, 4): {"date": DEPRECATION_DATE_MAP["3.x"]},
(3, 5): {"date": "2021-11-10"},
(3, 6): {"date": "2023-01-19"},
}
py_version = (sys.version_info.major, sys.version_info.minor)
minimum_version = (3, 6)
minimum_version = (3, 7)

if py_version in deprecated_versions:
params = deprecated_versions[py_version]
Expand All @@ -35,5 +36,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-encryption-sdk-cli/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)
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__ = "4.1.0" # type: str
__version__ = "4.2.0" # type: str

#: Suffix added to output files if specific output filename is not specified.
OUTPUT_SUFFIX = {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_compatability.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_happy_version(self):
"""Asserts no warning for safe Python version."""
with mock.patch.object(sys, "version_info") as v_info:
v_info.major = 3
v_info.minor = 6
v_info.minor = 7
with pytest.warns(None) as record:
_warn_deprecated_python()
assert len(record) == 0
Expand Down

0 comments on commit 7ed9eb5

Please sign in to comment.