diff --git a/MANIFEST b/MANIFEST index 9dc9d08..af047f7 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,5 +1,5 @@ # file GENERATED by distutils, do NOT edit setup.cfg setup.py -spektrixpython\__init__.py -spektrixpython\spektrixpython.py +spektrixpython/__init__.py +spektrixpython/spektrixpython.py diff --git a/setup.py b/setup.py index e6b3d25..1e87505 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,12 @@ name = 'spektrixpython', packages = ['spektrixpython'], install_requires = ['requests'], - version = '0.3.0', + version = '0.4.0', description = 'A python module for interacting with Spektrix API v3.', author = 'Hugh Topping', author_email = 'hugh@hugh.io', url = 'https://github.com/hughtopping/spektrixpython', - download_url = 'https://github.com/hughtopping/spektrixpython/tarball/0.3.0', + download_url = 'https://github.com/hughtopping/spektrixpython/tarball/0.4.0', keywords = ['spektrix','api','v3'], license='MIT', classifiers = [] diff --git a/spektrixpython/spektrixpython.py b/spektrixpython/spektrixpython.py index da1b3d3..fbb6dde 100644 --- a/spektrixpython/spektrixpython.py +++ b/spektrixpython/spektrixpython.py @@ -55,7 +55,7 @@ def _generate_auth_headers(self, payload=None): if self.method != 'GET': body_string = dumps(payload).encode('utf-8') body_string = md5(body_string).digest() - body_string = b64encode(body_string) + body_string = str(b64encode(body_string), 'utf-8') string_to_sign = string_to_sign + '\n' + body_string