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):