py-aiohttp: update to 2.3.0

2.3.0:
Features
--------
Add SSL related params to ClientSession.request
Make enable_compression work on HTTP/1.0
Deprecate registering synchronous web handlers
Switch to multidict 3.0. All HTTP headers preserve casing now but compared in case-insensitive way.
Improvement for normalize_path_middleware. Added possibility to handle URLs with query string.
Use towncrier for CHANGES.txt build
Implement trust_env=True param in ClientSession.
Added variable to customize proxy headers
Implement router.add_routes and router decorators.
Deprecated BaseRequest.has_body in favor of BaseRequest.can_read_body Added BaseRequest.body_exists attribute that stays static for the lifetime of the request
Provide BaseRequest.loop attribute
Make _CoroGuard awaitable and fix ClientSession.close warning message
Responses to redirects without Location header are returned instead of raising a RuntimeError
Added get_client, get_server, setUpAsync and tearDownAsync methods to AioHTTPTestCase
Add automatically a SafeChildWatcher to the test loop
add ability to disable automatic response decompression
Add support for throttling DNS request, avoiding the requests saturation when there is a miss in the DNS cache and many requests getting into the connector at the same time.
Use request for getting access log information instead of message/transport pair. Add RequestBase.remote property for accessing to IP of client initiated HTTP request.
json() raises a ContentTypeError exception if the content-type does not meet the requirements instead of raising a generic ClientResponseError.
Make the HTTP client able to return HTTP chunks when chunked transfer encoding is used.
add append_version arg into StaticResource.url and StaticResource.url_for methods for getting an url with hash (version) of the file.
Fix parsing the Forwarded header. * commas and semicolons are allowed inside quoted-strings; * empty forwarded-pairs (as in for=_1;;by=_2) are allowed; * non-standard parameters are allowed (although this alone could be easily done in the previous parser).
Don’t require ssl module to run. aiohttp does not require SSL to function. The code paths involved with SSL will only be hit upon SSL usage. Raise RuntimeError if HTTPS protocol is required but ssl module is not present.
Accept coroutine fixtures in pytest plugin
Call shutdown_asyncgens before event loop closing on Python 3.6.
Speed up Signals when there are no receivers
Raise InvalidURL instead of ValueError on fetches with invalid URL.
Move DummyCookieJar into cookiejar.py
run_app: Make print=None disable printing
Support brotli encoding (generic-purpose lossless compression algorithm)
Add server support for WebSockets Per-Message Deflate. Add client option to add deflate compress header in WebSockets request header. If calling ClientSession.ws_connect() with compress=15 the client will support deflate compress negotiation.
Support verify_ssl, fingerprint, ssl_context and proxy_headers by client.ws_connect.
Added aiohttp.ClientConnectorSSLError when connection fails due ssl.SSLError
aiohttp.web.Application.make_handler support access_log_class
Build HTTP parser extension in non-strict mode by default.

