From 1b53b77bf1f75c573ceb296a846417df07e352ec446cd59e99533eaaa4a6b55c Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Fri, 23 Mar 2018 16:04:53 +0000 Subject: [PATCH 1/3] - 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 From 85415f03836db68534806a8beaa369f676c680c180edd298298e28f304d28220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 14 Apr 2018 06:45:33 +0000 Subject: [PATCH 2/3] Accepting request 596407 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/596407 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=18 --- aiohttp-3.1.0.tar.gz | 3 --- aiohttp-3.1.2.tar.gz | 3 +++ python-aiohttp.changes | 14 ++++++++++++++ python-aiohttp.spec | 37 ++++++++++++++++++------------------- 4 files changed, 35 insertions(+), 22 deletions(-) delete mode 100644 aiohttp-3.1.0.tar.gz create mode 100644 aiohttp-3.1.2.tar.gz diff --git a/aiohttp-3.1.0.tar.gz b/aiohttp-3.1.0.tar.gz deleted file mode 100644 index 9d84920..0000000 --- a/aiohttp-3.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:44373fee917bafe243aed7e4831eface7fa10dd54f7205f091d22c3bc6ae95e9 -size 750257 diff --git a/aiohttp-3.1.2.tar.gz b/aiohttp-3.1.2.tar.gz new file mode 100644 index 0000000..a6b1815 --- /dev/null +++ b/aiohttp-3.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df49fe4452a942e0031174c78917f9926d122d4603bf56bae4591639f2a3dc6a +size 752744 diff --git a/python-aiohttp.changes b/python-aiohttp.changes index fb3fae5..891575b 100644 --- a/python-aiohttp.changes +++ b/python-aiohttp.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Apr 12 20:47:59 UTC 2018 - arun@gmx.de + +- update to version 3.1.2: + * Make LineTooLong exception more detailed about actual data size + (#2863) + * Call on_chunk_sent when write_eof takes as a param the last chunk + (#2909) + +- changes from version 3.1.1: + * Support asynchronous iterators (and asynchronous generators as + well) in both client and server API as request / response BODY + payloads. (#2802) + ------------------------------------------------------------------- Fri Mar 23 15:16:21 UTC 2018 - tbechtold@suse.com diff --git a/python-aiohttp.spec b/python-aiohttp.spec index 1f14cbf..5cc42a7 100644 --- a/python-aiohttp.spec +++ b/python-aiohttp.spec @@ -17,10 +17,10 @@ %{?!python_module:%define python_module() python3-%{**}} -%bcond_without test %define skip_python2 1 +%bcond_without test Name: python-aiohttp -Version: 3.1.0 +Version: 3.1.2 Release: 0 Summary: Asynchronous HTTP client/server framework License: Apache-2.0 @@ -31,7 +31,18 @@ Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp Patch0: remove-failing-tests-due-to-pytest-timeout-issues.patch BuildRequires: %{python_module devel >= 3.4.2} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +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 +Requires: python-yarl >= 0.13.0 +Recommends: python-aiodns +Recommends: python-cChardet +Suggests: %{name}-doc # SECTION test requirements %if %{with test} BuildRequires: %{python_module async_generator} @@ -56,22 +67,10 @@ 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 -Requires: python-yarl >= 0.13.0 -Recommends: python-cChardet -Recommends: python-aiodns -Suggests: %{name}-doc - %python_subpackages %package -n %{name}-doc -Summary: Documentation files for %name +Summary: Documentation files for %{name} Group: Documentation/HTML %description @@ -82,7 +81,7 @@ Asynchronous HTTP client/server framework for Python. - Web-server has middleware and pluggable routing. %description -n %{name}-doc -HTML documentation on the API and examples for %name. +HTML documentation on the API and examples for %{name}. %prep %setup -q -n aiohttp-%{version} @@ -92,7 +91,7 @@ HTML documentation on the API and examples for %name. export CFLAGS="%{optflags}" %python_build pushd docs -make html +make %{?_smp_mflags} html rm _build/html/.buildinfo popd @@ -109,8 +108,8 @@ rm tests/test_pytest_plugin.py %endif %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES.rst CONTRIBUTORS.txt HISTORY.rst LICENSE.txt README.rst +%license LICENSE.txt +%doc CHANGES.rst CONTRIBUTORS.txt HISTORY.rst README.rst %{python_sitearch}/* %files -n %{name}-doc From 6abce17e9adf664294904b3108dadd54f03f20562d5553097d7288143bf7921a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 14 Apr 2018 19:19:47 +0000 Subject: [PATCH 3/3] Accepting request 596547 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/596547 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=19 --- aiohttp-3.1.2.tar.gz | 3 --- aiohttp-3.1.3.tar.gz | 3 +++ python-aiohttp.changes | 6 ++++++ python-aiohttp.spec | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 aiohttp-3.1.2.tar.gz create mode 100644 aiohttp-3.1.3.tar.gz diff --git a/aiohttp-3.1.2.tar.gz b/aiohttp-3.1.2.tar.gz deleted file mode 100644 index a6b1815..0000000 --- a/aiohttp-3.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:df49fe4452a942e0031174c78917f9926d122d4603bf56bae4591639f2a3dc6a -size 752744 diff --git a/aiohttp-3.1.3.tar.gz b/aiohttp-3.1.3.tar.gz new file mode 100644 index 0000000..fd986bf --- /dev/null +++ b/aiohttp-3.1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fcef0489e3335b200d31a9c1fb6ba80fdafe14cd82b971168c2f9fa1e4508ad +size 756886 diff --git a/python-aiohttp.changes b/python-aiohttp.changes index 891575b..dad29b6 100644 --- a/python-aiohttp.changes +++ b/python-aiohttp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Apr 14 17:22:15 UTC 2018 - arun@gmx.de + +- update to version 3.1.3: + * Fix cancellation broadcast during DNS resolve (#2910) + ------------------------------------------------------------------- Thu Apr 12 20:47:59 UTC 2018 - arun@gmx.de diff --git a/python-aiohttp.spec b/python-aiohttp.spec index 5cc42a7..a670627 100644 --- a/python-aiohttp.spec +++ b/python-aiohttp.spec @@ -20,12 +20,12 @@ %define skip_python2 1 %bcond_without test Name: python-aiohttp -Version: 3.1.2 +Version: 3.1.3 Release: 0 Summary: Asynchronous HTTP client/server framework License: Apache-2.0 Group: Development/Languages/Python -Url: https://aiohttp.readthedocs.io/ +URL: https://aiohttp.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz # PATCH-FIX-OPENSUSE alarrosa@suse.com -- Fix failing tests due to issue in pytest-timeout Patch0: remove-failing-tests-due-to-pytest-timeout-issues.patch