py-aiohttp: updated to 3.1.0 3.1.0: Features - Relax JSON content-type checking in the ClientResponse.json() to allow "application/xxx+json" instead of strict "application/json". - Bump C HTTP parser to version 2.8 - Accept a coroutine as an application factory in web.run_app and gunicorn worker. - Implement application cleanup context - Make writer.write_headers a coroutine. - Add tracking signals for getting request/response bodies. - Deprecate ClientResponseError.code in favor of .status to keep similarity with response classes. - Implement app.add_routes() method. - Implement web.static() and RouteTableDef.static() API. - 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. - Refactor ClientResponse constructor: make logically required constructor arguments mandatory, drop _post_init() method. - Use app.add_routes() in server docs everywhere - Websockets refactoring, all websocket writer methods are converted into coroutines. - Provide Content-Range header for Range requests Bugfixes - Fix websocket client return EofStream. - Fix websocket demo. - 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 - Close a connection if an unexpected exception occurs while sending a request - Fix firing DNS tracing events. Improved Documentation - Change ClientResponse.json() documentation to reflect that it now allows "application/xxx+json" content-types - Document behavior when cchardet detects encodings that are unknown to Python. - Add diagrams for tracing request life style. - Drop removed functionality for passing StreamReader as data at client side.diff -r1.20 -r1.21 pkgsrc/www/py-aiohttp/Makefile
(adam)
@@ -1,26 +1,26 @@ | @@ -1,26 +1,26 @@ | |||
1 | # $NetBSD: Makefile,v 1.20 2018/03/15 09:29:09 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.21 2018/03/22 08:02:35 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= aiohttp-3.0.9 | 3 | DISTNAME= aiohttp-3.1.0 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= www python | 5 | CATEGORIES= www python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=a/aiohttp/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=a/aiohttp/} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://github.com/aio-libs/aiohttp | 9 | HOMEPAGE= https://github.com/aio-libs/aiohttp | |
10 | COMMENT= Async http client/server framework | 10 | COMMENT= Async http client/server framework | |
11 | LICENSE= apache-2.0 | 11 | LICENSE= apache-2.0 | |
12 | 12 | |||
13 | DEPENDS+= ${PYPKGPREFIX}-async-timeout>=1.2.0:../../devel/py-async-timeout | 13 | DEPENDS+= ${PYPKGPREFIX}-async-timeout>=1.2.0:../../devel/py-async-timeout | |
14 | DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs | 14 | DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs | |
15 | DEPENDS+= ${PYPKGPREFIX}-chardet>=2.0:../../converters/py-chardet | 15 | DEPENDS+= ${PYPKGPREFIX}-chardet>=2.0:../../converters/py-chardet | |
16 | DEPENDS+= ${PYPKGPREFIX}-idna-ssl>=1.0:../../www/py-idna_ssl | 16 | DEPENDS+= ${PYPKGPREFIX}-idna-ssl>=1.0:../../www/py-idna_ssl | |
17 | DEPENDS+= ${PYPKGPREFIX}-multidict>=4.0:../../databases/py-multidict | 17 | DEPENDS+= ${PYPKGPREFIX}-multidict>=4.0:../../databases/py-multidict | |
18 | DEPENDS+= ${PYPKGPREFIX}-yarl>=1.0:../../www/py-yarl | 18 | DEPENDS+= ${PYPKGPREFIX}-yarl>=1.0:../../www/py-yarl | |
19 | BUILD_DEPENDS+= ${PYPKGPREFIX}-gunicorn-[0-9]*:../../www/py-gunicorn | 19 | TEST_DEPENDS+= ${PYPKGPREFIX}-gunicorn-[0-9]*:../../www/py-gunicorn | |
20 | BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test | 20 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test | |
21 | BUILD_DEPENDS+= ${PYPKGPREFIX}-test-timeout-[0-9]*:../../devel/py-test-timeout | 21 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout-[0-9]*:../../devel/py-test-timeout | |
22 | 22 | |||
23 | PYTHON_VERSIONS_INCOMPATIBLE= 27 34 | 23 | PYTHON_VERSIONS_INCOMPATIBLE= 27 34 | |
24 | 24 | |||
25 | .include "../../lang/python/egg.mk" | 25 | .include "../../lang/python/egg.mk" | |
26 | .include "../../mk/bsd.pkg.mk" | 26 | .include "../../mk/bsd.pkg.mk" |
@@ -1,6 +1,6 @@ | @@ -1,6 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.20 2018/03/15 09:29:09 adam Exp $ | 1 | $NetBSD: distinfo,v 1.21 2018/03/22 08:02:35 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (aiohttp-3.0.9.tar.gz) = 66b544540b177c8dbbae461081d74b9502922200 | 3 | SHA1 (aiohttp-3.1.0.tar.gz) = 1a3d6f07683a6f6e7cac5d570bcfd0315519bec8 | |
4 | RMD160 (aiohttp-3.0.9.tar.gz) = c0a37a4d45c5a2cbc3b02d95df02b9b1089fd8af | 4 | RMD160 (aiohttp-3.1.0.tar.gz) = 1ef1f49a8b73f5c3bc909556edb1fad8f410916d | |
5 | SHA512 (aiohttp-3.0.9.tar.gz) = a079aaa6bc3a74fe94df8843ab1b0e98a7e439ac5b1cc9b8344c0db00a71cb30b2e79045ea58b77adfeb7357975411eb3008ed1df92fec11f7b824fe171e42c5 | 5 | SHA512 (aiohttp-3.1.0.tar.gz) = bb3d7ec0cf2bbbfd0121274c2f0a56e93fbb1583918038e247baea5ab03f864939107edd413f780ee33c63270c40ff83ba9ab8f4702745a7519a5301c0541bbb | |
6 | Size (aiohttp-3.0.9.tar.gz) = 738910 bytes | 6 | Size (aiohttp-3.1.0.tar.gz) = 750257 bytes |