From 431215126cf1f1301cfd49fd380f52a484c6f668eb64f8ac350b308047b113e0 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 26 Jun 2012 15:57:49 +0000 Subject: [PATCH] Accepting request 126137 from devel:languages:python OBS-URL: https://build.opensuse.org/request/show/126137 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=5 --- python-requests.changes | 14 ++++++++++++++ python-requests.spec | 3 ++- requests-0.12.1.tar.gz | 3 --- requests-0.13.1.tar.gz | 3 +++ requests-suse_cert_paths.patch | 15 +++++++-------- 5 files changed, 26 insertions(+), 12 deletions(-) delete mode 100644 requests-0.12.1.tar.gz create mode 100644 requests-0.13.1.tar.gz diff --git a/python-requests.changes b/python-requests.changes index 1f5b2ba..6bb11ad 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Wed May 30 09:11:50 UTC 2012 - saschpe@suse.de + +- Update to 0.13.1: + + Removal of Requests.async in favor of grequests + + Allow disabling of cookie persistiance. + + New implimentation of safe_mode + + cookies.get now supports default argument + + Session cookies not saved when Session.request is called with return_response=False + + Env: no_proxy support. + + RequestsCookieJar improvements. + + Various bug fixes. +- Rebased patches + ------------------------------------------------------------------- Wed May 23 12:09:35 UTC 2012 - saschpe@suse.de diff --git a/python-requests.spec b/python-requests.spec index 7b4769e..2f4fb77 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 0.12.1 +Version: 0.13.1 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable @@ -34,6 +34,7 @@ BuildRequires: python-distribute BuildRequires: python-oauthlib Requires: python Requires: python-chardet +Requires: python-grequests Requires: python-oauthlib %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()")} diff --git a/requests-0.12.1.tar.gz b/requests-0.12.1.tar.gz deleted file mode 100644 index 1fb918c..0000000 --- a/requests-0.12.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ce56b87180c06728d96ca734055675abf8f5cc3136e0d7712a6260430685589 -size 78245 diff --git a/requests-0.13.1.tar.gz b/requests-0.13.1.tar.gz new file mode 100644 index 0000000..399d035 --- /dev/null +++ b/requests-0.13.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31f3ae96787fe74a78c7dd9626bf997fd4eabacc040b7b33fbd8632d2c2a97f6 +size 68474 diff --git a/requests-suse_cert_paths.patch b/requests-suse_cert_paths.patch index 0959726..0103f8b 100644 --- a/requests-suse_cert_paths.patch +++ b/requests-suse_cert_paths.patch @@ -1,9 +1,9 @@ diff -ru a/requests/utils.py b/requests/utils.py ---- a/requests/utils.py 2012-05-08 06:56:28.000000000 +0200 -+++ b/requests/utils.py 2012-05-23 14:06:43.728477504 +0200 -@@ -14,6 +14,9 @@ +--- 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 random import re +import socket +import ssl @@ -11,7 +11,7 @@ diff -ru a/requests/utils.py b/requests/utils.py import zlib from netrc import netrc, NetrcParseError -@@ -42,13 +45,26 @@ +@@ -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', @@ -39,10 +39,9 @@ diff -ru a/requests/utils.py b/requests/utils.py return None # if certifi is installed, use its CA bundle; -Only in b/requests: .utils.py.swp diff -ru a/setup.py b/setup.py ---- a/setup.py 2012-05-08 06:56:28.000000000 +0200 -+++ b/setup.py 2012-05-23 14:07:30.303478614 +0200 +--- 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.