pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-aiohttp py-aiohttp: updated to 3.1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2ea15d5dc086
branches:  trunk
changeset: 377779:2ea15d5dc086
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Mar 22 08:02:35 2018 +0000

description:
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.

diffstat:

 www/py-aiohttp/Makefile |  10 +++++-----
 www/py-aiohttp/distinfo |  10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (40 lines):

diff -r 1b54d6e4fd7b -r 2ea15d5dc086 www/py-aiohttp/Makefile
--- a/www/py-aiohttp/Makefile   Thu Mar 22 07:56:35 2018 +0000
+++ b/www/py-aiohttp/Makefile   Thu Mar 22 08:02:35 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2018/03/15 09:29:09 adam Exp $
+# $NetBSD: Makefile,v 1.21 2018/03/22 08:02:35 adam Exp $
 
-DISTNAME=      aiohttp-3.0.9
+DISTNAME=      aiohttp-3.1.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/aiohttp/}
@@ -16,9 +16,9 @@
 DEPENDS+=      ${PYPKGPREFIX}-idna-ssl>=1.0:../../www/py-idna_ssl
 DEPENDS+=      ${PYPKGPREFIX}-multidict>=4.0:../../databases/py-multidict
 DEPENDS+=      ${PYPKGPREFIX}-yarl>=1.0:../../www/py-yarl
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-gunicorn-[0-9]*:../../www/py-gunicorn
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-timeout-[0-9]*:../../devel/py-test-timeout
+TEST_DEPENDS+= ${PYPKGPREFIX}-gunicorn-[0-9]*:../../www/py-gunicorn
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout-[0-9]*:../../devel/py-test-timeout
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27 34
 
diff -r 1b54d6e4fd7b -r 2ea15d5dc086 www/py-aiohttp/distinfo
--- a/www/py-aiohttp/distinfo   Thu Mar 22 07:56:35 2018 +0000
+++ b/www/py-aiohttp/distinfo   Thu Mar 22 08:02:35 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.20 2018/03/15 09:29:09 adam Exp $
+$NetBSD: distinfo,v 1.21 2018/03/22 08:02:35 adam Exp $
 
-SHA1 (aiohttp-3.0.9.tar.gz) = 66b544540b177c8dbbae461081d74b9502922200
-RMD160 (aiohttp-3.0.9.tar.gz) = c0a37a4d45c5a2cbc3b02d95df02b9b1089fd8af
-SHA512 (aiohttp-3.0.9.tar.gz) = a079aaa6bc3a74fe94df8843ab1b0e98a7e439ac5b1cc9b8344c0db00a71cb30b2e79045ea58b77adfeb7357975411eb3008ed1df92fec11f7b824fe171e42c5
-Size (aiohttp-3.0.9.tar.gz) = 738910 bytes
+SHA1 (aiohttp-3.1.0.tar.gz) = 1a3d6f07683a6f6e7cac5d570bcfd0315519bec8
+RMD160 (aiohttp-3.1.0.tar.gz) = 1ef1f49a8b73f5c3bc909556edb1fad8f410916d
+SHA512 (aiohttp-3.1.0.tar.gz) = bb3d7ec0cf2bbbfd0121274c2f0a56e93fbb1583918038e247baea5ab03f864939107edd413f780ee33c63270c40ff83ba9ab8f4702745a7519a5301c0541bbb
+Size (aiohttp-3.1.0.tar.gz) = 750257 bytes



Home | Main Index | Thread Index | Old Index