[Tizen-submit] 20959: New package Tizen:IVI/python-requests

noreply at tizen.org noreply at tizen.org
Tue Feb 11 11:31:38 GMT 2014


Hi,
Adding new package python-requests in project Tizen:IVI. Please review and accept ASAP.

Justification for this new package:

Submitter: Nicolas Zingilé <nicolas.zingile at open.eurogiciel.org>
Comments: initial packaging
Git project: platform/upstream/python-requests
Tag: submit/tizen/20140211.114219
Commit: 10e958cb8d3786946e30d4114f8afe27b9daccaf initial packaging

Thank You,
Nicolas Zingilé

[This message was auto-generated]

---

Request: #20959

  submit:       Tizen:IVI:build/python-requests(cleanup) -> Tizen:IVI


Message:
Submitter: Nicolas Zingilé <nicolas.zingile at open.eurogiciel.org>
Comments: initial packaging
Git project: platform/upstream/python-requests
Tag: submit/tizen/20140211.114219
Commit: 10e958cb8d3786946e30d4114f8afe27b9daccaf initial packaging

State:   new        2014-02-11T11:33:30 tizenrobot
Comment: <no comment>
new:
----
  python-requests-2.2.1.tar.gz
  python-requests.manifest
  python-requests.spec

spec files:
-----------

++++++ new spec file:
--- python-requests.spec
+++ python-requests.spec
@@ -0,0 +1,59 @@
+Name:           python-requests
+VCS:            platform/upstream/python-requests#10e958cb8d3786946e30d4114f8afe27b9daccaf
+Version:        2.2.1
+Release:        0
+Summary:        Awesome Python HTTP Library That's Actually Usable
+License:        Apache-2.0
+GROUP:          Development/Python
+URL:            http://python-requests.org
+Source:         %{name}-%{version}.tar.gz
+Source1001:     %{name}.manifest
+BuildRequires:  fdupes
+BuildRequires:  python
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
+Requires:       python
+BuildArch:      noarch
+
+%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.
+
+Features:
+
+- Extremely simple GET, HEAD, POST, PUT, DELETE Requests
+    + Simple HTTP Header Request Attachment
+    + Simple Data/Params Request Attachment
+    + Simple Multipart File Uploads
+    + CookieJar Support
+    + Redirection History
+    + Redirection Recursion Urllib Fix
+    + Auto Decompression of GZipped Content
+    + Unicode URL Support
+- Simple Authentication
+    + Simple URL + HTTP Auth Registry
+
+%prep
+%setup -q -n requests-%{version}
+cp  %{SOURCE1001} .
+# for rpmlint warning: remove shebang from python library
+sed -i '/^#!/d' ./requests/certs.py
+sed -i '/^#!/d' ./requests/packages/chardet/chardetect.py
+
+%build
+python setup.py build
+
+%check
+python setup.py test
+
+%install
+python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
+%fdupes $RPM_BUILD_ROOT
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%license LICENSE
+%{python_sitelib}/*

other changes:
--------------

++++++ python-requests-2.2.1.tar.gz (new)

++++++ python-requests.manifest (new)
--- python-requests.manifest
+++ python-requests.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list