Accepting request 179993 from devel:languages:python
housekeeping sr, necessary due to split between d:l:p and d:l:p3 and (manual) _link removal in Factory. OBS-URL: https://build.opensuse.org/request/show/179993 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=12
This commit is contained in:
commit
495b97e61d
@ -1,40 +0,0 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 13 08:57:09 UTC 2013 - dmueller@suse.com
|
||||
|
||||
- update to 1.2.0:
|
||||
* Fixed cookies on sessions and on requests
|
||||
* Significantly change how hooks are dispatched - hooks now receive all the
|
||||
arguments specified by the user when making a request so hooks can make a
|
||||
secondary request with the same parameters. This is especially necessary for
|
||||
authentication handler authors
|
||||
* certifi support was removed
|
||||
* Fixed bug where using OAuth 1 with body ``signature_type`` sent no data
|
||||
* Major proxy work thanks to @Lukasa including parsing of proxy authentication
|
||||
from the proxy url
|
||||
* Fix DigestAuth handling too many 401s
|
||||
* Update vendored urllib3 to include SSL bug fixes
|
||||
* Allow keyword arguments to be passed to ``json.loads()`` via the
|
||||
``Response.json()`` method
|
||||
* Don't send ``Content-Length`` header by default on ``GET`` or ``HEAD``
|
||||
requests
|
||||
* Add ``elapsed`` attribute to ``Response`` objects to time how long a request
|
||||
took.
|
||||
* Fix ``RequestsCookieJar``
|
||||
* Sessions and Adapters are now picklable, i.e., can be used with the
|
||||
mutiprocessing library
|
||||
Update charade to version 1.0.3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 18 08:33:19 UTC 2013 - saschpe@suse.de
|
||||
|
||||
- Set license to "Apache-2.0 and LGPL-2.1+ and MIT", according to
|
||||
https://github.com/kennethreitz/requests/issues/1111, the base
|
||||
license is Apache-2.0 but requests ships two libraries (bnc#799119):
|
||||
+ charade: LGPL-2.1+
|
||||
+ urllib3: MIT
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 15 19:37:31 UTC 2013 - p.drouand@gmail.com
|
||||
|
||||
- Initial python3 support
|
||||
|
@ -1,77 +0,0 @@
|
||||
#
|
||||
# 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.2.3
|
||||
Release: 0
|
||||
Url: http://python-requests.org
|
||||
Summary: Awesome Python HTTP Library That's Actually Usable
|
||||
License: Apache-2.0 and LGPL-2.1+ and MIT
|
||||
Group: Development/Languages/Python
|
||||
#TODO/FIXME: Maybe split out charade and urllib3 into sub-packages to simplify:
|
||||
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
|
Loading…
Reference in New Issue
Block a user