forked from pool/python-requests
* Converted auth system to use simpler callable objects. * New session parameter to API methods. * Display full URL while logging. -+-This line, and those below, will be ignored-- M python-requests.changes M python-requests.spec D requests-0.8.2.tar.gz A requests-0.8.3.tar.gz Diff for working copy: . Index: python-requests.changes =================================================================== --- python-requests.changes (revision 4) +++ python-requests.changes (working copy) @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Nov 27 20:38:47 UTC 2011 - jfunk@funktronics.ca + +- Update to 0.8.3 + * Converted auth system to use simpler callable objects. + * New session parameter to API methods. + * Display full URL while logging. + ------------------------------------------------------------------- Sun Nov 27 08:54:32 UTC 2011 - jfunk@funktronics.ca Index: python-requests.spec =================================================================== --- python-requests.spec (revision 4) +++ python-requests.spec (working copy) @@ -18,7 +18,7 @@ Name: python-requests -Version: 0.8.2 +Version: 0.8.3 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable Index: requests-0.8.3.tar.gz =================================================================== Binary file 'requests-0.8.3.tar.gz' added. Index: requests-0.8.2.tar.gz =================================================================== Binary file 'requests-0.8.2.tar.gz' deleted. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=5
79 lines
2.4 KiB
RPMSpec
79 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-requests
|
|
#
|
|
# Copyright (c) 2011 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: python-requests
|
|
Version: 0.8.3
|
|
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: python
|
|
BuildRequires: python-devel
|
|
Requires: python
|
|
%if 0%{?suse_version}
|
|
%py_requires
|
|
%if 0%{?suse_version} > 1110
|
|
BuildArch: noarch
|
|
%endif
|
|
%endif
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%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}
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.rst HISTORY.rst LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|