Wed Sep 13 07:25:55 2023 UTC ()
py-httpx: updated to 0.25.0

0.25.0 (11th Sep, 2023)

Removed

* Drop support for Python 3.7.

Added

* Support HTTPS proxies.
* Change the type of `Extensions` from `Mapping[Str, Any]` to `MutableMapping[Str, Any]`.
* Add `socket_options` argument to `httpx.HTTPTransport` and `httpx.AsyncHTTPTransport` classes.
* The `Response.raise_for_status()` method now returns the response instance. For example: `data = httpx.get('...').raise_for_status().json()`.

Fixed

* Return `500` error response instead of exceptions when `raise_app_exceptions=False` is set on `ASGITransport`.
* Ensure all `WSGITransport` environs have a `SERVER_PROTOCOL`.
* Always encode forward slashes as `%2F` in query parameters
* Use Mozilla documentation instead of `httpstatuses.com` for HTTP error reference


(adam)
diff -r1.28 -r1.29 pkgsrc/www/py-httpx/Makefile
diff -r1.27 -r1.28 pkgsrc/www/py-httpx/distinfo

cvs diff -r1.28 -r1.29 pkgsrc/www/py-httpx/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-httpx/Makefile 2023/05/19 08:19:51 1.28
+++ pkgsrc/www/py-httpx/Makefile 2023/09/13 07:25:55 1.29
@@ -1,29 +1,29 @@ @@ -1,29 +1,29 @@
1# $NetBSD: Makefile,v 1.28 2023/05/19 08:19:51 adam Exp $ 1# $NetBSD: Makefile,v 1.29 2023/09/13 07:25:55 adam Exp $
2 2
3DISTNAME= httpx-0.24.1 3DISTNAME= httpx-0.25.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= www python 5CATEGORIES= www python
6MASTER_SITES= ${MASTER_SITE_PYPI:=h/httpx/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=h/httpx/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/encode/httpx 9HOMEPAGE= https://github.com/encode/httpx
10COMMENT= The next generation HTTP client 10COMMENT= The next generation HTTP client
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling 13TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
14TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme-[0-9]*:../../devel/py-hatch-fancy-pypi-readme 14TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme-[0-9]*:../../devel/py-hatch-fancy-pypi-readme
15DEPENDS+= ${PYPKGPREFIX}-certifi-[0-9]*:../../security/py-certifi 15DEPENDS+= ${PYPKGPREFIX}-certifi-[0-9]*:../../security/py-certifi
16DEPENDS+= ${PYPKGPREFIX}-httpcore>=0.15.0:../../www/py-httpcore 16DEPENDS+= ${PYPKGPREFIX}-httpcore>=0.18.0:../../www/py-httpcore
17DEPENDS+= ${PYPKGPREFIX}-idna-[0-9]*:../../www/py-idna 17DEPENDS+= ${PYPKGPREFIX}-idna-[0-9]*:../../www/py-idna
18DEPENDS+= ${PYPKGPREFIX}-sniffio-[0-9]*:../../misc/py-sniffio 18DEPENDS+= ${PYPKGPREFIX}-sniffio-[0-9]*:../../misc/py-sniffio
19 19
20USE_LANGUAGES= # none 20USE_LANGUAGES= # none
21 21
22PYTHON_VERSIONS_INCOMPATIBLE= 27 22PYTHON_VERSIONS_INCOMPATIBLE= 27
23 23
24post-install: 24post-install:
25 cd ${DESTDIR}${PREFIX}/bin && \ 25 cd ${DESTDIR}${PREFIX}/bin && \
26 ${MV} httpx httpx-${PYVERSSUFFIX} || ${TRUE} 26 ${MV} httpx httpx-${PYVERSSUFFIX} || ${TRUE}
27 27
28.include "../../lang/python/wheel.mk" 28.include "../../lang/python/wheel.mk"
29.include "../../mk/bsd.pkg.mk" 29.include "../../mk/bsd.pkg.mk"

cvs diff -r1.27 -r1.28 pkgsrc/www/py-httpx/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-httpx/distinfo 2023/05/19 08:19:51 1.27
+++ pkgsrc/www/py-httpx/distinfo 2023/09/13 07:25:55 1.28
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.27 2023/05/19 08:19:51 adam Exp $ 1$NetBSD: distinfo,v 1.28 2023/09/13 07:25:55 adam Exp $
2 2
3BLAKE2s (httpx-0.24.1.tar.gz) = 0f280287da54ed81b0bf36fffa2087d4591736547ed070ea5f38b350a4f64906 3BLAKE2s (httpx-0.25.0.tar.gz) = 55977c97aa36d4e86cc71b31434e38a9aa6dac832d9f6ef6f4316ee0c5a205f7
4SHA512 (httpx-0.24.1.tar.gz) = cc39b64fda0494b109e6d911fcee496843959a0ed916afb16479cbcded35031880d380a2650c1486eae611185d5f58f7189293737f17510328b91e6e068a78fa 4SHA512 (httpx-0.25.0.tar.gz) = e19a857d4758becaac6f7400f4ed9b8cf80843f9ae5a04d07277d857c3777768ba62e8f7c7b1118b25dc8c0df8374f0eb95d0be21c9009995e28c203f5e6676f
5Size (httpx-0.24.1.tar.gz) = 81858 bytes 5Size (httpx-0.25.0.tar.gz) = 82417 bytes