Allow requests 0.8 and greater

Bump up version requirements for requests to standardize
on version >= 0.8 so it doesnt create conflict with other
openstack projects.

Change-Id: I1ed9b3bd6bdbbbb451298a3c397e6e7a06c0cabd
Signed-off-by: Chuck Short <chuck.short@canonical.com>
This commit is contained in:
Chuck Short 2013-02-05 09:45:46 -06:00
parent c5cd7e4862
commit 8d43cd9c01
3 changed files with 3 additions and 8 deletions
cinderclient
tests
tools

@ -37,10 +37,6 @@ class HTTPClient(object):
USER_AGENT = 'python-cinderclient'
requests_config = {
'danger_mode': False,
}
def __init__(self, user, password, projectid, auth_url, insecure=False,
timeout=None, tenant_id=None, proxy_tenant_id=None,
proxy_token=None, region_name=None,
@ -79,7 +75,8 @@ class HTTPClient(object):
ch = logging.StreamHandler()
self._logger.setLevel(logging.DEBUG)
self._logger.addHandler(ch)
self.requests_config['verbose'] = sys.stderr
if hasattr(requests, logging):
requests.logging.getLogger(requests.__name__).addHandler(ch)
def http_log_req(self, args, kwargs):
if not self.http_log_debug:
@ -123,7 +120,6 @@ class HTTPClient(object):
method,
url,
verify=self.verify_cert,
config=self.requests_config,
**kwargs)
self.http_log_resp(resp)

@ -7,7 +7,6 @@ import testtools
class TestCase(testtools.TestCase):
TEST_REQUEST_BASE = {
'config': {'danger_mode': False},
'verify': True,
}

@ -1,4 +1,4 @@
argparse
prettytable
requests<1.0
requests>=0.8
simplejson