From 1b53b77bf1f75c573ceb296a846417df07e352ec446cd59e99533eaaa4a6b55c Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Fri, 23 Mar 2018 16:04:53 +0000 Subject: [PATCH] - update to 3.1.0: - Relax JSON content-type checking in the ``ClientResponse.json()`` to allow "application/xxx+json" instead of strict "application/json". (#2206) - Bump C HTTP parser to version 2.8 (#2730) - Accept a coroutine as an application factory in ``web.run_app`` and gunicorn worker. (#2739) - Implement application cleanup context (``app.cleanup_ctx`` property). (#2747) - Make ``writer.write_headers`` a coroutine. (#2762) - Add tracking signals for getting request/response bodies. (#2767) - Deprecate ClientResponseError.code in favor of .status to keep similarity with response classes. (#2781) - Implement ``app.add_routes()`` method. (#2787) - Implement ``web.static()`` and ``RouteTableDef.static()`` API. (#2795) - Install a test event loop as default by ``asyncio.set_event_loop()``. The change affects aiohttp test utils but backward compatibility is not broken for 99.99% of use cases. (#2804) - Refactor ``ClientResponse`` constructor: make logically required constructor arguments mandatory, drop ``_post_init()`` method. (#2820) - Use ``app.add_routes()`` in server docs everywhere (#2830) - Websockets refactoring, all websocket writer methods are converted into coroutines. (#2836) - Provide ``Content-Range`` header for ``Range`` requests (#2844) - Fix websocket client return EofStream. (#2784) - Fix websocket demo. (#2789) - Property ``BaseRequest.http_range`` now returns a python-like slice when requesting the tail of the range. It's now indicated by a negative value in ``range.start`` rather then in ``range.stop`` (#2805) - Close a connection if an unexpected exception occurs while sending a request - Fix firing DNS tracing events. (#2841) - Change ``ClientResponse.json()`` documentation to reflect that it now OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=17 --- aiohttp-3.0.1.tar.gz | 3 --- aiohttp-3.1.0.tar.gz | 3 +++ python-aiohttp.changes | 39 +++++++++++++++++++++++++++++++++++++++ python-aiohttp.spec | 5 ++++- 4 files changed, 46 insertions(+), 4 deletions(-) delete mode 100644 aiohttp-3.0.1.tar.gz create mode 100644 aiohttp-3.1.0.tar.gz diff --git a/aiohttp-3.0.1.tar.gz b/aiohttp-3.0.1.tar.gz deleted file mode 100644 index 002a89f..0000000 --- a/aiohttp-3.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7aee5c0750584946fde40da70f0b28fe769f85182f1171acef18a35fd8ecd221 -size 737087 diff --git a/aiohttp-3.1.0.tar.gz b/aiohttp-3.1.0.tar.gz new file mode 100644 index 0000000..9d84920 --- /dev/null +++ b/aiohttp-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44373fee917bafe243aed7e4831eface7fa10dd54f7205f091d22c3bc6ae95e9 +size 750257 diff --git a/python-aiohttp.changes b/python-aiohttp.changes index 69e55c8..fb3fae5 100644 --- a/python-aiohttp.changes +++ b/python-aiohttp.changes @@ -1,3 +1,42 @@ +------------------------------------------------------------------- +Fri Mar 23 15:16:21 UTC 2018 - tbechtold@suse.com + +- update to 3.1.0: + - Relax JSON content-type checking in the ``ClientResponse.json()`` to allow + "application/xxx+json" instead of strict "application/json". (#2206) + - Bump C HTTP parser to version 2.8 (#2730) + - Accept a coroutine as an application factory in ``web.run_app`` and gunicorn + worker. (#2739) + - Implement application cleanup context (``app.cleanup_ctx`` property). (#2747) + - Make ``writer.write_headers`` a coroutine. (#2762) + - Add tracking signals for getting request/response bodies. (#2767) + - Deprecate ClientResponseError.code in favor of .status to keep similarity + with response classes. (#2781) + - Implement ``app.add_routes()`` method. (#2787) + - Implement ``web.static()`` and ``RouteTableDef.static()`` API. (#2795) + - Install a test event loop as default by ``asyncio.set_event_loop()``. The + change affects aiohttp test utils but backward compatibility is not broken + for 99.99% of use cases. (#2804) + - Refactor ``ClientResponse`` constructor: make logically required constructor + arguments mandatory, drop ``_post_init()`` method. (#2820) + - Use ``app.add_routes()`` in server docs everywhere (#2830) + - Websockets refactoring, all websocket writer methods are converted into + coroutines. (#2836) + - Provide ``Content-Range`` header for ``Range`` requests (#2844) + - Fix websocket client return EofStream. (#2784) + - Fix websocket demo. (#2789) + - Property ``BaseRequest.http_range`` now returns a python-like slice when + requesting the tail of the range. It's now indicated by a negative value in + ``range.start`` rather then in ``range.stop`` (#2805) + - Close a connection if an unexpected exception occurs while sending a request + - Fix firing DNS tracing events. (#2841) + - Change ``ClientResponse.json()`` documentation to reflect that it now + allows "application/xxx+json" content-types (#2206) + - Document behavior when cchardet detects encodings that are unknown to Python. + - Add diagrams for tracing request life style. (#2748) + - Drop removed functionality for passing ``StreamReader`` as data at client + side. (#2793) + ------------------------------------------------------------------- Sat Feb 17 14:41:39 UTC 2018 - alarrosa@suse.com diff --git a/python-aiohttp.spec b/python-aiohttp.spec index 8257e46..1f14cbf 100644 --- a/python-aiohttp.spec +++ b/python-aiohttp.spec @@ -20,7 +20,7 @@ %bcond_without test %define skip_python2 1 Name: python-aiohttp -Version: 3.0.1 +Version: 3.1.0 Release: 0 Summary: Asynchronous HTTP client/server framework License: Apache-2.0 @@ -34,6 +34,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros # SECTION test requirements %if %{with test} +BuildRequires: %{python_module async_generator} BuildRequires: %{python_module async_timeout >= 2.0.0} BuildRequires: %{python_module chardet} BuildRequires: %{python_module gunicorn} @@ -52,11 +53,13 @@ BuildRequires: python3-Pygments >= 2.1 BuildRequires: python3-Sphinx BuildRequires: python3-aiohttp-theme BuildRequires: python3-sphinxcontrib-asyncio +BuildRequires: python3-sphinxcontrib-blockdiag BuildRequires: python3-sphinxcontrib-newsfeed # /SECTION BuildRequires: fdupes Requires: python >= 3.4.2 Requires: python-async_timeout >= 2.0.0 +Requires: python-attrs Requires: python-chardet Requires: python-idna_ssl >= 1.0.0 Requires: python-multidict >= 3.3.0