From d2561dafc580087cb732ea0664a2b6f466759227 Mon Sep 17 00:00:00 2001 From: Arun SAG Date: Tue, 16 Aug 2011 21:48:44 +0530 Subject: [PATCH 1/5] New package: python-requests - HTTP for Humans --- .gitignore | 1 + python-requests.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 54 insertions(+) create mode 100644 python-requests.spec diff --git a/.gitignore b/.gitignore index e69de29..b6410a3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/requests-0.5.1.tar.gz diff --git a/python-requests.spec b/python-requests.spec new file mode 100644 index 0000000..de3afd6 --- /dev/null +++ b/python-requests.spec @@ -0,0 +1,52 @@ +Name: python-requests +Version: 0.5.1 +Release: 2%{?dist} +Summary: HTTP library, written in Python, for human beings + +License: ISC +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 + +%description +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. + + +%prep +%setup -q -n requests-%{version} + + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + +%files +%doc 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* + + + +%changelog +* Mon Aug 15 2011 Arun SAG - 0.5.1-2 +- Remove OPT_FLAGS from build section since it is a noarch package +- Fix use of mixed tabs and space +- Remove extra space around the word cumbersome in description + +* Sun Aug 14 2011 Arun SAG - 0.5.1-1 +- Initial package diff --git a/sources b/sources index e69de29..9e340c8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +33a6e65d6a4e5b2d91df76256f607b81 requests-0.5.1.tar.gz From 8dd0b064fb2b1b3c42922f264b63c78c05808bbb Mon Sep 17 00:00:00 2001 From: Arun SAG Date: Sat, 20 Aug 2011 19:06:19 +0530 Subject: [PATCH 2/5] Updated to upstream version 0.6.0 --- .gitignore | 1 + python-requests.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b6410a3..9dcadd4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /requests-0.5.1.tar.gz +/requests-0.6.0.tar.gz diff --git a/python-requests.spec b/python-requests.spec index de3afd6..ce710b8 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,6 +1,6 @@ Name: python-requests -Version: 0.5.1 -Release: 2%{?dist} +Version: 0.6.0 +Release: 1%{?dist} Summary: HTTP library, written in Python, for human beings License: ISC @@ -43,6 +43,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Aug 20 2011 Arun SAG - 0.6.0-1 +- Updated to latest version 0.6.0 + * Mon Aug 15 2011 Arun SAG - 0.5.1-2 - Remove OPT_FLAGS from build section since it is a noarch package - Fix use of mixed tabs and space diff --git a/sources b/sources index 9e340c8..13a1e7b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -33a6e65d6a4e5b2d91df76256f607b81 requests-0.5.1.tar.gz +235e9fb6bfd71a48c0f00c0d5aef8896 requests-0.6.0.tar.gz From 7c6554a2e77ae61668dc36f881c6a47c35f5d6e0 Mon Sep 17 00:00:00 2001 From: Arun SAG Date: Sat, 27 Aug 2011 00:08:55 +0530 Subject: [PATCH 3/5] updated to upstream version 0.6.1 --- .gitignore | 1 + python-requests.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9dcadd4..0c248f1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /requests-0.5.1.tar.gz /requests-0.6.0.tar.gz +/requests-0.6.1.tar.gz diff --git a/python-requests.spec b/python-requests.spec index ce710b8..9ac9138 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,5 +1,5 @@ Name: python-requests -Version: 0.6.0 +Version: 0.6.1 Release: 1%{?dist} Summary: HTTP library, written in Python, for human beings @@ -43,6 +43,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Aug 26 2011 Arun SAG - 0.6.1-1 +- Updated to version 0.6.1 + * Sat Aug 20 2011 Arun SAG - 0.6.0-1 - Updated to latest version 0.6.0 diff --git a/sources b/sources index 13a1e7b..8af45eb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -235e9fb6bfd71a48c0f00c0d5aef8896 requests-0.6.0.tar.gz +07770334d48bd69ede1cc28cd0dd7680 requests-0.6.1.tar.gz From 82f6540d848316f2e51f16fde26367aa18246ef7 Mon Sep 17 00:00:00 2001 From: Arun SAG Date: Fri, 21 Oct 2011 08:50:14 +0530 Subject: [PATCH 4/5] Updated to version 0.6.6 --- .gitignore | 1 + python-requests.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0c248f1..e86ffff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /requests-0.5.1.tar.gz /requests-0.6.0.tar.gz /requests-0.6.1.tar.gz +/requests-0.6.6.tar.gz diff --git a/python-requests.spec b/python-requests.spec index 9ac9138..4f8eeb3 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,5 +1,5 @@ Name: python-requests -Version: 0.6.1 +Version: 0.6.6 Release: 1%{?dist} Summary: HTTP library, written in Python, for human beings @@ -43,6 +43,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Oct 20 2011 Arun SAG - 0.6.6-1 +- Updated to version 0.6.6 + * Fri Aug 26 2011 Arun SAG - 0.6.1-1 - Updated to version 0.6.1 diff --git a/sources b/sources index 8af45eb..f0ebe55 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -07770334d48bd69ede1cc28cd0dd7680 requests-0.6.1.tar.gz +2180dacebc0e30ba730d083739907af6 requests-0.6.6.tar.gz From 98518e8273df1e7ad3894b95de8cfe6f4de400d1 Mon Sep 17 00:00:00 2001 From: Arun SAG Date: Sun, 8 Jan 2012 20:22:03 +0530 Subject: [PATCH 5/5] Add python-gevent to support requests.async --- python-requests.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-requests.spec b/python-requests.spec index 4f8eeb3..e92323f 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,6 +1,6 @@ Name: python-requests Version: 0.6.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: HTTP library, written in Python, for human beings License: ISC @@ -9,6 +9,7 @@ Source0: http://pypi.python.org/packages/source/r/requests/requests-%{ver BuildArch: noarch BuildRequires: python-devel +Requires: python-gevent %description Most existing Python modules for sending HTTP requests are extremely verbose and @@ -43,6 +44,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Jan 08 2012 Arun SAG - 0.6.6-2 +- Add python-gevent as a dependency + * Thu Oct 20 2011 Arun SAG - 0.6.6-1 - Updated to version 0.6.6