Skip to content

Commit e8e0fcf

Browse files
committed
Merge branch 'release-0.0.8'
2 parents d7cddec + e593362 commit e8e0fcf

16 files changed

+239
-33
lines changed

CHANGELOG.rst

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,34 @@
11
Changelog
22
=========
33

4+
0.0.8 - 2015-02-10
5+
------------------
6+
7+
* bugfix:Resources: Fix Amazon S3 resource identifier order.
8+
(`issue 62 <https://github.com/boto/boto3/pull/62>`__)
9+
* bugfix:Resources: Fix collection resource hydration path.
10+
(`issue 61 <https://github.com/boto/boto3/pull/61>`__)
11+
* bugfix:Resources: Re-enable service-level access to all resources,
12+
allowing e.g. ``obj = s3.Object('bucket', 'key')``.
13+
(`issue 60 <https://github.com/boto/boto3/pull/60>`__)
14+
* feature:Botocore: Update to Botocore 0.87.0
15+
16+
* Add support for Amazon DynamoDB secondary index scanning.
17+
* Upgrade to ``requests`` 2.5.1.
18+
* Add support for anonymous (unsigned) clients.
19+
(`botocore issue 448 <https://github.com/boto/botocore/pull/448>`__)
20+
421
0.0.7 - 2015-02-05
522
------------------
623

724
* feature:Resources: Enable support for Amazon Glacier.
825
* feature:Resources: Support plural references and nested JMESPath
926
queries for data members when building parameters and identifiers.
1027
(`issue 52 <https://github.com/boto/boto3/pull/52>`__)
11-
* feature:Resources: Update to the latest resource JSON format.
28+
* feature:Resources: Update to the latest resource JSON format. This is
29+
a **backward-incompatible** change as not all resources are exposed
30+
at the service level anymore. For example, ``s3.Object('bucket', 'key')``
31+
is now ``s3.Bucket('bucket').Object('key')``.
1232
(`issue 51 <https://github.com/boto/boto3/pull/51>`__)
1333
* feature:Resources: Make ``resource.meta`` a proper object. This allows
1434
you to do things like ``resource.meta.client``. This is a **backward-

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
Copyright 2013-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22

33
Licensed under the Apache License, Version 2.0 (the "License"). You
44
may not use this file except in compliance with the License. A copy of

README.rst

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,30 @@ pull requests on this repository. Thanks!
4040

4141
Quick Start
4242
-----------
43-
First, install the library and set a default region::
43+
First, install the library and set a default region:
44+
45+
.. code-block:: sh
4446
4547
$ pip install boto3
4648
47-
Next, set up credentials (in e.g. ``~/.aws/credentials``)::
49+
Next, set up credentials (in e.g. ``~/.aws/credentials``):
50+
51+
.. code-block:: ini
4852
4953
[default]
5054
aws_access_key_id = YOUR_KEY
5155
aws_secret_access_key = YOUR_SECRET
5256
53-
Then, set up a default region (in e.g. ``~/.aws/config``)::
57+
Then, set up a default region (in e.g. ``~/.aws/config``):
58+
59+
.. code-block:: ini
5460
5561
[default]
5662
region=us-east-1
5763
58-
Then, from a Python interpreter::
64+
Then, from a Python interpreter:
65+
66+
.. code-block:: python
5967
6068
>>> import boto3
6169
>>> s3 = boto3.resource('s3')
@@ -69,7 +77,9 @@ Getting Started
6977
~~~~~~~~~~~~~~~
7078
Assuming that you have Python and ``virtualenv`` installed, set up your
7179
environment and install the required dependencies like this instead of
72-
the ``pip install boto3`` defined above::
80+
the ``pip install boto3`` defined above:
81+
82+
.. code-block:: sh
7383
7484
$ git clone https://github.com/boto/boto3.git
7585
$ cd boto3
@@ -85,20 +95,26 @@ You can run tests in all supported Python versions using ``tox``. Be default,
8595
it will run all of the unit tests, but you can also specify your own
8696
``nosetests`` options. Note that this requires that you have all supported
8797
versions of Python installed, otherwise you must pass ``-e`` or run the
88-
``nosetests`` command directly::
98+
``nosetests`` command directly:
99+
100+
.. code-block:: sh
89101
90102
$ tox
91103
$ tox tests/unit/test_session.py
92104
$ tox -e py26,py33 tests/integration
93105
94-
You can also run individual tests with your default Python version::
106+
You can also run individual tests with your default Python version:
107+
108+
.. code-block:: sh
95109
96110
$ nosetests tests/unit
97111
98112
Generating Documentation
99113
~~~~~~~~~~~~~~~~~~~~~~~~
100114
Sphinx is used for documentation. You can generate HTML locally with the
101-
following::
115+
following:
116+
117+
.. code-block:: sh
102118
103119
$ pip install sphinx sphinx_rtd_theme
104120
$ cd docs

