forked from pool/python-requests
- Update to version 0.6.1:
* Enhanced status codes experience ``\o/`` * Set a maximum number of redirects (``settings.max_redirects``) * Full Unicode URL support * Support for protocol-less redirects. * Allow for arbitrary request types. * Bugfixes - Changes from version 0.6.0: * New callback hook system * New persistient sessions object and context manager * Transparent Dict-cookie handling * Status code reference object * Removed Response.cached * Added Response.request * All args are kwargs * Relative redirect support * HTTPError handling improvements * Improved https testing * Bugfixes OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
64bbcb2498
commit
0961e4026c
@@ -16,16 +16,15 @@
|
||||
#
|
||||
|
||||
|
||||
%define mod_name requests
|
||||
|
||||
Name: python-%{mod_name}
|
||||
Version: 0.5.0
|
||||
Name: python-requests
|
||||
Version: 0.6.1
|
||||
Release: 0
|
||||
Url: http://python-requests.org
|
||||
Summary: Awesome Python HTTP Library That's Actually Usable
|
||||
License: ISC
|
||||
Group: Development/Languages/Python
|
||||
Source: %{mod_name}-%{version}.tar.bz2
|
||||
Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
%if 0%{?suse_version}
|
||||
@@ -35,16 +34,16 @@ BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%description
|
||||
Most existing Python modules for dealing HTTP requests are insane. I have to
|
||||
look up *everything* that I want to do. Most of my worst Python experiences are
|
||||
a result of the various built-in HTTP libraries (yes, even worse than Logging).
|
||||
Requests is an ISC Licensed HTTP library, written in Python, for human
|
||||
beings.
|
||||
|
||||
But this one's different. This one's going to be awesome. And simple.
|
||||
|
||||
Really simple.
|
||||
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:
|
||||
|
||||
@@ -57,31 +56,21 @@ Features:
|
||||
+ Redirection Recursion Urllib Fix
|
||||
+ Auto Decompression of GZipped Content
|
||||
+ Unicode URL Support
|
||||
|
||||
- Simple Authentication
|
||||
+ Simple URL + HTTP Auth Registry
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Kenneth Reitz <me@kennethreitz com>
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
%setup -q -n requests-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README.rst HISTORY.rst LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user