Skip to content

Commit

Permalink
chore: Mark 1.x as End-of-Support (#480)
Browse files Browse the repository at this point in the history
* chore: Mark 1.x as End-of-Support

* fix: pin tox and flake8 dependencies

Co-authored-by: Shubham Chaturvedi <scchatur@amazon.com>
  • Loading branch information
Shubham Chaturvedi and Shubham Chaturvedi authored Dec 22, 2022
1 parent b55e8ed commit 5ce26f3
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 7 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
*********

1.3.1 -- 2022-12-19
===================

Deprecation Announcement
------------------------
The AWS DynamoDB Encryption Client for Python Major Version 1 is End of Support.
It will no longer receive security updates or bug fixes.
Consider updating to the latest version of the AWS DynamoDB Encryption Client for Python.

Maintenance
------------------------
* Emit Deprecation Warning on library initialization

1.3.0 -- 2021-02-04
===================
Adds the CachingMostRecentProvider and deprecates MostRecentProvider.
Expand Down
2 changes: 1 addition & 1 deletion ci-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tox
tox < 4.0
2 changes: 1 addition & 1 deletion codebuild/python3.7.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.9
- pyenv local 3.7.9
- pip install tox tox-pyenv
- pip install "tox < 4.0"
- tox
2 changes: 1 addition & 1 deletion codebuild/python3.8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ phases:
commands:
- pyenv install 3.8.6
- pyenv local 3.8.6
- pip install tox tox-pyenv
- pip install "tox < 4.0"
- tox
9 changes: 9 additions & 0 deletions src/dynamodb_encryption_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
"""DynamoDB Encryption Client."""
import warnings

from dynamodb_encryption_sdk.encrypted.client import EncryptedClient
from dynamodb_encryption_sdk.encrypted.item import (
decrypt_dynamodb_item,
Expand All @@ -32,3 +34,10 @@
"EncryptedTable",
"__version__",
)

warnings.warn(
"This major version (1.x) of the AWS DynamoDB Encryption Client for Python has reached End-of-Support.\n"
+ "It will no longer receive security updates or bug fixes.\n"
+ "Consider updating to the latest version of the AWS DynamoDB Encryption Client.",
DeprecationWarning,
)
2 changes: 1 addition & 1 deletion src/dynamodb_encryption_sdk/identifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from enum import Enum

__all__ = ("LOGGER_NAME", "CryptoAction", "EncryptionKeyType", "KeyEncodingType")
__version__ = "1.3.0"
__version__ = "1.3.1"

LOGGER_NAME = "dynamodb_encryption_sdk"
USER_AGENT_SUFFIX = "DynamodbEncryptionSdkPython/{}".format(__version__)
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ commands =
[testenv:flake8]
basepython = python3
deps =
flake8
flake8-docstrings
flake8-isort
flake8==4.0.1
flake8-docstrings==1.6.0
flake8-isort==4.1.1
# https://github.com/PyCQA/pydocstyle/issues/375
pydocstyle<4.0.0
# https://github.com/JBKahn/flake8-print/pull/30
Expand Down

0 comments on commit 5ce26f3

Please sign in to comment.