aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-04-11 08:25:40 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-04-11 08:35:08 +0300
commit30aa997daf4dffeb303c1b36e29421c46c872e73 (patch)
tree2466e1134a4eee20c513840d505e261cdabdbaa3
parentc51653cb452928e226b2abf4298b68dae555ed94 (diff)
downloadydb-30aa997daf4dffeb303c1b36e29421c46c872e73.tar.gz
Intermediate changes
-rw-r--r--contrib/python/httpcore/.dist-info/METADATA11
-rw-r--r--contrib/python/httpcore/httpcore/__init__.py2
-rw-r--r--contrib/python/httpcore/httpcore/_async/http2.py6
-rw-r--r--contrib/python/httpcore/httpcore/_backends/anyio.py2
-rw-r--r--contrib/python/httpcore/httpcore/_models.py2
-rw-r--r--contrib/python/httpcore/httpcore/_sync/http2.py6
-rw-r--r--contrib/python/httpcore/ya.make2
7 files changed, 19 insertions, 12 deletions
diff --git a/contrib/python/httpcore/.dist-info/METADATA b/contrib/python/httpcore/.dist-info/METADATA
index 7804db1a8b..0e2009536e 100644
--- a/contrib/python/httpcore/.dist-info/METADATA
+++ b/contrib/python/httpcore/.dist-info/METADATA
@@ -1,6 +1,6 @@
-Metadata-Version: 2.1
+Metadata-Version: 2.3
Name: httpcore
-Version: 1.0.4
+Version: 1.0.5
Summary: A minimal low-level HTTP client.
Project-URL: Documentation, https://www.encode.io/httpcore
Project-URL: Homepage, https://www.encode.io/httpcore/
@@ -33,7 +33,7 @@ Requires-Dist: h2<5,>=3; extra == 'http2'
Provides-Extra: socks
Requires-Dist: socksio==1.*; extra == 'socks'
Provides-Extra: trio
-Requires-Dist: trio<0.25.0,>=0.22.0; extra == 'trio'
+Requires-Dist: trio<0.26.0,>=0.22.0; extra == 'trio'
Description-Content-Type: text/markdown
# HTTP Core
@@ -153,6 +153,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
+## 1.0.5 (March 27th, 2024)
+
+- Handle `EndOfStream` exception for anyio backend. (#899)
+- Allow trio `0.25.*` series in package dependancies. (#903)
+
## 1.0.4 (February 21st, 2024)
- Add `target` request extension. (#888)
diff --git a/contrib/python/httpcore/httpcore/__init__.py b/contrib/python/httpcore/httpcore/__init__.py
index ea2a240921..014213bae7 100644
--- a/contrib/python/httpcore/httpcore/__init__.py
+++ b/contrib/python/httpcore/httpcore/__init__.py
@@ -130,7 +130,7 @@ __all__ = [
"WriteError",
]
-__version__ = "1.0.4"
+__version__ = "1.0.5"
__locals = locals()
diff --git a/contrib/python/httpcore/httpcore/_async/http2.py b/contrib/python/httpcore/httpcore/_async/http2.py
index 8dc776ffa0..c201ee4cbc 100644
--- a/contrib/python/httpcore/httpcore/_async/http2.py
+++ b/contrib/python/httpcore/httpcore/_async/http2.py
@@ -75,9 +75,9 @@ class AsyncHTTP2Connection(AsyncConnectionInterface):
# Connection terminated events are stored as state since
# we need to handle them for all streams.
- self._connection_terminated: typing.Optional[
- h2.events.ConnectionTerminated
- ] = None
+ self._connection_terminated: typing.Optional[h2.events.ConnectionTerminated] = (
+ None
+ )
self._read_exception: typing.Optional[Exception] = None
self._write_exception: typing.Optional[Exception] = None
diff --git a/contrib/python/httpcore/httpcore/_backends/anyio.py b/contrib/python/httpcore/httpcore/_backends/anyio.py
index 1ed5228dbd..5731f5e78c 100644
--- a/contrib/python/httpcore/httpcore/_backends/anyio.py
+++ b/contrib/python/httpcore/httpcore/_backends/anyio.py
@@ -27,6 +27,7 @@ class AnyIOStream(AsyncNetworkStream):
TimeoutError: ReadTimeout,
anyio.BrokenResourceError: ReadError,
anyio.ClosedResourceError: ReadError,
+ anyio.EndOfStream: ReadError,
}
with map_exceptions(exc_map):
with anyio.fail_after(timeout):
@@ -62,6 +63,7 @@ class AnyIOStream(AsyncNetworkStream):
exc_map = {
TimeoutError: ConnectTimeout,
anyio.BrokenResourceError: ConnectError,
+ anyio.EndOfStream: ConnectError,
}
with map_exceptions(exc_map):
try:
diff --git a/contrib/python/httpcore/httpcore/_models.py b/contrib/python/httpcore/httpcore/_models.py
index 397bd758d0..dadee79f69 100644
--- a/contrib/python/httpcore/httpcore/_models.py
+++ b/contrib/python/httpcore/httpcore/_models.py
@@ -339,7 +339,7 @@ class Request:
url: The request URL, either as a `URL` instance, or as a string or bytes.
For example: `"https://www.example.com".`
headers: The HTTP request headers.
- content: The content of the response body.
+ content: The content of the request body.
extensions: A dictionary of optional extra information included on
the request. Possible keys include `"timeout"`, and `"trace"`.
"""
diff --git a/contrib/python/httpcore/httpcore/_sync/http2.py b/contrib/python/httpcore/httpcore/_sync/http2.py
index d141d459a5..1ee4bbb34f 100644
--- a/contrib/python/httpcore/httpcore/_sync/http2.py
+++ b/contrib/python/httpcore/httpcore/_sync/http2.py
@@ -75,9 +75,9 @@ class HTTP2Connection(ConnectionInterface):
# Connection terminated events are stored as state since
# we need to handle them for all streams.
- self._connection_terminated: typing.Optional[
- h2.events.ConnectionTerminated
- ] = None
+ self._connection_terminated: typing.Optional[h2.events.ConnectionTerminated] = (
+ None
+ )
self._read_exception: typing.Optional[Exception] = None
self._write_exception: typing.Optional[Exception] = None
diff --git a/contrib/python/httpcore/ya.make b/contrib/python/httpcore/ya.make
index 66ea31672f..36f416f0d6 100644
--- a/contrib/python/httpcore/ya.make
+++ b/contrib/python/httpcore/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(1.0.4)
+VERSION(1.0.5)
LICENSE(BSD-3-Clause)