From 0961e4026c52570218051b1ad4877a03e5eed520195cb362f09c8ef3f09bbc6b Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 23 Sep 2011 12:10:26 +0000 Subject: [PATCH] - 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 --- python-requests.changes | 23 +++++++++++++++++++++++ python-requests.spec | 35 ++++++++++++----------------------- requests-0.5.0.tar.bz2 | 3 --- requests-0.6.1.tar.gz | 3 +++ 4 files changed, 38 insertions(+), 26 deletions(-) delete mode 100644 requests-0.5.0.tar.bz2 create mode 100644 requests-0.6.1.tar.gz diff --git a/python-requests.changes b/python-requests.changes index 171d03e..779a98c 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Fri Sep 23 12:08:32 UTC 2011 - saschpe@suse.de + +- 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 + ------------------------------------------------------------------- Wed Jun 22 17:18:17 UTC 2011 - jfunk@funktronics.ca diff --git a/python-requests.spec b/python-requests.spec index e5ff9e8..3e267e0 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -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 - %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 \ No newline at end of file +%changelog diff --git a/requests-0.5.0.tar.bz2 b/requests-0.5.0.tar.bz2 deleted file mode 100644 index a2b70fe..0000000 --- a/requests-0.5.0.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c641faf7b71949dfa5d89d292616bf5f93eac4d2be6cfb451f1d8ddb1240a6f0 -size 18016 diff --git a/requests-0.6.1.tar.gz b/requests-0.6.1.tar.gz new file mode 100644 index 0000000..0810675 --- /dev/null +++ b/requests-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2656b23db25398e990e6f5d75dfbd960454a1fe573aeedc651773ddd2a8a3bbc +size 26107