Bugfixes
--------
Clear auth information on redirecting to other domain
Fix missing app.loop on startup hooks during tests
Fix issue with synchronous session closing when using ClientSession as an asynchronous context manager.
Fix issue with CookieJar incorrectly expiring cookies in some edge cases.
Force use of IPv4 during test, this will make tests run in a Docker container
Warnings about unawaited coroutines now correctly point to the user’s code.
Fix issue with IndexError being raised by the StreamReader.iter_chunks() generator.
Support HTTP 308 Permanent redirect in client class.
Fix FileResponse sending empty chunked body on 304.
Do not add Content-Length: 0 to GET/HEAD/TRACE/OPTIONS requests by default.
Fix parsing the Forwarded header according to RFC 7239.
Securely determining remote/scheme/host
Fix header name parsing, if name is split into multiple lines
Handle session close during connection, KeyError: <aiohttp.connector._TransportPlaceholder>
Fixes uncaught TypeError in helpers.guess_filename if name is not a string
Raise OSError on async DNS lookup if resolved domain is an alias for another one, which does not have an A or CNAME record.
Fix incorrect warning in StreamReader.
Properly clone state of web request
Fix C HTTP parser for cases when status line is split into different TCP packets.
Fix web.FileResponse overriding user supplied Content-Type
This commit is contained in:
adam 2017-10-19 06:54:18 +00:00
parent 5de2eb9f53
commit 850fba954b
3 changed files with 14 additions and 12 deletions

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.3 2017/08/04 05:24:49 adam Exp $
# $NetBSD: Makefile,v 1.4 2017/10/19 06:54:18 adam Exp $
DISTNAME= aiohttp-2.2.5
DISTNAME= aiohttp-2.3.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/aiohttp/}
@ -11,10 +11,12 @@ COMMENT= Async http client/server framework
LICENSE= apache-2.0
DEPENDS+= ${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet
DEPENDS+= ${PYPKGPREFIX}-multidict>=2.1.4:../../databases/py-multidict
DEPENDS+= ${PYPKGPREFIX}-multidict>=3.0.0:../../databases/py-multidict
DEPENDS+= ${PYPKGPREFIX}-async-timeout>=1.2.0:../../devel/py-async-timeout
DEPENDS+= ${PYPKGPREFIX}-yarl>=0.11:../../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
PYTHON_VERSIONS_INCOMPATIBLE= 27

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.1 2017/07/16 19:04:16 adam Exp $
@comment $NetBSD: PLIST,v 1.2 2017/10/19 06:54:18 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@ -10,13 +10,10 @@ ${PYSITELIB}/aiohttp/__init__.pyo
${PYSITELIB}/aiohttp/_cparser.pxd
${PYSITELIB}/aiohttp/_frozenlist.c
${PYSITELIB}/aiohttp/_frozenlist.pyx
${PYSITELIB}/aiohttp/_frozenlist.so
${PYSITELIB}/aiohttp/_http_parser.c
${PYSITELIB}/aiohttp/_http_parser.pyx
${PYSITELIB}/aiohttp/_http_parser.so
${PYSITELIB}/aiohttp/_websocket.c
${PYSITELIB}/aiohttp/_websocket.pyx
${PYSITELIB}/aiohttp/_websocket.so
${PYSITELIB}/aiohttp/abc.py
${PYSITELIB}/aiohttp/abc.pyc
${PYSITELIB}/aiohttp/abc.pyo
@ -71,6 +68,9 @@ ${PYSITELIB}/aiohttp/http_websocket.pyo
${PYSITELIB}/aiohttp/http_writer.py
${PYSITELIB}/aiohttp/http_writer.pyc
${PYSITELIB}/aiohttp/http_writer.pyo
${PYSITELIB}/aiohttp/locks.py
${PYSITELIB}/aiohttp/locks.pyc
${PYSITELIB}/aiohttp/locks.pyo
${PYSITELIB}/aiohttp/log.py
${PYSITELIB}/aiohttp/log.pyc
${PYSITELIB}/aiohttp/log.pyo

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.3 2017/08/04 05:24:49 adam Exp $
$NetBSD: distinfo,v 1.4 2017/10/19 06:54:18 adam Exp $
SHA1 (aiohttp-2.2.5.tar.gz) = 33b0228daff5b6a4601a3ed822ffdfcd77242942
RMD160 (aiohttp-2.2.5.tar.gz) = ffe271d5669dbb8d03f73b89b86e9068c450f2d6
SHA512 (aiohttp-2.2.5.tar.gz) = 88a064de1f7f634b5ab9ac2accddcc227189be0357ed87891f8917e2660887504ff14543ba38edc565e007a52c56bb992e7363eac55f4b07369619358883cf66
Size (aiohttp-2.2.5.tar.gz) = 788626 bytes
SHA1 (aiohttp-2.3.0.tar.gz) = a59798c2abb7a806267259367c43de0f236ee9d5
RMD160 (aiohttp-2.3.0.tar.gz) = 8bc0d5d00476b5a19afc87d71bb4a4b1d20f3713
SHA512 (aiohttp-2.3.0.tar.gz) = d1869514c9d49b608f2e7faf52256ce0ce4fd2e4bb2eed19e45f9a7a1f8726ec8e99241cd143f2f87b79e5e7fb023be2eeb36ee93a2a2add351c536cc2345fae
Size (aiohttp-2.3.0.tar.gz) = 591916 bytes