Skip to content

Commit

Permalink
Merge pull request #10 from matthewhanson/develop
Browse files Browse the repository at this point in the history
publish 0.2.3
  • Loading branch information
matthewhanson authored May 6, 2020
2 parents 277aa6c + 03f69ff commit d829d6c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [v0.2.3] - 2020-05-06

### Fixed
- Syntax error with s3().upload_json

## [v0.2.2] - 2020-05-05

### Added
Expand Down Expand Up @@ -67,6 +72,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
Initial Release

[Unreleased]: https://github.com/matthewhanson/boto3-utils/compare/master...develop
[v0.2.3]: https://github.com/matthewhanson/boto3-utils/compare/0.2.3...0.2.3
[v0.2.2]: https://github.com/matthewhanson/boto3-utils/compare/0.2.1...0.2.2
[v0.2.1]: https://github.com/matthewhanson/boto3-utils/compare/0.2.0...0.2.1
[v0.2.0]: https://github.com/matthewhanson/boto3-utils/compare/0.1.3...0.2.0
[v0.1.3]: https://github.com/matthewhanson/boto3-utils/compare/0.1.2...0.1.3
Expand Down
4 changes: 2 additions & 2 deletions boto3utils/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ def upload(self, filename, url, public=False, extra={}, http_url=False):
else:
return url_out

def upload_json(self, data, url, **kwargs):
def upload_json(self, data, url, extra={}, **kwargs):
""" Upload dictionary as JSON to URL """
tmpdir = mkdtemp()
filename = op.join(tmpdir, 'catalog.json')
_extra = {
'ContentType': 'application/json'
}
_extra.update(kwargs.pop('extra', {}))
_extra.update(extra)
with open(filename, 'w') as f:
f.write(json.dumps(data))
try:
Expand Down
2 changes: 1 addition & 1 deletion boto3utils/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2.2'
__version__ = '0.2.3'

0 comments on commit d829d6c

Please sign in to comment.