From e2a709661b11aba8fff66cf19e66c6fe9d7d0b734a79dd08877bd6b0e666329a Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 17 Jan 2013 12:07:06 +0000 Subject: [PATCH] Accepting request 148653 from home:posophe:branches:devel:languages:python Update and python3 support OBS-URL: https://build.opensuse.org/request/show/148653 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=29 --- python-requests.changes | 15 ++++++++ python-requests.spec | 7 ++-- python3-requests.changes | 5 +++ python3-requests.spec | 77 ++++++++++++++++++++++++++++++++++++++++ requests-0.14.2.tar.gz | 3 -- requests-1.1.0.tar.gz | 3 ++ 6 files changed, 105 insertions(+), 5 deletions(-) create mode 100644 python3-requests.changes create mode 100644 python3-requests.spec delete mode 100644 requests-0.14.2.tar.gz create mode 100644 requests-1.1.0.tar.gz diff --git a/python-requests.changes b/python-requests.changes index ee754ea..cdeeec6 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Jan 15 19:37:18 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + +------------------------------------------------------------------- +Tue Jan 15 19:34:53 UTC 2013 - p.drouand@gmail.com + +- Update to version 1.1.0: + * CHUNKED REQUESTS + * Support for iterable response bodies + * Assume servers persist redirect params + * Allow explicit content types to be specified for file data + * Make merge_kwargs case-insensitive when looking up keys + ------------------------------------------------------------------- Tue Nov 13 22:04:33 UTC 2012 - jfunk@funktronics.ca diff --git a/python-requests.spec b/python-requests.spec index a39d6d4..b03e167 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-requests -Version: 0.14.2 +Version: 1.1.0 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable @@ -61,6 +61,9 @@ Features: %prep %setup -q -n requests-%{version} +# For rpmlint warning: remove shebang from python library: +sed -i '/^#!/d' ./requests/certs.py + %build python setup.py build diff --git a/python3-requests.changes b/python3-requests.changes new file mode 100644 index 0000000..675b99f --- /dev/null +++ b/python3-requests.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Jan 15 19:37:31 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + diff --git a/python3-requests.spec b/python3-requests.spec new file mode 100644 index 0000000..dd2fae3 --- /dev/null +++ b/python3-requests.spec @@ -0,0 +1,77 @@ +# +# spec file for package python3-requests +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: python3-requests +Version: 1.1.0 +Release: 0 +Url: http://python-requests.org +Summary: Awesome Python HTTP Library That's Actually Usable +License: ISC +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python3 +BuildRequires: python3-devel +BuildRequires: python3-distribute +BuildArch: noarch + +%description +Requests is an ISC Licensed HTTP library, written in Python, for human +beings. + +Most existing Python modules for sending HTTP requests are extremely +verbose and cumbersome. Python's builtin urllib2 module provides most of +the HTTP capabilities you should need, but the api is thoroughly broken. +It requires an enormous amount of work (even method overrides) to +perform the simplest of tasks. + +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} +# For rpmlint warning: remove shebang from python library: +sed -i '/^#!/d' ./requests/certs.py + + +%build +python3 setup.py build + +%check +python3 setup.py test + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root) +%doc README.rst HISTORY.rst LICENSE NOTICE +%{python3_sitelib}/* + +%changelog diff --git a/requests-0.14.2.tar.gz b/requests-0.14.2.tar.gz deleted file mode 100644 index 2cdb876..0000000 --- a/requests-0.14.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0e3345a8ac0d712bf17bd9d3276415050c5f972265ab62993cd4540a3a1aaaef -size 361488 diff --git a/requests-1.1.0.tar.gz b/requests-1.1.0.tar.gz new file mode 100644 index 0000000..f58cf28 --- /dev/null +++ b/requests-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21a81ddf1a3c2f956524538966ae19c38cae251f5629821588cdc8246a1335f7 +size 337229