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.5.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/26da0c02d541
branches:  trunk
changeset: 327234:26da0c02d541
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Dec 22 22:45:47 2018 +0000

description:
py-aiohttp: updated to 3.5.0

3.5.0 (2018-12-22)

Features

The library type annotations are checked in strict mode now.
Add support for setting cookies for individual request
Application.add_domain implementation
The default app in the request returned by test_utils.make_mocked_request can now have objects assigned to it and retrieved using the [] operator.
Make request.url accessible when transport is closed.
Add zlib_executor_size argument to Response constructor to allow compression to run in a background executor to avoid blocking the main thread and potentially triggering health check failures.
Enable users to set ClientTimeout in aiohttp.request
Don?t raise a warning if NETRC environment variable is not set and ~/.netrc file doesn?t exist.
Add default logging handler to web.run_app
If the Application.debug flag is set and the default logger aiohttp.access is used, access logs will now be output using a stderr StreamHandler if no handlers are attached. Furthermore, if the 
default logger has no log level set, the log level will be set to DEBUG.
Add method argument to session.ws_connect().
Sometimes server API requires a different HTTP method for WebSocket connection establishment.
For example, Docker exec needs POST.
Create a task per request handling.


Bugfixes

Enable passing access_log_class via handler_args
Return empty bytes with end-of-chunk marker in empty stream reader.
Accept CIMultiDictProxy instances for headers argument in web.Response constructor.
Don?t uppercase HTTP method in parser
Make method match regexp RFC-7230 compliant
Add app.pre_frozen state to properly handle startup signals in sub-applications.
Enhanced parsing and validation of helpers.BasicAuth.decode.
Change imports from collections module in preparation for 3.8.
Ensure Host header is added first to ClientRequest to better replicate browser
Fix forward compatibility with Python 3.8: importing ABCs directly from the collections module will not be supported anymore.
Keep the query string by normalize_path_middleware.
Fix missing parameter raise_for_status for aiohttp.request()
Bracket IPv6 addresses in the HOST header
Fix default message for server ping and pong frames.
Fix tests/test_connector.py typo and tests/autobahn/server.py duplicate loop def.
Fix false-negative indicator end_of_HTTP_chunk in StreamReader.readchunk function
Release HTTP response before raising status exception
Fix task cancellation when sendfile() syscall is used by static file handling.
Fix stack trace for asyncio.TimeoutError which was not logged, when it is caught in the handler.


Improved Documentation

Improve documentation of Application.make_handler parameters.
Fix BaseRequest.raw_headers doc.
Fix typo in TypeError exception reason in web.Application._handle
Make server access log format placeholder %b documentation reflect behavior and docstring.
Deprecations and Removals
Deprecate modification of session.requote_redirect_url
Deprecate stream.unread_data()
Deprecated use of boolean in resp.enable_compression()
Encourage creation of aiohttp public objects inside a coroutine
Drop dead Connection.detach() and Connection.writer. Both methods were broken for more than 2 years.
Deprecate app.loop, request.loop, client.loop and connector.loop properties.
Deprecate explicit debug argument. Use asyncio debug mode instead.
Deprecate body parameter in HTTPException (and derived classes) constructor.
Deprecate bare connector close, use async with connector: and await connector.close() instead.
Deprecate obsolete read_timeout and conn_timeout in ClientSession constructor.

diffstat:

 www/py-aiohttp/Makefile |   6 ++++--
 www/py-aiohttp/PLIST    |   5 ++++-
 www/py-aiohttp/distinfo |  10 +++++-----
 3 files changed, 13 insertions(+), 8 deletions(-)

diffs (56 lines):

diff -r fdbebbfb8edb -r 26da0c02d541 www/py-aiohttp/Makefile
--- a/www/py-aiohttp/Makefile   Sat Dec 22 21:54:00 2018 +0000
+++ b/www/py-aiohttp/Makefile   Sat Dec 22 22:45:47 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.32 2018/09/06 13:53:16 adam Exp $
+# $NetBSD: Makefile,v 1.33 2018/12/22 22:45:47 adam Exp $
 
-DISTNAME=      aiohttp-3.4.4
+DISTNAME=      aiohttp-3.5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/aiohttp/}
@@ -25,7 +25,9 @@
 .include "../../lang/python/pyversion.mk"
 .if ${_PYTHON_VERSION} != 37
 DEPENDS+=      ${PYPKGPREFIX}-idna-ssl>=1.0:../../www/py-idna_ssl
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=3.6.5:../../devel/py-typing-extensions
 .endif
 
+.include "../../devel/py-cython/buildlink3.mk"
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r fdbebbfb8edb -r 26da0c02d541 www/py-aiohttp/PLIST
--- a/www/py-aiohttp/PLIST      Sat Dec 22 21:54:00 2018 +0000
+++ b/www/py-aiohttp/PLIST      Sat Dec 22 22:45:47 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2018/08/27 11:16:01 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2018/12/22 22:45:47 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -136,6 +136,9 @@
 ${PYSITELIB}/aiohttp/web_fileresponse.py
 ${PYSITELIB}/aiohttp/web_fileresponse.pyc
 ${PYSITELIB}/aiohttp/web_fileresponse.pyo
+${PYSITELIB}/aiohttp/web_log.py
+${PYSITELIB}/aiohttp/web_log.pyc
+${PYSITELIB}/aiohttp/web_log.pyo
 ${PYSITELIB}/aiohttp/web_middlewares.py
 ${PYSITELIB}/aiohttp/web_middlewares.pyc
 ${PYSITELIB}/aiohttp/web_middlewares.pyo
diff -r fdbebbfb8edb -r 26da0c02d541 www/py-aiohttp/distinfo
--- a/www/py-aiohttp/distinfo   Sat Dec 22 21:54:00 2018 +0000
+++ b/www/py-aiohttp/distinfo   Sat Dec 22 22:45:47 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.31 2018/09/06 13:53:16 adam Exp $
+$NetBSD: distinfo,v 1.32 2018/12/22 22:45:47 adam Exp $
 
-SHA1 (aiohttp-3.4.4.tar.gz) = 2bbd318b32e46129eb8a79cb84f2017b8beac629
-RMD160 (aiohttp-3.4.4.tar.gz) = 895f522e176e08f39f172ef636325362dd3a1e78
-SHA512 (aiohttp-3.4.4.tar.gz) = 968b701b8a19aa445a4af402f4bb38754565e3b80b4248127e5017671c921c370eea63fcec4148b7229ac1a74bb8739f33513abd6cb7fe02f3feddfd3ec1a6b1
-Size (aiohttp-3.4.4.tar.gz) = 822110 bytes
+SHA1 (aiohttp-3.5.0.tar.gz) = e7032e77f34a9cafe17968c359db5c523acd37b2
+RMD160 (aiohttp-3.5.0.tar.gz) = 76b9fc1b90f796f36a61fde18a9c5af5f6d81c31
+SHA512 (aiohttp-3.5.0.tar.gz) = adb3c7e409c38d8efd08e41c9ffa0ca4808f08a7e6ee0733822c6d97149f08a1f6d5af787222c6a484dd694357bffe3a6185a19a27f0f9583ee9912704b092c7
+Size (aiohttp-3.5.0.tar.gz) = 1094149 bytes



Home | Main Index | Thread Index | Old Index