diff --git a/0001-Depend-on-requests-2.0.1.patch b/0001-Depend-on-requests-2.0.1.patch new file mode 100644 index 0000000..206818c --- /dev/null +++ b/0001-Depend-on-requests-2.0.1.patch @@ -0,0 +1,27 @@ +From 3a6fb4eafa2d9ea42bd3806a3eba51b07cb9c70c Mon Sep 17 00:00:00 2001 +From: Sascha Peilicke +Date: Thu, 30 Jan 2014 14:57:04 +0100 +Subject: [PATCH] Depend on requests>=2.0.1 + +requests.packages.urllib3.connection was added with 2.0.1 and is +imported by wsgi_intercept/requests_intercept.py. +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 0d62f78..f5ca681 100644 +--- a/setup.py ++++ b/setup.py +@@ -32,7 +32,7 @@ META = { + 'testing': [ + 'pytest>=2.4', + 'httplib2', +- 'requests' ++ 'requests>=2.0.1' + ], + }, + } +-- +1.8.5.2 + diff --git a/python-wsgi_intercept.changes b/python-wsgi_intercept.changes index 5927d9c..b12b68c 100644 --- a/python-wsgi_intercept.changes +++ b/python-wsgi_intercept.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 30 14:01:10 UTC 2014 - speilicke@suse.com + +- Added 0001-Depend-on-requests-2.0.1.patch: Require requests>=2.0.1. + Really a requirement + ------------------------------------------------------------------- Fri Jan 17 15:47:55 UTC 2014 - speilicke@suse.com diff --git a/python-wsgi_intercept.spec b/python-wsgi_intercept.spec index 3fb809d..4328f9f 100644 --- a/python-wsgi_intercept.spec +++ b/python-wsgi_intercept.spec @@ -30,8 +30,8 @@ BuildRequires: python-setuptools BuildRequires: python-httplib2 BuildRequires: python-nose BuildRequires: python-pytest >= 2.4 -BuildRequires: python-requests -Recommends: python-requests +BuildRequires: python-requests >= 2.0.1 +Recommends: python-requests >= 2.0.1 BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}