Update to 0.10.8 by popular request
This commit is contained in:
parent
f92479a2cb
commit
ca30774832
3 changed files with 66 additions and 13 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,3 +2,4 @@
|
|||
/requests-0.6.0.tar.gz
|
||||
/requests-0.6.1.tar.gz
|
||||
/requests-0.6.6.tar.gz
|
||||
/requests-0.10.8.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,15 +1,24 @@
|
|||
%if 0%{?fedora} > 12 || 0%{?rhel} > 6
|
||||
%global _with_python3 1
|
||||
%else
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
||||
%endif
|
||||
|
||||
Name: python-requests
|
||||
Version: 0.6.6
|
||||
Release: 2%{?dist}
|
||||
Version: 0.10.8
|
||||
Release: 1%{?dist}
|
||||
Summary: HTTP library, written in Python, for human beings
|
||||
|
||||
License: ISC
|
||||
License: ISC and MIT
|
||||
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
|
||||
|
||||
%if 0%{?fedora}
|
||||
Requires: python-gevent
|
||||
%endif
|
||||
|
||||
%description
|
||||
Most existing Python modules for sending HTTP requests are extremely verbose and
|
||||
|
|
@ -17,35 +26,78 @@ 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.
|
||||
|
||||
%if 0%{?_with_python3}
|
||||
%package -n python3-requests
|
||||
Summary: HTTP library, written in Python, for human beings
|
||||
BuildRequires: python3-devel
|
||||
%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.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n requests-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
%if 0%{?_with_python3}
|
||||
%{__python3} setup.py build
|
||||
%endif
|
||||
|
||||
|
||||
%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
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%doc LICENSE README.rst HISTORY.rst
|
||||
%defattr(-,root,root,-)
|
||||
%doc NOTICE LICENSE README.rst HISTORY.rst
|
||||
%{python_sitelib}/*.egg-info
|
||||
%dir %{python_sitelib}/requests
|
||||
%dir %{python_sitelib}/requests/packages
|
||||
%dir %{python_sitelib}/requests/packages/poster
|
||||
%{python_sitelib}/requests/packages/*.py*
|
||||
%{python_sitelib}/requests/packages/poster/*.py*
|
||||
%{python_sitelib}/requests/*.py*
|
||||
%{python_sitelib}/requests/*
|
||||
|
||||
%if 0%{?_with_python3}
|
||||
%files -n python3-requests
|
||||
%{python3_sitelib}/*.egg-info
|
||||
%{python3_sitelib}/requests/
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Jan 08 2012 Arun SAG <sagarun@gmail.com> - 0.6.6-2
|
||||
- Add python-gevent as a dependency
|
||||
* Sun Apr 01 2012 Arun S A G <sagarun@gmail.com> 0.10.8-1
|
||||
- Updated to bugfix release 0.10.8
|
||||
|
||||
* Thu Mar 29 2012 Arun S A G <sagarun@gmail.com> 0.10.6-3
|
||||
- Support building package for EL6
|
||||
|
||||
* Tue Mar 27 2012 Rex Dieter <rdieter@fedoraproject.org> 0.10.6-2
|
||||
- +python3-requests pkg
|
||||
|
||||
* Sat Mar 3 2012 Arun SAG <sagarun@gmail.com> - 0.10.6-1
|
||||
- Updated to new upstream version
|
||||
|
||||
* Sat Jan 21 2012 Arun SAG <sagarun@gmail.com> - 0.9.3-1
|
||||
- Updated to new upstream version 0.9.3
|
||||
- Include python-gevent as a dependency for requests.async
|
||||
- Clean up shebangs in requests/setup.py,test_requests.py and test_requests_ext.py
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Sun Nov 27 2011 Arun SAG <sagarun@gmail.com> - 0.8.2-1
|
||||
- New upstream version
|
||||
- keep alive support
|
||||
- complete removal of cookiejar and urllib2
|
||||
|
||||
* Thu Nov 10 2011 Arun SAG <sagarun@gmail.com> - 0.7.6-1
|
||||
- Updated to new upstream release 0.7.6
|
||||
|
||||
* Thu Oct 20 2011 Arun SAG <sagarun@gmail.com> - 0.6.6-1
|
||||
- Updated to version 0.6.6
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
2180dacebc0e30ba730d083739907af6 requests-0.6.6.tar.gz
|
||||
0fc89a30eef76b2393cbc7ebace91750 requests-0.10.8.tar.gz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue