Tell setuptools about what version of urllib3 we're unbundling
for https://github.com/kennethreitz/requests/issues/2816
This commit is contained in:
parent
1d92ca7704
commit
f73b98e44a
27
python-requests-urllib3-at-1.10.4.patch
Normal file
27
python-requests-urllib3-at-1.10.4.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From 8851de5ac8dabd6431328ecbe614e5e78d994ccd Mon Sep 17 00:00:00 2001
|
||||
From: Ralph Bean <rbean@redhat.com>
|
||||
Date: Sat, 10 Oct 2015 14:39:19 -0400
|
||||
Subject: [PATCH] Pin urllib3 to 1.10.4.
|
||||
|
||||
---
|
||||
setup.py | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index f98f528..77a370c 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -26,7 +26,9 @@ packages = [
|
||||
'requests.packages.urllib3.packages.ssl_match_hostname',
|
||||
]
|
||||
|
||||
-requires = []
|
||||
+requires = [
|
||||
+ 'urllib3==1.10.4',
|
||||
+]
|
||||
|
||||
version = ''
|
||||
with open('requests/__init__.py', 'r') as fd:
|
||||
--
|
||||
2.4.3
|
||||
|
@ -4,9 +4,11 @@
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
||||
%endif
|
||||
|
||||
%global urllib3_unbundled_version 1.10.4
|
||||
|
||||
Name: python-requests
|
||||
Version: 2.7.0
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: HTTP library, written in Python, for human beings
|
||||
|
||||
License: ASL 2.0
|
||||
@ -23,6 +25,9 @@ Patch0: python-requests-system-cert-bundle.patch
|
||||
# - https://github.com/kennethreitz/requests/pull/1812
|
||||
Patch1: python-requests-remove-nested-bundling-dep.patch
|
||||
|
||||
# Tell setuptools about what version of urllib3 we're unbundling
|
||||
# - https://github.com/kennethreitz/requests/issues/2816
|
||||
Patch2: python-requests-urllib3-at-%{urllib3_unbundled_version}.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
@ -35,11 +40,11 @@ Provides: python2-requests
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-chardet
|
||||
BuildRequires: python-urllib3 == 1.10.4
|
||||
BuildRequires: python-urllib3 == %{urllib3_unbundled_version}
|
||||
|
||||
Requires: ca-certificates
|
||||
Requires: python-chardet
|
||||
Requires: python-urllib3 == 1.10.4
|
||||
Requires: python-urllib3 == %{urllib3_unbundled_version}
|
||||
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 6
|
||||
BuildRequires: python-ordereddict
|
||||
@ -60,9 +65,9 @@ Summary: HTTP library, written in Python, for human beings
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-chardet
|
||||
BuildRequires: python3-urllib3 == 1.10.4
|
||||
BuildRequires: python3-urllib3 == %{urllib3_unbundled_version}
|
||||
Requires: python3-chardet
|
||||
Requires: python3-urllib3 == 1.10.4
|
||||
Requires: python3-urllib3 == %{urllib3_unbundled_version}
|
||||
|
||||
%description -n python3-requests
|
||||
Most existing Python modules for sending HTTP requests are extremely verbose and
|
||||
@ -76,6 +81,7 @@ designed to make HTTP requests easy for developers.
|
||||
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
# Unbundle the certificate bundle from mozilla.
|
||||
rm -rf requests/cacert.pem
|
||||
@ -157,6 +163,10 @@ popd
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sat Oct 10 2015 Ralph Bean <rbean@redhat.com> - 2.7.0-7
|
||||
- Tell setuptools about what version of urllib3 we're unbundling
|
||||
for https://github.com/kennethreitz/requests/issues/2816
|
||||
|
||||
* Thu Sep 17 2015 Ralph Bean <rbean@redhat.com> - 2.7.0-6
|
||||
- Replace the provides macro with a plain provides field for now until we can
|
||||
re-organize this package into two different subpackages.
|
||||
|
Loading…
Reference in New Issue
Block a user