From 0322c27843b2737b0a614a2580a6cf8088ddc909 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Sat, 24 Oct 2020 10:49:18 +0300 Subject: [PATCH] Bump to 3.7.0 --- CHANGES.rst | 168 +++++++++++++++++++++++++++++++++++++ CHANGES/1958.feature | 1 - CHANGES/2571.feature | 1 - CHANGES/2856.misc | 1 - CHANGES/3296.bugfix | 10 --- CHANGES/3376.doc | 1 - CHANGES/3380.bugfix | 1 - CHANGES/3512.doc | 1 - CHANGES/3557.feature | 1 - CHANGES/3805.bugfix | 1 - CHANGES/3866.feature | 3 - CHANGES/3882.feature | 1 - CHANGES/4062.bugfix | 1 - CHANGES/4080.feature | 1 - CHANGES/4089.bugfix | 1 - CHANGES/4174.bugfix | 1 - CHANGES/4175.bugfix | 1 - CHANGES/4189.feature | 1 - CHANGES/4191.feature | 1 - CHANGES/4201.doc | 1 - CHANGES/4204.doc | 1 - CHANGES/4214.bugfix | 1 - CHANGES/4218.misc | 1 - CHANGES/4224.feature | 1 - CHANGES/4250.misc | 1 - CHANGES/4269.feature | 1 - CHANGES/4270.doc | 1 - CHANGES/4272.doc | 1 - CHANGES/4282.bugfix | 1 - CHANGES/4285.doc | 1 - CHANGES/4312.doc | 1 - CHANGES/4314.doc | 1 - CHANGES/4345.bugfix | 1 - CHANGES/4393.feature | 1 - CHANGES/4402.feature | 1 - CHANGES/4408.bugfix | 1 - CHANGES/4453.feature | 1 - CHANGES/4506.bugfix | 1 - CHANGES/4513.feature | 1 - CHANGES/4515.bugfix | 1 - CHANGES/4528.bugfix | 1 - CHANGES/4554.bugfix | 1 - CHANGES/4562.bugfix | 1 - CHANGES/4587.bugfix | 10 --- CHANGES/4630.bugfix | 1 - CHANGES/4674.feature | 1 - CHANGES/4691.bugfix | 1 - CHANGES/4711.feature | 1 - CHANGES/4736.bugfix | 2 - CHANGES/4795.bugfix | 1 - CHANGES/4798.bugfix | 1 - CHANGES/4809.bugfix | 1 - CHANGES/4810.doc | 1 - CHANGES/4850.feature | 1 - CHANGES/4890.bugfix | 1 - CHANGES/4894.feature | 1 - CHANGES/4897.bugfix | 1 - CHANGES/4912.bugfix | 1 - CHANGES/4931.bugfix | 1 - CHANGES/4936.bugfix | 1 - CHANGES/4938.bugfix | 1 - CHANGES/4972.bugfix | 1 - CHANGES/4986.doc | 1 - CHANGES/5012.bugfix | 1 - CHANGES/5070.feature | 1 - CHANGES/5084.doc | 1 - CHANGES/5086.bugfix | 1 - CHANGES/5098.bugfix | 2 - aiohttp/__init__.py | 2 +- docs/spelling_wordlist.txt | 2 + 70 files changed, 171 insertions(+), 90 deletions(-) delete mode 100644 CHANGES/1958.feature delete mode 100644 CHANGES/2571.feature delete mode 100644 CHANGES/2856.misc delete mode 100644 CHANGES/3296.bugfix delete mode 100644 CHANGES/3376.doc delete mode 100644 CHANGES/3380.bugfix delete mode 100644 CHANGES/3512.doc delete mode 100644 CHANGES/3557.feature delete mode 100644 CHANGES/3805.bugfix delete mode 100644 CHANGES/3866.feature delete mode 100644 CHANGES/3882.feature delete mode 100644 CHANGES/4062.bugfix delete mode 100644 CHANGES/4080.feature delete mode 100644 CHANGES/4089.bugfix delete mode 100644 CHANGES/4174.bugfix delete mode 100644 CHANGES/4175.bugfix delete mode 100644 CHANGES/4189.feature delete mode 100644 CHANGES/4191.feature delete mode 100644 CHANGES/4201.doc delete mode 100644 CHANGES/4204.doc delete mode 100644 CHANGES/4214.bugfix delete mode 100644 CHANGES/4218.misc delete mode 100644 CHANGES/4224.feature delete mode 100644 CHANGES/4250.misc delete mode 100644 CHANGES/4269.feature delete mode 100644 CHANGES/4270.doc delete mode 100644 CHANGES/4272.doc delete mode 100644 CHANGES/4282.bugfix delete mode 100644 CHANGES/4285.doc delete mode 100644 CHANGES/4312.doc delete mode 100644 CHANGES/4314.doc delete mode 100644 CHANGES/4345.bugfix delete mode 100644 CHANGES/4393.feature delete mode 100644 CHANGES/4402.feature delete mode 100644 CHANGES/4408.bugfix delete mode 100644 CHANGES/4453.feature delete mode 100644 CHANGES/4506.bugfix delete mode 100644 CHANGES/4513.feature delete mode 100644 CHANGES/4515.bugfix delete mode 100644 CHANGES/4528.bugfix delete mode 100644 CHANGES/4554.bugfix delete mode 100644 CHANGES/4562.bugfix delete mode 100644 CHANGES/4587.bugfix delete mode 100644 CHANGES/4630.bugfix delete mode 100644 CHANGES/4674.feature delete mode 100644 CHANGES/4691.bugfix delete mode 100644 CHANGES/4711.feature delete mode 100644 CHANGES/4736.bugfix delete mode 100644 CHANGES/4795.bugfix delete mode 100644 CHANGES/4798.bugfix delete mode 100644 CHANGES/4809.bugfix delete mode 100644 CHANGES/4810.doc delete mode 100644 CHANGES/4850.feature delete mode 100644 CHANGES/4890.bugfix delete mode 100644 CHANGES/4894.feature delete mode 100644 CHANGES/4897.bugfix delete mode 100644 CHANGES/4912.bugfix delete mode 100644 CHANGES/4931.bugfix delete mode 100644 CHANGES/4936.bugfix delete mode 100644 CHANGES/4938.bugfix delete mode 100644 CHANGES/4972.bugfix delete mode 100644 CHANGES/4986.doc delete mode 100644 CHANGES/5012.bugfix delete mode 100644 CHANGES/5070.feature delete mode 100644 CHANGES/5084.doc delete mode 100644 CHANGES/5086.bugfix delete mode 100644 CHANGES/5098.bugfix diff --git a/CHANGES.rst b/CHANGES.rst index 7cc37929961..dafdb75def4 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,6 +14,174 @@ Changelog .. towncrier release notes start +3.7.0 (2020-10-24) +================== + +Features +-------- + +- Response headers are now prepared prior to running ``on_response_prepare`` hooks, directly before headers are sent to the client. + `#1958 `_ +- Add a ``quote_cookie`` option to ``CookieJar``, a way to skip quotation wrapping of cookies containing special characters. + `#2571 `_ +- Call ``AccessLogger.log`` with the current exception available from ``sys.exc_info()``. + `#3557 `_ +- `web.UrlDispatcher.add_routes` and `web.Application.add_routes` return a list + of registered `AbstractRoute` instances. `AbstractRouteDef.register` (and all + subclasses) return a list of registered resources registered resource. + `#3866 `_ +- Added properties of default ClientSession params to ClientSession class so it is available for introspection + `#3882 `_ +- Don't cancel web handler on peer disconnection, raise `OSError` on reading/writing instead. + `#4080 `_ +- Implement BaseRequest.get_extra_info() to access a protocol transports' extra info. + `#4189 `_ +- Added `ClientSession.timeout` property. + `#4191 `_ +- allow use of SameSite in cookies. + `#4224 `_ +- Use ``loop.sendfile()`` instead of custom implementation if available. + `#4269 `_ +- Apply SO_REUSEADDR to test server's socket. + `#4393 `_ +- Use .raw_host instead of slower .host in client API + `#4402 `_ +- Allow configuring the buffer size of input stream by passing ``read_bufsize`` argument. + `#4453 `_ +- Pass tests on Python 3.8 for Windows. + `#4513 `_ +- Add `method` and `url` attributes to `TraceRequestChunkSentParams` and `TraceResponseChunkReceivedParams`. + `#4674 `_ +- Add ClientResponse.ok property for checking status code under 400. + `#4711 `_ +- Don't ceil timeouts that are smaller than 5 seconds. + `#4850 `_ +- TCPSite now listens by default on all interfaces instead of just IPv4 when `None` is passed in as the host. + `#4894 `_ +- Bump ``http_parser`` to 2.9.4 + `#5070 `_ + + +Bugfixes +-------- + +- Fix keepalive connections not being closed in time + `#3296 `_ +- Fix failed websocket handshake leaving connection hanging. + `#3380 `_ +- Fix tasks cancellation order on exit. The run_app task needs to be cancelled first for cleanup hooks to run with all tasks intact. + `#3805 `_ +- Don't start heartbeat until _writer is set + `#4062 `_ +- Fix handling of multipart file uploads without a content type. + `#4089 `_ +- Preserve view handler function attributes across middlewares + `#4174 `_ +- Fix the string representation of `ServerDisconnectedError`. + `#4175 `_ +- Raising RuntimeError when trying to get encoding from not read body + `#4214 `_ +- Remove warning messages from noop. + `#4282 `_ +- Raise ClientPayloadError if FormData re-processed. + `#4345 `_ +- Fix a warning about unfinished task in `web_protocol.py` + `#4408 `_ +- Fixed 'deflate' compressions. According to RFC 2616 now. + `#4506 `_ +- Fixed OverflowError on platforms with 32-bit time_t + `#4515 `_ +- Fixed request.body_exists returns wrong value for methods without body. + `#4528 `_ +- Fix connecting to link-local IPv6 addresses. + `#4554 `_ +- Fix a problem with connection waiters that are never awaited. + `#4562 `_ +- Always make sure transport is not closing before reuse a connection. + + Reuse a protocol based on keepalive in headers is unreliable. + For example, uWSGI will not support keepalive even it serves a + HTTP 1.1 request, except explicitly configure uWSGI with a + `--http-keepalive` option. + + Servers designed like uWSGI could cause aiohttp intermittently + raise a ConnectionResetException when the protocol poll runs + out and some protocol is reused. + `#4587 `_ +- Handle the last CRLF correctly even if it is received via separate TCP segment. + `#4630 `_ +- Fix the register_resource function to validate route name before splitting it so that route name can include python keywords. + `#4691 `_ +- Improve typing annotations for ``web.Request``, ``aiohttp.ClientResponse`` and + ``multipart`` module. + `#4736 `_ +- Fix resolver task is not awaited when connector is cancelled + `#4795 `_ +- Fix a bug "Aiohttp doesn't return any error on invalid request methods" + `#4798 `_ +- Fix HEAD requests for static content. + `#4809 `_ +- Fix incorrect size calculation for memoryview + `#4890 `_ +- Add HTTPMove to _all__. + `#4897 `_ +- Fixed the type annotations in the ``tracing`` module. + `#4912 `_ +- Fix typing for multipart ``__aiter__``. + `#4931 `_ +- Fix for race condition on connections in BaseConnector that leads to exceeding the connection limit. + `#4936 `_ +- Add forced UTF-8 encoding for `application/rdap+json` responses. + `#4938 `_ +- Fix inconsistency between Python and C http request parsers in parsing pct-encoded URL. + `#4972 `_ +- Fix connection closing issue in HEAD request. + `#5012 `_ +- Fix type hint on BaseRunner.addresses (from List[str] to List[Any]) + `#5086 `_ +- Make `web.run_app()` more responsive to Ctrl+C on Windows for Python < 3.8. It slightly + increases CPU load as a side effect. + `#5098 `_ + + +Improved Documentation +---------------------- + +- Fix example code in client quick-start + `#3376 `_ +- Updated the docs so there is no contradiction in ``ttl_dns_cache`` default value + `#3512 `_ +- Add 'Deploy with SSL' to docs. + `#4201 `_ +- Change typing of the secure argument on StreamResponse.set_cookie from ``Optional[str]`` to ``Optional[bool]`` + `#4204 `_ +- Changes ``ttl_dns_cache`` type from int to Optional[int]. + `#4270 `_ +- Simplify README hello word example and add a documentation page for people coming from requests. + `#4272 `_ +- Improve some code examples in the documentation involving websockets and starting a simple HTTP site with an AppRunner. + `#4285 `_ +- Fix typo in code example in Multipart docs + `#4312 `_ +- Fix code example in Multipart section. + `#4314 `_ +- Update contributing guide so new contributors read the most recent version of that guide. Update command used to create test coverage reporting. + `#4810 `_ +- Spelling: Change "canonize" to "canonicalize". + `#4986 `_ +- Add ``aiohttp-sse-client`` library to third party usage list. + `#5084 `_ + + +Misc +---- + +- `#2856 `_, `#4218 `_, `#4250 `_ + + +---- + + 3.6.3 (2020-10-12) ================== diff --git a/CHANGES/1958.feature b/CHANGES/1958.feature deleted file mode 100644 index f910d1a8437..00000000000 --- a/CHANGES/1958.feature +++ /dev/null @@ -1 +0,0 @@ -Response headers are now prepared prior to running ``on_response_prepare`` hooks, directly before headers are sent to the client. diff --git a/CHANGES/2571.feature b/CHANGES/2571.feature deleted file mode 100644 index aca4e277e7d..00000000000 --- a/CHANGES/2571.feature +++ /dev/null @@ -1 +0,0 @@ -Add a ``quote_cookie`` option to ``CookieJar``, a way to skip quotation wrapping of cookies containing special characters. diff --git a/CHANGES/2856.misc b/CHANGES/2856.misc deleted file mode 100644 index 4b2b5e15a30..00000000000 --- a/CHANGES/2856.misc +++ /dev/null @@ -1 +0,0 @@ -Set websocket compression to 1 diff --git a/CHANGES/3296.bugfix b/CHANGES/3296.bugfix deleted file mode 100644 index f4dd07777e1..00000000000 --- a/CHANGES/3296.bugfix +++ /dev/null @@ -1,10 +0,0 @@ -Fix keepalive connections not being closed in time - -Refactoring in 964921d4e97e7c84bcfda6772ed458549aea0b09 introduced a -regression so that `_cleanup()` could be called only once or few times. -`_release()` expects `self._cleanup_handle` to be None to add new -`weakref_handle`. But when `_cleanup()` called and there are no -remaining connections, `self._cleanup_handle` will remain as -``, so `_release()` will not have a -chance to schedule `_cleanup()` call again. - diff --git a/CHANGES/3376.doc b/CHANGES/3376.doc deleted file mode 100644 index 8aaeb2151ca..00000000000 --- a/CHANGES/3376.doc +++ /dev/null @@ -1 +0,0 @@ -Fix example code in client quickstart diff --git a/CHANGES/3380.bugfix b/CHANGES/3380.bugfix deleted file mode 100644 index 4c66ff0394b..00000000000 --- a/CHANGES/3380.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix failed websocket handshake leaving connection hanging. diff --git a/CHANGES/3512.doc b/CHANGES/3512.doc deleted file mode 100644 index 9cea7460d98..00000000000 --- a/CHANGES/3512.doc +++ /dev/null @@ -1 +0,0 @@ -Updated the docs so there is no contradiction in ttl_dns_cache default value diff --git a/CHANGES/3557.feature b/CHANGES/3557.feature deleted file mode 100644 index 9d2b10be0f7..00000000000 --- a/CHANGES/3557.feature +++ /dev/null @@ -1 +0,0 @@ -Call ``AccessLogger.log`` with the current exception available from sys.exc_info(). diff --git a/CHANGES/3805.bugfix b/CHANGES/3805.bugfix deleted file mode 100644 index 9fe87d25de1..00000000000 --- a/CHANGES/3805.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix tasks cancellation order on exit. The run_app task needs to be cancelled first for cleanup hooks to run with all tasks intact. diff --git a/CHANGES/3866.feature b/CHANGES/3866.feature deleted file mode 100644 index ede67ac7420..00000000000 --- a/CHANGES/3866.feature +++ /dev/null @@ -1,3 +0,0 @@ -`web.UrlDispatcher.add_routes` and `web.Application.add_routes` return a list -of registered `AbstractRoute` instances. `AbstractRouteDef.register` (and all -subclasses) return a list of registered resources registered resource. diff --git a/CHANGES/3882.feature b/CHANGES/3882.feature deleted file mode 100644 index 0337fcdcd33..00000000000 --- a/CHANGES/3882.feature +++ /dev/null @@ -1 +0,0 @@ -Added properties of default ClientSession params to ClientSession class so it is available for introspection diff --git a/CHANGES/4062.bugfix b/CHANGES/4062.bugfix deleted file mode 100644 index 6cc292b6330..00000000000 --- a/CHANGES/4062.bugfix +++ /dev/null @@ -1 +0,0 @@ -Don't start heartbeat until _writer is set diff --git a/CHANGES/4080.feature b/CHANGES/4080.feature deleted file mode 100644 index 4032817a418..00000000000 --- a/CHANGES/4080.feature +++ /dev/null @@ -1 +0,0 @@ -Don't cancel web handler on peer disconnection, raise `OSError` on reading/writing instead. diff --git a/CHANGES/4089.bugfix b/CHANGES/4089.bugfix deleted file mode 100644 index 2e3c21b48d4..00000000000 --- a/CHANGES/4089.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix handling of multipart file uploads without a content type. diff --git a/CHANGES/4174.bugfix b/CHANGES/4174.bugfix deleted file mode 100644 index 5a50eb8249f..00000000000 --- a/CHANGES/4174.bugfix +++ /dev/null @@ -1 +0,0 @@ -Preserve view handler function attributes across middlewares diff --git a/CHANGES/4175.bugfix b/CHANGES/4175.bugfix deleted file mode 100644 index c8a20753352..00000000000 --- a/CHANGES/4175.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix the string representation of `ServerDisconnectedError`. diff --git a/CHANGES/4189.feature b/CHANGES/4189.feature deleted file mode 100644 index 02d227cf0b1..00000000000 --- a/CHANGES/4189.feature +++ /dev/null @@ -1 +0,0 @@ -Implement BaseRequest.get_extra_info() to access a protocol transports' extra info. diff --git a/CHANGES/4191.feature b/CHANGES/4191.feature deleted file mode 100644 index 72c55be6dfc..00000000000 --- a/CHANGES/4191.feature +++ /dev/null @@ -1 +0,0 @@ -Added `ClientSession.timeout` property. diff --git a/CHANGES/4201.doc b/CHANGES/4201.doc deleted file mode 100644 index 28c8833f227..00000000000 --- a/CHANGES/4201.doc +++ /dev/null @@ -1 +0,0 @@ -Add 'Deploy with SSL' to docs. \ No newline at end of file diff --git a/CHANGES/4204.doc b/CHANGES/4204.doc deleted file mode 100644 index 0998cc1d27c..00000000000 --- a/CHANGES/4204.doc +++ /dev/null @@ -1 +0,0 @@ -Change typing of the secure argument on StreamResponse.set_cookie from Optional[str] to Optional[bool] diff --git a/CHANGES/4214.bugfix b/CHANGES/4214.bugfix deleted file mode 100644 index 57b35c9c4a5..00000000000 --- a/CHANGES/4214.bugfix +++ /dev/null @@ -1 +0,0 @@ -Raising RuntimeError when trying to get encoding from not read body diff --git a/CHANGES/4218.misc b/CHANGES/4218.misc deleted file mode 100644 index 1cb60297f81..00000000000 --- a/CHANGES/4218.misc +++ /dev/null @@ -1 +0,0 @@ -Add two more types to LooseCookies. diff --git a/CHANGES/4224.feature b/CHANGES/4224.feature deleted file mode 100644 index a2427099b08..00000000000 --- a/CHANGES/4224.feature +++ /dev/null @@ -1 +0,0 @@ -allow use of SameSite in cookies. diff --git a/CHANGES/4250.misc b/CHANGES/4250.misc deleted file mode 100644 index e79b257852a..00000000000 --- a/CHANGES/4250.misc +++ /dev/null @@ -1 +0,0 @@ -Fixed annotations of the cookies parameter of CookieJar.update_cookies() and ClientRequest.update_cookies(). diff --git a/CHANGES/4269.feature b/CHANGES/4269.feature deleted file mode 100644 index 6a4cae2a133..00000000000 --- a/CHANGES/4269.feature +++ /dev/null @@ -1 +0,0 @@ -Use ``loop.sendfile()`` instead of custom implementation if available. diff --git a/CHANGES/4270.doc b/CHANGES/4270.doc deleted file mode 100644 index 024bce19f9a..00000000000 --- a/CHANGES/4270.doc +++ /dev/null @@ -1 +0,0 @@ -Changes doc and ttl_dns_cache type from int to Optional[int]. diff --git a/CHANGES/4272.doc b/CHANGES/4272.doc deleted file mode 100644 index 5db0a5dd622..00000000000 --- a/CHANGES/4272.doc +++ /dev/null @@ -1 +0,0 @@ -Simplify README hello word example and add a documentation page for people coming from requests. diff --git a/CHANGES/4282.bugfix b/CHANGES/4282.bugfix deleted file mode 100644 index 27062bb91bb..00000000000 --- a/CHANGES/4282.bugfix +++ /dev/null @@ -1 +0,0 @@ -Remove warning messages from noop. diff --git a/CHANGES/4285.doc b/CHANGES/4285.doc deleted file mode 100644 index ba2ac7e64ee..00000000000 --- a/CHANGES/4285.doc +++ /dev/null @@ -1 +0,0 @@ -Improve some code examples in the documentation involving websockets and starting a simple HTTP site with an AppRunner. diff --git a/CHANGES/4312.doc b/CHANGES/4312.doc deleted file mode 100644 index 30c185a0c59..00000000000 --- a/CHANGES/4312.doc +++ /dev/null @@ -1 +0,0 @@ -Fix typo in code example in Multipart docs diff --git a/CHANGES/4314.doc b/CHANGES/4314.doc deleted file mode 100644 index 4c0a93e8ccb..00000000000 --- a/CHANGES/4314.doc +++ /dev/null @@ -1 +0,0 @@ -Fix code example in Multipart section. diff --git a/CHANGES/4345.bugfix b/CHANGES/4345.bugfix deleted file mode 100644 index badaf6453eb..00000000000 --- a/CHANGES/4345.bugfix +++ /dev/null @@ -1 +0,0 @@ -Raise ClientPayloadError if FormData re-processed. diff --git a/CHANGES/4393.feature b/CHANGES/4393.feature deleted file mode 100644 index 737898ccdc4..00000000000 --- a/CHANGES/4393.feature +++ /dev/null @@ -1 +0,0 @@ -Apply SO_REUSEADDR to test server's socket. diff --git a/CHANGES/4402.feature b/CHANGES/4402.feature deleted file mode 100644 index 1738ce9d1e6..00000000000 --- a/CHANGES/4402.feature +++ /dev/null @@ -1 +0,0 @@ -Use .raw_host instead of slower .host in client API diff --git a/CHANGES/4408.bugfix b/CHANGES/4408.bugfix deleted file mode 100644 index 9185aaab042..00000000000 --- a/CHANGES/4408.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix a warning about unfinished task in `web_protocol.py` diff --git a/CHANGES/4453.feature b/CHANGES/4453.feature deleted file mode 100644 index bf6df98b969..00000000000 --- a/CHANGES/4453.feature +++ /dev/null @@ -1 +0,0 @@ -Allow configuring the sbuffer size of input stream by passing ``read_bufsize`` argument. diff --git a/CHANGES/4506.bugfix b/CHANGES/4506.bugfix deleted file mode 100644 index eaf4bb88aac..00000000000 --- a/CHANGES/4506.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixed 'deflate' compressions. According to RFC 2616 now. diff --git a/CHANGES/4513.feature b/CHANGES/4513.feature deleted file mode 100644 index e68f516e310..00000000000 --- a/CHANGES/4513.feature +++ /dev/null @@ -1 +0,0 @@ -Pass tests on Python 3.8 for Windows. diff --git a/CHANGES/4515.bugfix b/CHANGES/4515.bugfix deleted file mode 100644 index 2ac5fff61ea..00000000000 --- a/CHANGES/4515.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixed OverflowError on platforms with 32-bit time_t diff --git a/CHANGES/4528.bugfix b/CHANGES/4528.bugfix deleted file mode 100644 index 7ccbe34dcae..00000000000 --- a/CHANGES/4528.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixed request.body_exists returns wrong value for methods without body. diff --git a/CHANGES/4554.bugfix b/CHANGES/4554.bugfix deleted file mode 100644 index 3e9f970dd94..00000000000 --- a/CHANGES/4554.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix connecting to link-local IPv6 addresses. diff --git a/CHANGES/4562.bugfix b/CHANGES/4562.bugfix deleted file mode 100644 index 7286b79e138..00000000000 --- a/CHANGES/4562.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix a problem with connection waiters that are never awaited. diff --git a/CHANGES/4587.bugfix b/CHANGES/4587.bugfix deleted file mode 100644 index f413dfac7c0..00000000000 --- a/CHANGES/4587.bugfix +++ /dev/null @@ -1,10 +0,0 @@ -Always make sure transport is not closing before reuse a connection. - -Reuse a protocol based on keepalive in headers is unreliable. -For example, uWSGI will not support keepalive even it serves a -http1.1 request, except explicitly configure uWSGI with a -`--http-keepalive` option. - -Servers designed like uWSGI could cause aiohttp intermittently -raise a ConnectionResetException when the protocol poll runs -out and some protocol is reused. diff --git a/CHANGES/4630.bugfix b/CHANGES/4630.bugfix deleted file mode 100644 index 65d783be049..00000000000 --- a/CHANGES/4630.bugfix +++ /dev/null @@ -1 +0,0 @@ -Handle the last CRLF correctly even if it is received via separate TCP segment. diff --git a/CHANGES/4674.feature b/CHANGES/4674.feature deleted file mode 100644 index 4ecc652d76e..00000000000 --- a/CHANGES/4674.feature +++ /dev/null @@ -1 +0,0 @@ -Add `method` and `url` attributes to `TraceRequestChunkSentParams` and `TraceResponseChunkReceivedParams`. diff --git a/CHANGES/4691.bugfix b/CHANGES/4691.bugfix deleted file mode 100644 index 76d474c21b0..00000000000 --- a/CHANGES/4691.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix the register_resource function to validate route name before splitting it so that route name can include python keywords. diff --git a/CHANGES/4711.feature b/CHANGES/4711.feature deleted file mode 100644 index eebb65c5cbe..00000000000 --- a/CHANGES/4711.feature +++ /dev/null @@ -1 +0,0 @@ -Add ClientResponse.ok property for checking status code under 400. diff --git a/CHANGES/4736.bugfix b/CHANGES/4736.bugfix deleted file mode 100644 index 8c562571d6b..00000000000 --- a/CHANGES/4736.bugfix +++ /dev/null @@ -1,2 +0,0 @@ -Improve typing annotations for ``web.Request``, ``aiohttp.ClientResponse`` and -``multipart`` module. diff --git a/CHANGES/4795.bugfix b/CHANGES/4795.bugfix deleted file mode 100644 index 489214cc383..00000000000 --- a/CHANGES/4795.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix resolver task is not awaited when connector is cancelled diff --git a/CHANGES/4798.bugfix b/CHANGES/4798.bugfix deleted file mode 100644 index e4608615de6..00000000000 --- a/CHANGES/4798.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix a bug "Aiohttp doesn't return any error on invalid request methods" diff --git a/CHANGES/4809.bugfix b/CHANGES/4809.bugfix deleted file mode 100644 index dd5142fc84b..00000000000 --- a/CHANGES/4809.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix HEAD requests for static content. diff --git a/CHANGES/4810.doc b/CHANGES/4810.doc deleted file mode 100644 index 57e0d216ca8..00000000000 --- a/CHANGES/4810.doc +++ /dev/null @@ -1 +0,0 @@ -Update contributing guide so new contributors read the most recent version of that guide. Update command used to create test coverage reporting. diff --git a/CHANGES/4850.feature b/CHANGES/4850.feature deleted file mode 100644 index f01f5682df3..00000000000 --- a/CHANGES/4850.feature +++ /dev/null @@ -1 +0,0 @@ -Don't ceil timeouts that are smaller than 5 seconds. diff --git a/CHANGES/4890.bugfix b/CHANGES/4890.bugfix deleted file mode 100644 index ce5e196dcd6..00000000000 --- a/CHANGES/4890.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix incorrect size calculation for memoryviews diff --git a/CHANGES/4894.feature b/CHANGES/4894.feature deleted file mode 100644 index 720d98c998f..00000000000 --- a/CHANGES/4894.feature +++ /dev/null @@ -1 +0,0 @@ -TCPSite now listens by default on all interfaces instead of just IPv4 when `None` is passed in as the host. diff --git a/CHANGES/4897.bugfix b/CHANGES/4897.bugfix deleted file mode 100644 index b8f550b1d9b..00000000000 --- a/CHANGES/4897.bugfix +++ /dev/null @@ -1 +0,0 @@ -Add HTTPMove to _all__. diff --git a/CHANGES/4912.bugfix b/CHANGES/4912.bugfix deleted file mode 100644 index 6f8adea2309..00000000000 --- a/CHANGES/4912.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixed the type annotations in the ``tracing`` module. diff --git a/CHANGES/4931.bugfix b/CHANGES/4931.bugfix deleted file mode 100644 index 2b54fb4eb8a..00000000000 --- a/CHANGES/4931.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix typings for multipart __aiter__. diff --git a/CHANGES/4936.bugfix b/CHANGES/4936.bugfix deleted file mode 100644 index b3a0c6d8e80..00000000000 --- a/CHANGES/4936.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix for race condition on connections in BaseConnector that leads to exceeding the connection limit. diff --git a/CHANGES/4938.bugfix b/CHANGES/4938.bugfix deleted file mode 100644 index 3ad6904207b..00000000000 --- a/CHANGES/4938.bugfix +++ /dev/null @@ -1 +0,0 @@ -Add forced UTF-8 encoding for `application/rdap+json` responses. diff --git a/CHANGES/4972.bugfix b/CHANGES/4972.bugfix deleted file mode 100644 index 6654f8a645d..00000000000 --- a/CHANGES/4972.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix inconsistency between Python and C http request parsers in parsing pct-encoded URL. diff --git a/CHANGES/4986.doc b/CHANGES/4986.doc deleted file mode 100644 index d66680f9e03..00000000000 --- a/CHANGES/4986.doc +++ /dev/null @@ -1 +0,0 @@ -Spelling: Change "canonize" to "canonicalize". diff --git a/CHANGES/5012.bugfix b/CHANGES/5012.bugfix deleted file mode 100644 index 8c429c231f6..00000000000 --- a/CHANGES/5012.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix connection closing issue in HEAD request. diff --git a/CHANGES/5070.feature b/CHANGES/5070.feature deleted file mode 100644 index c6568abdb3a..00000000000 --- a/CHANGES/5070.feature +++ /dev/null @@ -1 +0,0 @@ -Bump http_parser to 2.9.4 diff --git a/CHANGES/5084.doc b/CHANGES/5084.doc deleted file mode 100644 index 675929274c7..00000000000 --- a/CHANGES/5084.doc +++ /dev/null @@ -1 +0,0 @@ -Add aiohttp-sse-client library to third party usage list. diff --git a/CHANGES/5086.bugfix b/CHANGES/5086.bugfix deleted file mode 100644 index 5e45a265326..00000000000 --- a/CHANGES/5086.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix type hint on BaseRunner.addresses (from List[str] to List[Any]) diff --git a/CHANGES/5098.bugfix b/CHANGES/5098.bugfix deleted file mode 100644 index 0bd27fe7fb8..00000000000 --- a/CHANGES/5098.bugfix +++ /dev/null @@ -1,2 +0,0 @@ -Make `web.run_app()` more responsive to Ctrl+C on Windows for Python < 3.8. It slightly -increases CPU load as a side effect. diff --git a/aiohttp/__init__.py b/aiohttp/__init__.py index de936db8136..5734f204f4d 100644 --- a/aiohttp/__init__.py +++ b/aiohttp/__init__.py @@ -1,4 +1,4 @@ -__version__ = '3.7.0b1' +__version__ = '3.7.0' from typing import Tuple diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt index b4714ff0b02..01eade6534a 100644 --- a/docs/spelling_wordlist.txt +++ b/docs/spelling_wordlist.txt @@ -39,6 +39,7 @@ builtin BytesIO cancelled canonicalization +canonicalize cchardet cChardet Changelog @@ -307,6 +308,7 @@ urls utf utils uvloop +uWSGI vcvarsall waituntil wakeup