Document more specific dependency for humbug API on python-requests

(imported from commit fbdc092029bbafea716e27fbb99fec58a6f24392)
This commit is contained in:
Luke Faraone 2013-01-16 13:36:21 -05:00
parent f2f4a2f8bd
commit d6ec614ca6
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,7 @@
The Humbug API Python bindings require the following Python libraries: The Humbug API Python bindings require the following Python libraries:
* simplejson * simplejson
* requests (version >= 0.12) * requests (version >= 0.12 and << 1.0.0)
#### Using the API #### Using the API

View file

@ -34,7 +34,9 @@ from ConfigParser import SafeConfigParser
# Check that we have a recent enough version # Check that we have a recent enough version
# Older versions don't provide the 'json' attribute on responses. # 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/" API_VERSTRING = "/api/v1/"
def generate_option_group(parser): def generate_option_group(parser):