Skip to content

Commit

Permalink
Merge pull request #9 from nrccua/ARCH-500-make-sure-list_s3_objects-…
Browse files Browse the repository at this point in the history
…returns-all-objects

Fix bug with s3_list_objects truncating objects
  • Loading branch information
nrccua-timr authored Dec 14, 2020
2 parents 5d4e3ff + dcd86ce commit d71c5c6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ History
=======


v0.9.5 (2020-12-14)
-----------------------

* Fix bug with reseting list during paginate of list_objects.


v0.9.4 (2020-12-11)
-----------------------

Expand Down
1 change: 0 additions & 1 deletion aioradio/aws/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ async def list_s3_objects(bucket: str, s3_prefix: str, with_attributes: bool=Fal
arr = []
paginator = S3['client']['obj'].get_paginator('list_objects')
async for result in paginator.paginate(Bucket=bucket, Prefix=s3_prefix):
arr = []
for item in result.get('Contents', []):
if with_attributes:
arr.append(item)
Expand Down
10 changes: 5 additions & 5 deletions aioradio/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ flask==1.1.2
httpx==0.16.1
mandrill==1.0.59
moto==1.3.16
orjson==3.4.5
pre-commit==2.9.2
orjson==3.4.6
pre-commit==2.9.3
pylint==2.6.0
pyodbc==4.0.30
pysmb==1.2.5
pytest==6.1.2
pysmb==1.2.6
pytest==6.2.0
pytest-asyncio==0.14.0
pytest-cov==2.10.1
python-json-logger==2.0.1
twine==3.2.0
wheel==0.36.0
wheel==0.36.2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
long_description = fileobj.read()

setup(name='aioradio',
version='0.9.4',
version='0.9.5',
description='Generic asynchronous i/o python utilities for AWS services (SQS, S3, DynamoDB, Secrets Manager), Redis, MSSQL (pyodbc), JIRA and more',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit d71c5c6

Please sign in to comment.