Skip to content

Commit

Permalink
chore: changelog for 1.10.0 release (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
josecorella authored Jun 20, 2022
1 parent aad686e commit 4b8794e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Changelog
*********

1.10.0 -- 2022-06-20
====================

Maintenance
-----------
* Pin ``cryptography`` to last version that supports Python2

1.9.0 -- 2021-05-27
===================

Expand Down
2 changes: 1 addition & 1 deletion src/aws_encryption_sdk/identifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# We only actually need these imports when running the mypy checks
pass

__version__ = "1.9.0"
__version__ = "1.10.0"
USER_AGENT_SUFFIX = "AwsEncryptionSdkPython/{}".format(__version__)


Expand Down
5 changes: 3 additions & 2 deletions test/functional/test_f_aws_encryption_sdk_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import io
import logging
from distutils.version import StrictVersion

import attr
import botocore.client
Expand Down Expand Up @@ -823,7 +824,7 @@ def _assert_deprecated_but_not_yet_removed(logcap, instance, attribute_name, err

def _assert_decrypted_and_removed(instance, attribute_name, removed_in):
assert not hasattr(instance, attribute_name)
assert aws_encryption_sdk.__version__ >= removed_in
assert StrictVersion(aws_encryption_sdk.__version__) >= StrictVersion(removed_in)


@pytest.mark.parametrize("attribute, no_later_than", (("body_start", "1.4.0"), ("body_end", "1.4.0")))
Expand All @@ -836,7 +837,7 @@ def test_decryptor_deprecated_attributes(caplog, attribute, no_later_than):
decrypted = decryptor.read()

assert decrypted == plaintext
if aws_encryption_sdk.__version__ < no_later_than:
if StrictVersion(aws_encryption_sdk.__version__) < StrictVersion(no_later_than):
_assert_deprecated_but_not_yet_removed(
logcap=caplog,
instance=decryptor,
Expand Down

0 comments on commit 4b8794e

Please sign in to comment.