- Update to 0.14.1:

* Python 3.3 Compatibility
  * Simply default accept-encoding
  * Bugfixes
- 0.14.0 (2012-09-02)
  * No more iter_content errors if already downloaded.
- 0.13.9 (2012-08-25)
  * Fix for OAuth + POSTs
  * Remove exception eating from dispatch_hook
  * General bugfixes
- 0.13.8 (2012-08-21)
  * Incredible Link header support :)
- 0.13.7 (2012-08-19)
  * Support for (key, value) lists everywhere.
  * Digest Authentication improvements.
  * Ensure proxy exclusions work properly.
  * Clearer UnicodeError exceptions.
  * Automatic casting of URLs to tsrings (fURL and such)
  * Bugfixes.
- 0.13.6 (2012-08-06)
  * Long awaited fix for hanging connections!
- 0.13.5 (2012-07-27)
  * Packaging fix
- 0.13.4 (2012-07-27)
  * GSSAPI/Kerberos authentication!
  * App Engine 2.7 Fixes!
  * Fix leaking connections (from urllib3 update)
  * OAuthlib path hack fix
  * OAuthlib URL parameters fix.
- 0.13.3 (2012-07-12)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=25
This commit is contained in:
James Oakley 2012-10-16 19:07:13 +00:00 committed by Git OBS Bridge
parent 5919c81afb
commit ec9d2022ef
5 changed files with 51 additions and 65 deletions

View File

@ -1,3 +1,50 @@
-------------------------------------------------------------------
Tue Oct 16 18:55:20 UTC 2012 - jfunk@funktronics.ca
- Update to 0.14.1:
* Python 3.3 Compatibility
* Simply default accept-encoding
* Bugfixes
- 0.14.0 (2012-09-02)
* No more iter_content errors if already downloaded.
- 0.13.9 (2012-08-25)
* Fix for OAuth + POSTs
* Remove exception eating from dispatch_hook
* General bugfixes
- 0.13.8 (2012-08-21)
* Incredible Link header support :)
- 0.13.7 (2012-08-19)
* Support for (key, value) lists everywhere.
* Digest Authentication improvements.
* Ensure proxy exclusions work properly.
* Clearer UnicodeError exceptions.
* Automatic casting of URLs to tsrings (fURL and such)
* Bugfixes.
- 0.13.6 (2012-08-06)
* Long awaited fix for hanging connections!
- 0.13.5 (2012-07-27)
* Packaging fix
- 0.13.4 (2012-07-27)
* GSSAPI/Kerberos authentication!
* App Engine 2.7 Fixes!
* Fix leaking connections (from urllib3 update)
* OAuthlib path hack fix
* OAuthlib URL parameters fix.
- 0.13.3 (2012-07-12)
* Use simplejson if available.
* Do not hide SSLErrors behind Timeouts.
* Fixed param handling with urls containing fragments.
* Significantly improved information in User Agent.
* client certificates are ignored when verify=False
- 0.13.2 (2012-06-28)
* Zero dependencies (once again)!
* New: Response.reason
* Sign querystring parameters in OAuth 1.0
* Client certificates no longer ignored when verify=False
* Add openSUSE certificate support
- Removed certificate patch since it's now upstream
- Removed dependencies that are no longer needed
------------------------------------------------------------------- -------------------------------------------------------------------
Wed May 30 09:11:50 UTC 2012 - saschpe@suse.de Wed May 30 09:11:50 UTC 2012 - saschpe@suse.de

View File

@ -17,25 +17,18 @@
Name: python-requests Name: python-requests
Version: 0.13.1 Version: 0.14.1
Release: 0 Release: 0
Url: http://python-requests.org Url: http://python-requests.org
Summary: Awesome Python HTTP Library That's Actually Usable Summary: Awesome Python HTTP Library That's Actually Usable
License: ISC License: ISC
Group: Development/Languages/Python Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz
# PATCH-FIX-UPSREAM requests-suse_cert_paths.patch [bnc#761501] -- Load directory-based cert store in /etc/ssl/certs. Depends on Python patched to allow it, fall back to /etc/ssl/ca-bundle.pem otherwise
Patch0: requests-suse_cert_paths.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python BuildRequires: python
BuildRequires: python-chardet
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-distribute BuildRequires: python-distribute
BuildRequires: python-oauthlib
Requires: python Requires: python
Requires: python-chardet
Requires: python-grequests
Requires: python-oauthlib
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 %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()")} %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else %else
@ -68,7 +61,6 @@ Features:
%prep %prep
%setup -q -n requests-%{version} %setup -q -n requests-%{version}
%patch0 -p1
%build %build
python setup.py build python setup.py build

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31f3ae96787fe74a78c7dd9626bf997fd4eabacc040b7b33fbd8632d2c2a97f6
size 68474

3
requests-0.14.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f563b907782b2c95dd2cbaf882a96133e567d46290a0e7aafa0c6f3efad19ba
size 523254

View File

@ -1,53 +0,0 @@
diff -ru a/requests/utils.py b/requests/utils.py
--- a/requests/utils.py 2012-05-30 01:54:25.000000000 +0200
+++ b/requests/utils.py 2012-05-30 11:16:23.939251965 +0200
@@ -13,6 +13,9 @@
import codecs
import os
import re
+import socket
+import ssl
+import _ssl
import zlib
from netrc import netrc, NetrcParseError
@@ -40,13 +43,26 @@
'/etc/ssl/certs/ca-certificates.crt',
# FreeBSD (provided by the ca_root_nss package):
'/usr/local/share/certs/ca-root-nss.crt',
+ # openSUSE (provided by the ca-certificates package), the 'certs' directory is the
+ # preferred way but may not be supported by the SSL module, thus it has 'ca-bundle.pem'
+ # as a fallback (which is generated from pem files in the 'certs' directory):
+ '/etc/ssl/certs',
+ '/etc/ssl/ca-bundle.pem',
]
def get_os_ca_bundle_path():
"""Try to pick an available CA certificate bundle provided by the OS."""
for path in POSSIBLE_CA_BUNDLE_PATHS:
if os.path.exists(path):
- return path
+ if os.path.isdir(path):
+ try:
+ # Current candidate is a directory, check if SSL module supports that
+ _ssl.sslwrap(socket.socket()._sock, False, None, None, ssl.CERT_REQUIRED, ssl.PROTOCOL_SSLv23, path, None)
+ return path
+ except:
+ pass # No support, let's check the next candidate
+ else:
+ return path
return None
# if certifi is installed, use its CA bundle;
diff -ru a/setup.py b/setup.py
--- a/setup.py 2012-05-11 00:09:45.000000000 +0200
+++ b/setup.py 2012-05-30 11:16:32.235252151 +0200
@@ -34,7 +34,7 @@
# On certain supported platforms (e.g., Red Hat / Debian / FreeBSD), Requests can
# use the system CA bundle instead; see `requests.utils` for details.
# If your platform is supported, set `requires` to [] instead:
-requires = ['certifi>=0.0.7']
+requires = []
# chardet is used to optimally guess the encodings of pages that don't declare one.
# At this time, chardet is not a required dependency. However, it's sufficiently