Thu Mar 22 08:02:35 2018 UTC ()
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.


(adam)
diff -r1.20 -r1.21 pkgsrc/www/py-aiohttp/Makefile
diff -r1.20 -r1.21 pkgsrc/www/py-aiohttp/distinfo

cvs diff -r1.20 -r1.21 pkgsrc/www/py-aiohttp/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-aiohttp/Makefile 2018/03/15 09:29:09 1.20
+++ pkgsrc/www/py-aiohttp/Makefile 2018/03/22 08:02:35 1.21
@@ -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
3DISTNAME= aiohttp-3.0.9 3DISTNAME= aiohttp-3.1.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= www python 5CATEGORIES= www python
6MASTER_SITES= ${MASTER_SITE_PYPI:=a/aiohttp/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=a/aiohttp/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/aio-libs/aiohttp 9HOMEPAGE= https://github.com/aio-libs/aiohttp
10COMMENT= Async http client/server framework 10COMMENT= Async http client/server framework
11LICENSE= apache-2.0 11LICENSE= apache-2.0
12 12
13DEPENDS+= ${PYPKGPREFIX}-async-timeout>=1.2.0:../../devel/py-async-timeout 13DEPENDS+= ${PYPKGPREFIX}-async-timeout>=1.2.0:../../devel/py-async-timeout
14DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs 14DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs
15DEPENDS+= ${PYPKGPREFIX}-chardet>=2.0:../../converters/py-chardet 15DEPENDS+= ${PYPKGPREFIX}-chardet>=2.0:../../converters/py-chardet
16DEPENDS+= ${PYPKGPREFIX}-idna-ssl>=1.0:../../www/py-idna_ssl 16DEPENDS+= ${PYPKGPREFIX}-idna-ssl>=1.0:../../www/py-idna_ssl
17DEPENDS+= ${PYPKGPREFIX}-multidict>=4.0:../../databases/py-multidict 17DEPENDS+= ${PYPKGPREFIX}-multidict>=4.0:../../databases/py-multidict
18DEPENDS+= ${PYPKGPREFIX}-yarl>=1.0:../../www/py-yarl 18DEPENDS+= ${PYPKGPREFIX}-yarl>=1.0:../../www/py-yarl
19BUILD_DEPENDS+= ${PYPKGPREFIX}-gunicorn-[0-9]*:../../www/py-gunicorn 19TEST_DEPENDS+= ${PYPKGPREFIX}-gunicorn-[0-9]*:../../www/py-gunicorn
20BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test 20TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
21BUILD_DEPENDS+= ${PYPKGPREFIX}-test-timeout-[0-9]*:../../devel/py-test-timeout 21TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout-[0-9]*:../../devel/py-test-timeout
22 22
23PYTHON_VERSIONS_INCOMPATIBLE= 27 34 23PYTHON_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"

cvs diff -r1.20 -r1.21 pkgsrc/www/py-aiohttp/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-aiohttp/distinfo 2018/03/15 09:29:09 1.20
+++ pkgsrc/www/py-aiohttp/distinfo 2018/03/22 08:02:35 1.21
@@ -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
3SHA1 (aiohttp-3.0.9.tar.gz) = 66b544540b177c8dbbae461081d74b9502922200 3SHA1 (aiohttp-3.1.0.tar.gz) = 1a3d6f07683a6f6e7cac5d570bcfd0315519bec8
4RMD160 (aiohttp-3.0.9.tar.gz) = c0a37a4d45c5a2cbc3b02d95df02b9b1089fd8af 4RMD160 (aiohttp-3.1.0.tar.gz) = 1ef1f49a8b73f5c3bc909556edb1fad8f410916d
5SHA512 (aiohttp-3.0.9.tar.gz) = a079aaa6bc3a74fe94df8843ab1b0e98a7e439ac5b1cc9b8344c0db00a71cb30b2e79045ea58b77adfeb7357975411eb3008ed1df92fec11f7b824fe171e42c5 5SHA512 (aiohttp-3.1.0.tar.gz) = bb3d7ec0cf2bbbfd0121274c2f0a56e93fbb1583918038e247baea5ab03f864939107edd413f780ee33c63270c40ff83ba9ab8f4702745a7519a5301c0541bbb
6Size (aiohttp-3.0.9.tar.gz) = 738910 bytes 6Size (aiohttp-3.1.0.tar.gz) = 750257 bytes