Permalink
Browse files

Switched to setuptools, fixed headers bug thanks to @odeits

  • Loading branch information...
1 parent a237965 commit 9a76663a3d87b72b3d29ed7bc555fa15a31622de Paddy Foran committed Jul 20, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 iron_core.py
  2. +2 −2 setup.py
View
@@ -204,7 +204,7 @@ def post(self, url, body="", headers={}, retry=True):
retry -- Whether exponential backoff should be employed. Defaults
to True.
"""
- headers["Content-Length"] = len(body)
+ headers["Content-Length"] = str(len(body))
return self.request(url=url, method="POST", body=body, headers=headers,
retry=retry)
View
@@ -1,9 +1,9 @@
-from distutils.core import setup
+from setuptools import setup
setup(
name = "iron-core",
py_modules = ["iron_core"],
- requires=["iso8601"],
+ install_requires=["iso8601"],
version = "0.1.0",
description = "Universal classes and methods for Iron.io API wrappers to build on.",
author = "Iron.io",

0 comments on commit 9a76663

Please sign in to comment.