pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/py-httpx2
Module Name: pkgsrc
Committed By: adam
Date: Tue Dec 1 07:22:21 UTC 2026
Modified Files:
pkgsrc/www/py-httpx2: Makefile distinfo
Log Message:
py-httpx2: updated to 2.17.0
2.17.0 (November 30th, 2026)
Changed
* Cache the parsed form of the 128 most recent URL strings of up to 2,048 characters. Repeated requests to the same URL skip parsing and validation. The cached strings, including any credentials in
them, stay in memory until they are evicted.
* Give the cookie jar the request URL without userinfo, query or fragment, and with at most 1024 bytes of path. Cookie handling no longer gets slower or uses more memory as the URL gets longer. A
response to a URL whose directory is longer than 1024 bytes sets and deletes no cookies, and `http://user:pass%example.org@localhost/` now shares cookies with `http://example.org/`.
* Treat `[fe80::1%25en0]` and `[fe80::1%en0]` as the same host. `URL.host` returns the zone decoded, as `fe80::1%en0`, and `str(url)` and `URL.netloc` always write `%25`. A URL in the `%25` form
failed to connect before. Cookies saved under a bare `%en0` URL no longer match after upgrading.
* Raise `TypeError` when `Timeout` is built from an unsupported value, such as an `httpx.Timeout`. Before, the request failed later, while connecting.
* Name the header in the `UnicodeEncodeError` raised when a header value cannot be encoded. The message now ends with `(header 'auth')`.
* Skip copying the client headers on requests that pass no `headers=`.
Fixed
* Apply `uds`, `local_address`, `retries` and `socket_options` to the connection to an HTTP proxy, and `retries` to the connection to a SOCKS proxy. `HTTPTransport` and `AsyncHTTPTransport` silently
ignored them when `proxy` was set. SOCKS proxies still do not support `uds`, `local_address` and `socket_options`.
* Stop raising `RuntimeError: aclose(): asynchronous generator is already running` when the event loop shuts down, or the garbage collector runs, with streamed responses still open.
`Response.aiter_bytes()` no longer calls `aiter_raw()`, so overriding `aiter_raw()` no longer affects `aiter_bytes()`, `aiter_text()`, `aiter_lines()` and `aread()`.
* Omit the IPv6 zone from the `Host` header. A request to `http://[fe80::1%en0]/` sent `Host: [fe80::1%en0]`, which servers such as Apache and lighttpd reject.
* Keep the cookie policy when copying `Cookies`. A policy on the client jar, such as one with `blocked_domains`, was ignored on requests that passed `cookies=`.
* Let a second `Response.aclose()` close the stream after the first call was cancelled or raised. Before, the response was already marked as closed and the stream stayed open.
* Set `response.elapsed` when a transport returns a response that is already closed, such as a `MockTransport` handler returning `Response(200, json=...)`. It raised `RuntimeError` before.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/www/py-httpx2/Makefile \
pkgsrc/www/py-httpx2/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/py-httpx2/Makefile
diff -u pkgsrc/www/py-httpx2/Makefile:1.10 pkgsrc/www/py-httpx2/Makefile:1.11
--- pkgsrc/www/py-httpx2/Makefile:1.10 Mon Nov 16 16:16:16 2026
+++ pkgsrc/www/py-httpx2/Makefile Tue Dec 1 07:22:21 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2026/11/16 16:16:16 adam Exp $
+# $NetBSD: Makefile,v 1.11 2026/12/01 07:22:21 adam Exp $
-DISTNAME= httpx2-2.16.2
+DISTNAME= httpx2-2.17.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=h/httpx2/}
Index: pkgsrc/www/py-httpx2/distinfo
diff -u pkgsrc/www/py-httpx2/distinfo:1.10 pkgsrc/www/py-httpx2/distinfo:1.11
--- pkgsrc/www/py-httpx2/distinfo:1.10 Mon Nov 16 16:16:16 2026
+++ pkgsrc/www/py-httpx2/distinfo Tue Dec 1 07:22:21 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.10 2026/11/16 16:16:16 adam Exp $
+$NetBSD: distinfo,v 1.11 2026/12/01 07:22:21 adam Exp $
-BLAKE2s (httpx2-2.16.2.tar.gz) = 96f4c907547458bb66973bc752bf2bf6bdab7ed87e3a80630be810fa4e48027e
-SHA512 (httpx2-2.16.2.tar.gz) = 9069d51a5625faf0522acb3505db9044f4ed4d1024b9bbf48e3a69995c3eef03701618831c8e9acc334579d48d6ea192fdd7030781903a8d3b19241a98d689f8
-Size (httpx2-2.16.2.tar.gz) = 103370 bytes
+BLAKE2s (httpx2-2.17.0.tar.gz) = 277261052f18cb442351aa4ad391c76e55367eb58c733a87f39c2f2997cbd568
+SHA512 (httpx2-2.17.0.tar.gz) = 5989384fd3b2b3461219fc74da4f34988f4200f940991004ef20a23f75f60adabc1a31538df8f811fa702434508908d0d0836e43d792ddb6f3939719320c4c2a
+Size (httpx2-2.17.0.tar.gz) = 106759 bytes
Home |
Main Index |
Thread Index |
Old Index