From d6ec614ca64573f102759d79e52e5cdc270d6b5d Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Wed, 16 Jan 2013 13:36:21 -0500 Subject: [PATCH] Document more specific dependency for humbug API on python-requests (imported from commit fbdc092029bbafea716e27fbb99fec58a6f24392) --- humbug/README | 2 +- humbug/__init__.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/humbug/README b/humbug/README index 63de042..33928f9 100644 --- a/humbug/README +++ b/humbug/README @@ -3,7 +3,7 @@ The Humbug API Python bindings require the following Python libraries: * simplejson -* requests (version >= 0.12) +* requests (version >= 0.12 and << 1.0.0) #### Using the API diff --git a/humbug/__init__.py b/humbug/__init__.py index 4e5693f..6ba4f20 100644 --- a/humbug/__init__.py +++ b/humbug/__init__.py @@ -34,7 +34,9 @@ from ConfigParser import SafeConfigParser # Check that we have a recent enough version # Older versions don't provide the 'json' attribute on responses. -assert(requests.__version__ > '0.12') +assert(requests.__version__ > '0.12.1') +# And versions in the 1.x series aren't backwards compatible +assert(requests.__version__ < '1.0.0') API_VERSTRING = "/api/v1/" def generate_option_group(parser):