[python-requests] Updated to requests 0.14.1

Arun SAG sagarun at fedoraproject.org
Wed Oct 24 19:36:40 UTC 2012


commit e9f9b2b5c01b1fec12f7bc2c2214333c9ca07304
Author: Arun SAG <sagarun at gmail.com>
Date:   Thu Oct 25 01:06:30 2012 +0530

    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 <dmalcolm at redhat.com> - 0.13.1-3
-- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
-
-* Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.13.1-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+* Wed Oct 22 2012 Arun S A G <sagarun at gmail.com>  0.14.1-1
+- Updated to latest upstream release
 
 * Sun Jun 10 2012 Arun S A G <sagarun at gmail.com> 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


More information about the scm-commits mailing list