Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Update kafka-python dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Grønlien Pejcoch committed Apr 17, 2018
1 parent 680ee78 commit e034daf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions productstatus/utils.py
Expand Up @@ -52,6 +52,8 @@ def _serialize_datetime(self, value):
"""
Return a time zone-aware ISO 8601 string.
"""
if value.tzinfo is None:
raise ValueError
utc_time = value.astimezone(tz=dateutil.tz.tzutc())
return utc_time.isoformat().replace(' ', 'T').replace('+00:00', 'Z')

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -6,13 +6,13 @@
'author': 'MET Norway',
'url': 'https://github.com/metno/python-productstatus-client',
'download_url': 'https://github.com/metno/python-productstatus-client',
'version': '6.4.0',
'version': '6.5.0',
'install_requires': [
'nose==1.3.7',
'requests==2.9.1',
'python-dateutil==2.5.0',
'httmock==1.2.4',
'kafka-python==1.3.1',
'kafka-python==1.4.2',
'mock==2.0.0',
],
'packages': find_packages(),
Expand Down

0 comments on commit e034daf

Please sign in to comment.