From d30532a1ebaf82ea0bf58e9a304838b97479922b Mon Sep 17 00:00:00 2001 From: Arun SAG Date: Sun, 1 Apr 2012 12:35:10 +0530 Subject: [PATCH 1/6] Updated to 0.11.1 --- .gitignore | 1 + python-requests.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0117ccb..d4527b5 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /requests-0.8.2.tar.gz /requests-0.9.3.tar.gz /requests-0.10.6.tar.gz +/requests-0.11.1.tar.gz diff --git a/python-requests.spec b/python-requests.spec index b6a40f0..5e87cf8 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -5,8 +5,8 @@ %endif Name: python-requests -Version: 0.10.6 -Release: 3%{?dist} +Version: 0.11.1 +Release: 1%{?dist} Summary: HTTP library, written in Python, for human beings License: ISC and MIT @@ -71,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Apr 01 2012 Arun S A G 0.11.1-1 +- Updated to upstream release 0.11.1 + * Thu Mar 29 2012 Arun S A G 0.10.6-3 - Support building package for EL6 diff --git a/sources b/sources index a4a823c..35b2373 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c889401445de3cbbac98509208a73b83 requests-0.10.6.tar.gz +c903c32a0e1f04889e693da8e9c71872 requests-0.11.1.tar.gz From d38a7dff2823f5cfe291f117f8977d0d5e2a6ecc Mon Sep 17 00:00:00 2001 From: Arun SAG Date: Mon, 9 Apr 2012 00:05:46 +0530 Subject: [PATCH 2/6] Add python-certifi as required package to requests --- python-requests.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-requests.spec b/python-requests.spec index 5e87cf8..0337734 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -6,7 +6,7 @@ Name: python-requests Version: 0.11.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: HTTP library, written in Python, for human beings License: ISC and MIT @@ -16,6 +16,7 @@ Source0: http://pypi.python.org/packages/source/r/requests/requests-%{ver BuildArch: noarch BuildRequires: python-devel +Requires: python-certifi %if 0%{?fedora} Requires: python-gevent %endif @@ -71,6 +72,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Apr 08 2012 Arun S A G 0.11.1-2 +- Requires python-certifi for https processing + * Sun Apr 01 2012 Arun S A G 0.11.1-1 - Updated to upstream release 0.11.1 From 74db89b32895cb7f543f37811f736e402c98dfe7 Mon Sep 17 00:00:00 2001 From: Arun SAG Date: Sun, 10 Jun 2012 22:47:44 +0530 Subject: [PATCH 3/6] Updated to 0.13.1 --- .gitignore | 1 + python-requests.spec | 19 +++++++++++-------- sources | 2 +- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index d4527b5..efd9e4f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /requests-0.9.3.tar.gz /requests-0.10.6.tar.gz /requests-0.11.1.tar.gz +/requests-0.13.1.tar.gz diff --git a/python-requests.spec b/python-requests.spec index 0337734..aa9afd4 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -5,8 +5,8 @@ %endif Name: python-requests -Version: 0.11.1 -Release: 2%{?dist} +Version: 0.13.1 +Release: 1%{?dist} Summary: HTTP library, written in Python, for human beings License: ISC and MIT @@ -16,10 +16,7 @@ Source0: http://pypi.python.org/packages/source/r/requests/requests-%{ver BuildArch: noarch BuildRequires: python-devel -Requires: python-certifi -%if 0%{?fedora} -Requires: python-gevent -%endif +Requires: ca-certificates %description Most existing Python modules for sending HTTP requests are extremely verbose and @@ -31,11 +28,14 @@ designed to make HTTP requests easy for developers. %package -n python3-requests Summary: HTTP library, written in Python, for human beings BuildRequires: python3-devel +Requires: python3-chardet %description -n python3-requests Most existing Python modules for sending HTTP requests are extremely verbose and cumbersome. Python’s built-in urllib2 module provides most of the HTTP capabilities you should need, but the API is thoroughly broken. This library is designed to make HTTP requests easy for developers. +%else +Requires: python-chardet %endif @@ -72,8 +72,11 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Sun Apr 08 2012 Arun S A G 0.11.1-2 -- Requires python-certifi for https processing +* Sun Jun 10 2012 Arun S A G 0.13.1-1 +- Updated to latest upstream release 0.13.1 +- Use system provided ca-certificates +- No more async requests use grrequests https://github.com/kennethreitz/grequests +- Remove gevent as it is no longer required by requests * Sun Apr 01 2012 Arun S A G 0.11.1-1 - Updated to upstream release 0.11.1 diff --git a/sources b/sources index 35b2373..6704a5e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c903c32a0e1f04889e693da8e9c71872 requests-0.11.1.tar.gz +31a08091feeefe60817e45122d933219 requests-0.13.1.tar.gz From f0e2277d8b111517ccf1a7090b783cc95b8001e4 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 21 Jul 2012 03:20:12 -0500 Subject: [PATCH 4/6] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- python-requests.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-requests.spec b/python-requests.spec index aa9afd4..ec7b7a4 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -6,7 +6,7 @@ Name: python-requests Version: 0.13.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: HTTP library, written in Python, for human beings License: ISC and MIT @@ -72,6 +72,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Jul 21 2012 Fedora Release Engineering - 0.13.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Sun Jun 10 2012 Arun S A G 0.13.1-1 - Updated to latest upstream release 0.13.1 - Use system provided ca-certificates From 94278d4bf91c4fe31aacec9bb79b50a6cd444d2d Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Sat, 4 Aug 2012 01:09:00 -0400 Subject: [PATCH 5/6] rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 --- python-requests.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-requests.spec b/python-requests.spec index ec7b7a4..473fb3d 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -6,7 +6,7 @@ Name: python-requests Version: 0.13.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: HTTP library, written in Python, for human beings License: ISC and MIT @@ -72,6 +72,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Aug 04 2012 David Malcolm - 0.13.1-3 +- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 + * Sat Jul 21 2012 Fedora Release Engineering - 0.13.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild From e9f9b2b5c01b1fec12f7bc2c2214333c9ca07304 Mon Sep 17 00:00:00 2001 From: Arun SAG Date: Thu, 25 Oct 2012 01:06:30 +0530 Subject: [PATCH 6/6] Updated to requests 0.14.1 --- .gitignore | 1 + python-requests.spec | 36 +++++++++++++++++++----------------- sources | 2 +- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index efd9e4f..321be65 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /requests-0.10.6.tar.gz /requests-0.11.1.tar.gz /requests-0.13.1.tar.gz +/requests-0.14.1.tar.gz diff --git a/python-requests.spec b/python-requests.spec index 473fb3d..bb7e940 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -3,10 +3,11 @@ %else %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")} %endif - +# Turn off the brp-python-bytecompile script +#%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') Name: python-requests -Version: 0.13.1 -Release: 3%{?dist} +Version: 0.14.1 +Release: 1%{?dist} Summary: HTTP library, written in Python, for human beings License: ISC and MIT @@ -14,7 +15,7 @@ URL: http://pypi.python.org/pypi/requests Source0: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz BuildArch: noarch -BuildRequires: python-devel +BuildRequires: python2-devel Requires: ca-certificates @@ -28,14 +29,11 @@ designed to make HTTP requests easy for developers. %package -n python3-requests Summary: HTTP library, written in Python, for human beings BuildRequires: python3-devel -Requires: python3-chardet %description -n python3-requests Most existing Python modules for sending HTTP requests are extremely verbose and cumbersome. Python’s built-in urllib2 module provides most of the HTTP capabilities you should need, but the API is thoroughly broken. This library is designed to make HTTP requests easy for developers. -%else -Requires: python-chardet %endif @@ -43,20 +41,27 @@ Requires: python-chardet %setup -q -n requests-%{version} %build -%{__python} setup.py build %if 0%{?_with_python3} %{__python3} setup.py build %endif - +%{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT -%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %if 0%{?_with_python3} -%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +PYTHONDONTWRITEBYTECODE=1 %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +#%py_byte_compile %{__python} %{buildroot}%{python3_sitelib}/requests/packages/chardet2 +#%py_byte_compile %{__python} %{buildroot}%{python3_sitelib}/requests/packages/oauthlib +#%py_byte_compile %{__python} %{buildroot}%{python3_sitelib}/requests/packages/urllib3 +#%py_byte_compile %{__python} %{buildroot}%{python3_sitelib}/requests/*.py %endif - +PYTHONDONTWRITEBYTECODE=1 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +#%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/requests/packages/chardet +#%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/requests/packages/oauthlib +#%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/requests/packages/urllib3 +#%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/requests/*.py +# %files %defattr(-,root,root,-) %doc NOTICE LICENSE README.rst HISTORY.rst @@ -72,11 +77,8 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Sat Aug 04 2012 David Malcolm - 0.13.1-3 -- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 - -* Sat Jul 21 2012 Fedora Release Engineering - 0.13.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild +* Wed Oct 22 2012 Arun S A G 0.14.1-1 +- Updated to latest upstream release * Sun Jun 10 2012 Arun S A G 0.13.1-1 - Updated to latest upstream release 0.13.1 diff --git a/sources b/sources index 6704a5e..611d373 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -31a08091feeefe60817e45122d933219 requests-0.13.1.tar.gz +3de30600072cbc7214ae342d1d08aa46 requests-0.14.1.tar.gz