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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0e00019b8a93
branches:  trunk
changeset: 384525:0e00019b8a93
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Aug 27 11:16:01 2018 +0000

description:
py-aiohttp: updated to 3.4.0

3.4.0:

Features
Add type hints
Add raise_for_status request parameter
Add type hints to HTTP client
Minor server optimizations
Preserve the cause when HTTPException is raised from another exception.
Add close_boundary option in MultipartWriter.write method. Support streaming
Added a remove_slash option to the normalize_path_middleware factory.
The class AbstractRouteDef is importable from aiohttp.web.

Bugfixes
Prevent double closing when client connection is released before the last data_received() callback.
Make redirect with normalize_path_middleware work when using url encoded paths.
Postpone web task creation to connection establishment.
Fix sock_read timeout.
When using a server-request body as the data= argument of a client request, iterate over the content with readany instead of readline to avoid Line too long errors.
fix UrlDispatcher has no attribute add_options, add web.options
correct filename in content-disposition with multipart body
Many HTTP proxies has buggy keepalive support. Let's not reuse connection but close it after processing every response.
raise 413 "Payload Too Large" rather than raising ValueError in request.post() Add helpful debug message to 413 responses
Fix StreamResponse equality, now that they are MutableMapping objects.
Fix server request objects comparison
Do not hang on 206 Partial Content response with Content-Encoding: gzip
Fix timeout precondition checkers

Improved Documentation
Add a new FAQ entry that clarifies that you should not reuse response objects in middleware functions.
Add FAQ section "Why is creating a ClientSession outside of an event loop dangerous?"
Fix link to Rambler
Fix TCPSite documentation on the Server Reference page.
Fix documentation build configuration file for Windows.
Remove no longer existing lingering_timeout parameter of Application.make_handler from documentation.
Mention that app.make_handler is deprecated, recommend to use runners API instead.

Deprecations and Removals
Drop loop.current_task() from helpers.current_task()
Drop reader parameter from request.multipart().

diffstat:

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

diffs (110 lines):

diff -r b15b94fd9bf5 -r 0e00019b8a93 www/py-aiohttp/Makefile
--- a/www/py-aiohttp/Makefile   Mon Aug 27 08:59:52 2018 +0000
+++ b/www/py-aiohttp/Makefile   Mon Aug 27 11:16:01 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2018/06/12 15:28:53 adam Exp $
+# $NetBSD: Makefile,v 1.28 2018/08/27 11:16:01 adam Exp $
 
-DISTNAME=      aiohttp-3.3.2
+DISTNAME=      aiohttp-3.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/aiohttp/}
@@ -10,10 +10,9 @@
 COMMENT=       Async http client/server framework
 LICENSE=       apache-2.0
 
-DEPENDS+=      ${PYPKGPREFIX}-async-timeout>=1.2.0:../../devel/py-async-timeout
+DEPENDS+=      ${PYPKGPREFIX}-async-timeout>=3.0:../../devel/py-async-timeout
 DEPENDS+=      ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs
 DEPENDS+=      ${PYPKGPREFIX}-chardet>=2.0:../../converters/py-chardet
-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
 TEST_DEPENDS+= ${PYPKGPREFIX}-async_generator-[0-9]*:../../devel/py-async_generator
@@ -21,6 +20,11 @@
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout-[0-9]*:../../devel/py-test-timeout
 
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} < 37
+DEPENDS+=      ${PYPKGPREFIX}-idna-ssl>=1.0:../../www/py-idna_ssl
+.endif
+
 PYTHON_VERSIONS_INCOMPATIBLE=  27 34
 
 .include "../../lang/python/egg.mk"
diff -r b15b94fd9bf5 -r 0e00019b8a93 www/py-aiohttp/PLIST
--- a/www/py-aiohttp/PLIST      Mon Aug 27 08:59:52 2018 +0000
+++ b/www/py-aiohttp/PLIST      Mon Aug 27 11:16:01 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2018/06/12 15:28:53 adam Exp $
+@comment $NetBSD: PLIST,v 1.7 2018/08/27 11:16:01 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -8,10 +8,15 @@
 ${PYSITELIB}/aiohttp/__init__.pyc
 ${PYSITELIB}/aiohttp/__init__.pyo
 ${PYSITELIB}/aiohttp/_cparser.pxd
