[python-requests/el6] Backport of better cookie handling.

Ralph Bean ralph at fedoraproject.org
Fri Feb 1 02:47:23 UTC 2013


commit 197fed065dbbffc73dc8b7e917e70eff8e8eaf38
Author: Ralph Bean <rbean at redhat.com>
Date:   Thu Jan 31 21:47:13 2013 -0500

    Backport of better cookie handling.

 .gitignore           |    1 +
 python-requests.spec |    9 ++++++++-
 sources              |    2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b0af200..14db19b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@
 /requests-0.11.1.tar.gz
 /requests-0.13.1.tar.gz
 /requests-0.14.1.tar.gz
+/python-requests-cookie-handling.patch
diff --git a/python-requests.spec b/python-requests.spec
index 0aeaa9f..a6082c3 100644
--- a/python-requests.spec
+++ b/python-requests.spec
@@ -7,12 +7,15 @@
 #%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
 Name:           python-requests
 Version:        0.14.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        HTTP library, written in Python, for human beings
 
 License:        ISC and MIT
 URL:            http://pypi.python.org/pypi/requests
 Source0:        http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz
+# The following patch is a backport and is discussed here:
+# https://github.com/fedora-infra/python-fedora/pull/6
+Patch0:         %{name}-cookie-handling.patch
 
 BuildArch:      noarch
 BuildRequires:  python2-devel
@@ -43,6 +46,7 @@ designed to make HTTP requests easy for developers.
 
 %prep
 %setup -q -n requests-%{version}
+%patch0 -p1 -b .cookies
 
 %build
 %if 0%{?_with_python3}
@@ -81,6 +85,9 @@ PYTHONDONTWRITEBYTECODE=1 %{__python} setup.py install -O1 --skip-build --root $
 
 
 %changelog
+* Thu Jan 31 2013 Ralph Bean <rbean at redhat.com> 0.14.1-3
+- Introduced backport patch to support better cookie handling.
+
 * Mon Jan 28 2013 Ralph Bean <rbean at redhat.com> 0.14.1-2
 - Merged latest rawhide into el6.
 
diff --git a/sources b/sources
index 611d373..47840c4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3de30600072cbc7214ae342d1d08aa46  requests-0.14.1.tar.gz
+d1e890038183c27e3d804822cef5b602  python-requests-cookie-handling.patch


More information about the scm-commits mailing list