boto3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
__author__ = 'Amazon Web Services'
20-
__version__ = '0.0.7'
20+
__version__ = '0.0.8'
2121

2222

2323
# The default Boto3 session; autoloaded when needed.

boto3/data/resources/cloudformation-2010-05-15.resources.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"type": "StackResource",
9595
"identifiers": [
9696
{ "target": "StackName", "source": "identifier", "name": "Name" },
97-
{ "target": "StackName", "source": "input" }
97+
{ "target": "LogicalId", "source": "input" }
9898
]
9999
}
100100
}
@@ -135,7 +135,7 @@
135135
},
136136
"StackResource": {
137137
"identifiers": [
138-
{ "name": "LogicalId" },
138+
{ "name": "LogicalId", "memberName": "LogicalResourceId" },
139139
{ "name": "StackName" }
140140
],
141141
"shape": "StackResourceDetail",
@@ -162,7 +162,7 @@
162162
},
163163
"StackResourceSummary": {
164164
"identifiers": [
165-
{ "name": "LogicalId" },
165+
{ "name": "LogicalId", "memberName": "LogicalResourceId" },
166166
{ "name": "StackName" }
167167
],
168168
"shape": "StackResourceSummary",

boto3/data/resources/glacier-2012-06-01.resources.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@
110110
]
111111
}
112112
},
113-
"InitiateArchiveRetreival": {
113+
"InitiateArchiveRetrieval": {
114114
"request": {
115115
"operation": "InitiateJob",
116116
"params": [
117-
{ "target": "vaultName", "source": "identifier", "name": "Name" },
117+
{ "target": "vaultName", "source": "identifier", "name": "VaultName" },
118118
{ "target": "accountId", "source": "identifier", "name": "AccountId" },
119119
{ "target": "jobParameters.Type", "source": "string", "value": "archive-retrieval" },
120120
{ "target": "jobParameters.ArchiveId", "source": "identifier", "name": "Id" }
@@ -125,7 +125,7 @@
125125
"identifiers": [
126126
{ "target": "Id", "source": "response", "path": "jobId" },
127127
{ "target": "AccountId", "source": "identifier", "name": "AccountId" },
128-
{ "target": "VaultName", "source": "identifier", "name": "Name" }
128+
{ "target": "VaultName", "source": "identifier", "name": "VaultName" }
129129
]
130130
}
131131
}

boto3/data/resources/iam-2010-05-08.resources.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376
"request": {
377377
"operation": "UpdateAssumeRolePolicy",
378378
"params": [
379-
{ "target": "RoleName", "source": "identifier", "name": "Name" }
379+
{ "target": "RoleName", "source": "identifier", "name": "RoleName" }
380380
]
381381
}
382382
}

boto3/data/resources/s3-2006-03-01.resources.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,8 @@
698698
"type": "MultipartUploadPart",
699699
"identifiers": [
700700
{ "target": "BucketName", "source": "identifier", "name": "BucketName" },
701-
{ "target": "MultipartUploadId", "source": "identifier", "name": "Id" },
702701
{ "target": "ObjectKey", "source": "identifier", "name": "ObjectKey" },
702+
{ "target": "MultipartUploadId", "source": "identifier", "name": "Id" },
703703
{ "target": "PartNumber", "source": "input" }
704704
]
705705
}
@@ -770,8 +770,8 @@
770770
"type": "MultipartUpload",
771771
"identifiers": [
772772
{ "target": "BucketName", "source": "identifier", "name": "BucketName" },
773-
{ "target": "Id", "source": "identifier", "name": "MultipartUploadId" },
774-
{ "target": "ObjectKey", "source": "identifier", "name": "ObjectKey" }
773+
{ "target": "ObjectKey", "source": "identifier", "name": "ObjectKey" },
774+
{ "target": "Id", "source": "identifier", "name": "MultipartUploadId" }
775775
]
776776
}
777777
}

boto3/data/resources/sns-2010-03-31.resources.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
"resource": {
111111
"type": "PlatformEndpoint",
112112
"identifiers": [
113-
{ "target": "PlatformApplicationArn", "source": "identifier", "name": "Arn" },
114113
{ "target": "Arn", "source": "response", "path": "EndpointArn" }
115114
]
116115
}

boto3/resources/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def __init__(self, model, parent, factory, resource_defs,
312312
operation_name = self._model.request.operation
313313
self._parent = parent
314314

315-
search_path = model.path
315+
search_path = model.resource.path
316316
self._handler = ResourceHandler(search_path, factory, resource_defs,
317317
service_model, model.resource, operation_name)
318318

0 commit comments

Comments
 (0)