Repository navigation
chore(deps): update python dependencies (minor) - #7937
Conversation
7632abf to
af0ea6c
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
httpx2 2.17.0 writes the "%" before an IPv6 zone as "%25" in a URL (RFC 6874, pydantic/httpx2#1361). URL.host returns the zone with a plain "%". The test expected the old form. The new form is correct for devops-cli. kubectl refuses the old form in --server with "invalid URL escape". The code that opens a socket reads URL.host, which has the plain "%".
3982342 to
dd0d44a
Compare
Fix of the conflict and of the failed test (head
|
| Check | Result |
|---|---|
devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures |
pass |
devops ci test tests/sandbox/test_k8s_ipv6_and_proxy_boundaries.py |
21 passed |
pytest -n 4 tests/http tests/sandbox tests/ai/client tests/telemetry |
1798 passed, 1 skipped |
Found, not changed (the same with 2.16.2). cluster_host() in k8s/node_port.py and a probe target without a scheme read a URL with urllib, which keeps %25. The dial then uses the zone 25eth0. This needs a link-local zone address in a kubeconfig or a target.
Note. Auto-merge is on. This pull request merges when the required checks pass.
This PR contains the following updates:
==2.14.0→==2.15.0==2.16.2→==2.17.0==2.16.2→==2.17.0==3.60.0→==3.61.0Release Notes
anthropics/anthropic-sdk-python (anthropic)
v2.15.0Compare Source
Features
Bug Fixes
client: tighten argument checks in structured output helpers
credentials: refresh after a 401 even if a hook changes the Authorization header
A 401 now also drops the cached token when
max_retries=0, so the next call refreshes it.credentials: stop processes sharing one login from refreshing each other's tokens in a loop
Chores
pydantic/httpx2 (httpcore2)
v2.17.0Compare Source
⚡ Less CPU per request, and pools that scale
httpx2andhttpcore22.17.0 are a minor release. Requests cost less CPU, and the cost no longer climbs steeply with the number of pooled connections. Proxy options, IPv6 zones and cookies also change behaviour in a few places, so read those sections before you upgrade.pip install --upgrade httpx2==2.17.0httpcore2polled every idle HTTP/1.1 socket at the start and end of each request. It now checks only the connection it is about to reuse. A connection that the server closed stays in the pool until it is reused, its keep-alive expires, or it is evicted.🧭 Transport options now reach the proxy
uds,local_address,retriesandsocket_optionsapply to HTTP proxy connections (#1172).HTTPTransportandAsyncHTTPTransportsilently ignored them whenproxywas set. If you already pass them together with a proxy, they now take effect. For example,udssends the proxy connection over the Unix socket.retriesworks with SOCKS proxies (#1172). The TCP connection to the proxy is retried with the same backoff as a direct connection. SOCKS proxies still do not supportuds,local_addressandsocket_options.🌐 IPv6 zones and cookies
[fe80::1%25en0]and[fe80::1%en0]are the same host (#1361).URL.hostreturns the zone decoded, asfe80::1%en0, andstr(url)andURL.netlocalways write%25. A URL in the%25form failed to connect before. Cookies saved under a bare%en0URL no longer match after upgrading.Hostheader (#1360). A request tohttp://[fe80::1%en0]/sentHost: [fe80::1%en0], which servers such as Apache and lighttpd reject.http://user:[email protected]/now shares cookies withhttp://example.org/.Cookieskeeps its policy (#1314). A policy on the client jar, such as one withblocked_domains, was ignored on requests that passedcookies=.🧹 Responses, timeouts and errors
RuntimeError: aclose(): asynchronous generator is already runningcould appear when the event loop shut down, or the garbage collector ran, with streamed responses still open.Response.aiter_bytes()no longer callsaiter_raw(), so overridingaiter_raw()no longer affectsaiter_bytes(),aiter_text(),aiter_lines()andaread().Response.aclose()can be retried (#1353). After a close that was cancelled or raised, the response was already marked as closed and the stream stayed open. A second call now closes it.response.elapsedis set for responses that arrive closed (#1376). It raisedRuntimeErrorwhen a transport returned a loaded response, such as aMockTransporthandler returningResponse(200, json=...).Timeoutrejects unsupported values when it is built (#1348). A value such as anhttpx.Timeoutnow raisesTypeErrorup front. Before, the request failed later, while connecting.UnicodeEncodeErrorfor a header value that cannot be encoded now ends with(header 'auth').📊 Benchmark against 2.16.2
GET1 KiBGET1 KiBGET1 KiBGET1 KiBGET100 KiBPOST1 KiBThese are medians of 7 rounds of
scripts/benchmark --mode readon local loopback (CPython 3.14, stdlib asyncio, macOS arm64). 2.17.0 was faster in every round of every scenario. They come from one machine, so read them as a direction, not a guarantee.Full changelog: v2.16.2...v2.17.0
openai/openai-python (openai)
v3.61.0Compare Source
Features
Bug Fixes
Performance Improvements
Chores
Configuration
📅 Schedule: (in timezone UTC)
* * * * 1)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.