+${PYSITELIB}/aiohttp/_find_header.c
+${PYSITELIB}/aiohttp/_find_header.h
+${PYSITELIB}/aiohttp/_find_header.pxd
 ${PYSITELIB}/aiohttp/_frozenlist.c
 ${PYSITELIB}/aiohttp/_frozenlist.pyx
 ${PYSITELIB}/aiohttp/_frozenlist.so
+${PYSITELIB}/aiohttp/_headers.pxi
 ${PYSITELIB}/aiohttp/_helpers.c
+${PYSITELIB}/aiohttp/_helpers.pyi
 ${PYSITELIB}/aiohttp/_helpers.pyx
 ${PYSITELIB}/aiohttp/_helpers.so
 ${PYSITELIB}/aiohttp/_http_parser.c
@@ -55,6 +60,7 @@
 ${PYSITELIB}/aiohttp/formdata.pyo
 ${PYSITELIB}/aiohttp/frozenlist.py
 ${PYSITELIB}/aiohttp/frozenlist.pyc
+${PYSITELIB}/aiohttp/frozenlist.pyi
 ${PYSITELIB}/aiohttp/frozenlist.pyo
 ${PYSITELIB}/aiohttp/hdrs.py
 ${PYSITELIB}/aiohttp/hdrs.pyc
@@ -92,6 +98,7 @@
 ${PYSITELIB}/aiohttp/payload_streamer.py
 ${PYSITELIB}/aiohttp/payload_streamer.pyc
 ${PYSITELIB}/aiohttp/payload_streamer.pyo
+${PYSITELIB}/aiohttp/py.typed
 ${PYSITELIB}/aiohttp/pytest_plugin.py
 ${PYSITELIB}/aiohttp/pytest_plugin.pyc
 ${PYSITELIB}/aiohttp/pytest_plugin.pyo
@@ -100,6 +107,7 @@
 ${PYSITELIB}/aiohttp/resolver.pyo
 ${PYSITELIB}/aiohttp/signals.py
 ${PYSITELIB}/aiohttp/signals.pyc
+${PYSITELIB}/aiohttp/signals.pyi
 ${PYSITELIB}/aiohttp/signals.pyo
 ${PYSITELIB}/aiohttp/streams.py
 ${PYSITELIB}/aiohttp/streams.pyc
@@ -113,6 +121,9 @@
 ${PYSITELIB}/aiohttp/tracing.py
 ${PYSITELIB}/aiohttp/tracing.pyc
 ${PYSITELIB}/aiohttp/tracing.pyo
+${PYSITELIB}/aiohttp/typedefs.py
+${PYSITELIB}/aiohttp/typedefs.pyc
+${PYSITELIB}/aiohttp/typedefs.pyo
 ${PYSITELIB}/aiohttp/web.py
 ${PYSITELIB}/aiohttp/web.pyc
 ${PYSITELIB}/aiohttp/web.pyo
diff -r b15b94fd9bf5 -r 0e00019b8a93 www/py-aiohttp/distinfo
--- a/www/py-aiohttp/distinfo   Mon Aug 27 08:59:52 2018 +0000
+++ b/www/py-aiohttp/distinfo   Mon Aug 27 11:16:01 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.27 2018/06/12 15:28:53 adam Exp $
+$NetBSD: distinfo,v 1.28 2018/08/27 11:16:01 adam Exp $
 
-SHA1 (aiohttp-3.3.2.tar.gz) = eb637c34b14437bb41a81b47645b164972cb52db
-RMD160 (aiohttp-3.3.2.tar.gz) = bd2de873cd93a99aacf73280c2bab4130235b8ee
-SHA512 (aiohttp-3.3.2.tar.gz) = abc031b5cd96c59886913582e7226f3c7b9ce4101d11d380f732d16776b990082b18b0c5f91bc098f17f72cbadcf499dfa93069323a8668755c1ce5d06f37f1e
-Size (aiohttp-3.3.2.tar.gz) = 771414 bytes
+SHA1 (aiohttp-3.4.0.tar.gz) = c85bba68a5fe4fc7e3969420aaf6eafea09d2a04
+RMD160 (aiohttp-3.4.0.tar.gz) = 0ab24964f5b93e5a9aee8fcadb80d2f967046d93
+SHA512 (aiohttp-3.4.0.tar.gz) = 34d5a9c29feca5654c94c4526c26a122c7dfcd3983ccfce746d4cd993f320f19e548f95f88304eb87468d5fbba24b674ae2fcea33170fb6298e9a2c803b54277
+Size (aiohttp-3.4.0.tar.gz) = 821067 bytes



Home | Main Index | Thread Index | Old Index