14
0

Accepting request 340326 from devel:languages:python

- update to 2.8.1:
  - Update certificate bundle to match ``certifi`` 2015.9.6.2's weak certificate
    bundle.
  - Fix a bug in 2.8.0 where requests would raise ``ConnectTimeout`` instead of
    ``ConnectionError``
  - When using the PreparedRequest flow, requests will now correctly respect the
    ``json`` parameter. Broken in 2.8.0.
  - When using the PreparedRequest flow, requests will now correctly handle a
    Unicode-string method name on Python 2. Broken in 2.8.0.

- remove requests-do-not-use-bundle.patch (bsc#947357)

- fix requires

OBS-URL: https://build.opensuse.org/request/show/340326
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=29
This commit is contained in:
2015-10-26 11:48:44 +00:00
committed by Git OBS Bridge
parent 04b18d7493
commit 22c68f4f0d
5 changed files with 31 additions and 122 deletions

View File

@@ -17,7 +17,7 @@
Name: python-requests
Version: 2.8.0
Version: 2.8.1
Release: 0
Summary: Awesome Python HTTP Library That's Actually Usable
License: Apache-2.0
@@ -26,16 +26,15 @@ Url: http://python-requests.org
Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz
# PATCH-FIX-OPENSUSE no-default-cacert.patch -- completely ignore the internal CA bundle
Patch0: no-default-cacert.patch
# PATCH-FIX-OPENSUSE requests-do-not-use-bundle.patch --use system libraries instead of bundled ones
Patch1: requests-do-not-use-bundle.patch
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python-py
BuildRequires: python-setuptools
Requires: python
Requires: python-chardet
Requires: python-py
Requires: python-urllib3
# really needed?
#Requires: python-ndg-httpsclient
Requires: python-pyOpenSSL
Requires: python-pyasn1
%if 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -71,7 +70,6 @@ Features:
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' ./requests/certs.py
%patch0 -p1
%patch1 -p1
rm ./requests/cacert.pem
%build
@@ -80,7 +78,6 @@ python setup.py build
%install
python setup.py install \
--root=%{buildroot} --prefix=%{_prefix}
rm -rf %{buildroot}%{python_sitelib}/requests/packages/
%check
python setup.py test