Skip to content

Commit

Permalink
v4.1.0: bump version and update release notes (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikonst authored Oct 17, 2019
1 parent bf58294 commit 3076a57
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
Release Notes
=============

v4.1.0
------

:date: 2019-10-17

This is a backwards compatible, minor release.

* In the Model's Meta, you may now provide an AWS session token, which is mostly useful for assumed roles (#700)::

sts_client = boto3.client("sts")
role_object = sts_client.assume_role(RoleArn=role_arn, RoleSessionName="role_name", DurationSeconds=BOTO3_CLIENT_DURATION)
role_credentials = role_object["Credentials"]

class MyModel(Model):
class Meta:
table_name = "table_name"
aws_access_key_id = role_credentials["AccessKeyId"]
aws_secret_access_key = role_credentials["SecretAccessKey"]
aws_session_token = role_credentials["SessionToken"]

hash = UnicodeAttribute(hash_key=True)
range = UnicodeAttribute(range_key=True)

* Fix warning about `inspect.getargspec` (#701)
* Fix provisioning GSIs when using pay-per-request billing (#690)
* Suppress Python 3 exception chaining when "re-raising" botocore errors as PynamoDB model exceptions (#705)

Contributors to this release:

* @asottile
* @julienduchesne

v4.0.0
--------

Expand Down
2 changes: 1 addition & 1 deletion pynamodb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"""
__author__ = 'Jharrod LaFon'
__license__ = 'MIT'
__version__ = '4.0.0'
__version__ = '4.1.0'
2 changes: 1 addition & 1 deletion tests/test_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ def test_raw_map_iter(self):
}
attr = MapAttribute(**raw)

assert list(iter(raw)) == list(iter(attr))
assert sorted(iter(raw)) == sorted(iter(attr))

def test_raw_map_json_serialize(self):
raw = {
Expand Down

0 comments on commit 3076a57

Please sign in to comment.