From a77547e14d9bcfdf28a4fd1f26c6509f8b6822447c8c55108efc29c861340535 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 30 May 2012 09:17:32 +0000 Subject: [PATCH 1/2] - 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=21 --- python-requests.changes | 14 ++++++++++++++ python-requests.spec | 3 ++- requests-0.12.1.tar.gz | 3 --- requests-0.13.0.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.0.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..d390c43 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 0.12.1 +Version: 0.13.0 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.0.tar.gz b/requests-0.13.0.tar.gz new file mode 100644 index 0000000..209925d --- /dev/null +++ b/requests-0.13.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03a2001843546147ddb6972d0661e2002b9be4ccbbbd2177ee10f05bd1910109 +size 68172 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. From 5919c81afb6d9b61bd10c2c1f29dfd6f79b10f3cabfcd151217153c992ceddf9 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 20 Jun 2012 11:51:50 +0000 Subject: [PATCH 2/2] Actually add and build the 0.13.1 tarball OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=23 --- python-requests.spec | 2 +- requests-0.13.0.tar.gz | 3 --- requests-0.13.1.tar.gz | 3 +++ 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 requests-0.13.0.tar.gz create mode 100644 requests-0.13.1.tar.gz diff --git a/python-requests.spec b/python-requests.spec index d390c43..2f4fb77 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 0.13.0 +Version: 0.13.1 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable diff --git a/requests-0.13.0.tar.gz b/requests-0.13.0.tar.gz deleted file mode 100644 index 209925d..0000000 --- a/requests-0.13.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:03a2001843546147ddb6972d0661e2002b9be4ccbbbd2177ee10f05bd1910109 -size 68172 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