Mon Apr 17 09:58:49 2023 UTC ()
py-httpx: updated to 0.24.0

0.24.0 (6th April, 2023)

Changed

* The logging behaviour has been changed to be more in-line with other standard Python logging usages. We no longer have a custom `TRACE` log level, and we no longer use the `HTTPX_LOG_LEVEL` environment variable to auto-configure logging. We now have a significant amount of `DEBUG` logging available at the network level. Full documentation is available at https://www.python-httpx.org/logging/
* The `Response.iter_lines()` method now matches the stdlib behaviour and does not include the newline characters. It also resolves a performance issue.
* Query parameter encoding switches from using + for spaces and %2F for forward slash, to instead using %20 for spaces and treating forward slash as a safe, unescaped character. This differs from `requests`, but is in line with browser behavior in Chrome, Safari, and Firefox. Both options are RFC valid.
* NetRC authentication is no longer automatically handled, but is instead supported by an explicit `httpx.NetRCAuth()` authentication class. See the documentation at https://www.python-httpx.org/advanced/#netrc-support

Removed

* The `rfc3986` dependancy has been removed.


(adam)
diff -r1.26 -r1.27 pkgsrc/www/py-httpx/Makefile
diff -r1.10 -r1.11 pkgsrc/www/py-httpx/PLIST
diff -r1.25 -r1.26 pkgsrc/www/py-httpx/distinfo

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

--- pkgsrc/www/py-httpx/Makefile 2023/01/04 10:37:03 1.26
+++ pkgsrc/www/py-httpx/Makefile 2023/04/17 09:58:49 1.27
@@ -1,30 +1,29 @@ @@ -1,30 +1,29 @@
1# $NetBSD: Makefile,v 1.26 2023/01/04 10:37:03 adam Exp $ 1# $NetBSD: Makefile,v 1.27 2023/04/17 09:58:49 adam Exp $
2 2
3DISTNAME= httpx-0.23.3 3DISTNAME= httpx-0.24.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}-charset-normalizer-[0-9]*:../../converters/py-charset-normalizer 
17DEPENDS+= ${PYPKGPREFIX}-httpcore>=0.15.0:../../www/py-httpcore 16DEPENDS+= ${PYPKGPREFIX}-httpcore>=0.15.0:../../www/py-httpcore
18DEPENDS+= ${PYPKGPREFIX}-rfc3986>=1.3:../../www/py-rfc3986 17DEPENDS+= ${PYPKGPREFIX}-idna-[0-9]*:../../www/py-idna
19DEPENDS+= ${PYPKGPREFIX}-sniffio-[0-9]*:../../misc/py-sniffio 18DEPENDS+= ${PYPKGPREFIX}-sniffio-[0-9]*:../../misc/py-sniffio
20 19
21USE_LANGUAGES= # none 20USE_LANGUAGES= # none
22 21
23PYTHON_VERSIONS_INCOMPATIBLE= 27 22PYTHON_VERSIONS_INCOMPATIBLE= 27
24 23
25post-install: 24post-install:
26 cd ${DESTDIR}${PREFIX}/bin && \ 25 cd ${DESTDIR}${PREFIX}/bin && \
27 ${MV} httpx httpx-${PYVERSSUFFIX} || ${TRUE} 26 ${MV} httpx httpx-${PYVERSSUFFIX} || ${TRUE}
28 27
29.include "../../lang/python/wheel.mk" 28.include "../../lang/python/wheel.mk"
30.include "../../mk/bsd.pkg.mk" 29.include "../../mk/bsd.pkg.mk"

cvs diff -r1.10 -r1.11 pkgsrc/www/py-httpx/PLIST (expand / switch to unified diff)

--- pkgsrc/www/py-httpx/PLIST 2022/11/18 18:53:47 1.10
+++ pkgsrc/www/py-httpx/PLIST 2023/04/17 09:58:49 1.11
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.10 2022/11/18 18:53:47 adam Exp $ 1@comment $NetBSD: PLIST,v 1.11 2023/04/17 09:58:49 adam Exp $
2bin/httpx-${PYVERSSUFFIX} 2bin/httpx-${PYVERSSUFFIX}
3${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER 3${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
4${PYSITELIB}/${WHEEL_INFODIR}/METADATA 4${PYSITELIB}/${WHEEL_INFODIR}/METADATA
5${PYSITELIB}/${WHEEL_INFODIR}/RECORD 5${PYSITELIB}/${WHEEL_INFODIR}/RECORD
6${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED 6${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
7${PYSITELIB}/${WHEEL_INFODIR}/WHEEL 7${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
8${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json 8${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
9${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt 9${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
10${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.md 10${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.md
11${PYSITELIB}/httpx/__init__.py 11${PYSITELIB}/httpx/__init__.py
12${PYSITELIB}/httpx/__init__.pyc 12${PYSITELIB}/httpx/__init__.pyc
13${PYSITELIB}/httpx/__version__.py 13${PYSITELIB}/httpx/__version__.py
14${PYSITELIB}/httpx/__version__.pyc 14${PYSITELIB}/httpx/__version__.pyc
@@ -40,18 +40,20 @@ ${PYSITELIB}/httpx/_transports/__init__. @@ -40,18 +40,20 @@ ${PYSITELIB}/httpx/_transports/__init__.
40${PYSITELIB}/httpx/_transports/__init__.pyc 40${PYSITELIB}/httpx/_transports/__init__.pyc
41${PYSITELIB}/httpx/_transports/asgi.py 41${PYSITELIB}/httpx/_transports/asgi.py
42${PYSITELIB}/httpx/_transports/asgi.pyc 42${PYSITELIB}/httpx/_transports/asgi.pyc
43${PYSITELIB}/httpx/_transports/base.py 43${PYSITELIB}/httpx/_transports/base.py
44${PYSITELIB}/httpx/_transports/base.pyc 44${PYSITELIB}/httpx/_transports/base.pyc
45${PYSITELIB}/httpx/_transports/default.py 45${PYSITELIB}/httpx/_transports/default.py
46${PYSITELIB}/httpx/_transports/default.pyc 46${PYSITELIB}/httpx/_transports/default.pyc
47${PYSITELIB}/httpx/_transports/mock.py 47${PYSITELIB}/httpx/_transports/mock.py
48${PYSITELIB}/httpx/_transports/mock.pyc 48${PYSITELIB}/httpx/_transports/mock.pyc
49${PYSITELIB}/httpx/_transports/wsgi.py 49${PYSITELIB}/httpx/_transports/wsgi.py
50${PYSITELIB}/httpx/_transports/wsgi.pyc 50${PYSITELIB}/httpx/_transports/wsgi.pyc
51${PYSITELIB}/httpx/_types.py 51${PYSITELIB}/httpx/_types.py
52${PYSITELIB}/httpx/_types.pyc 52${PYSITELIB}/httpx/_types.pyc
 53${PYSITELIB}/httpx/_urlparse.py
 54${PYSITELIB}/httpx/_urlparse.pyc
53${PYSITELIB}/httpx/_urls.py 55${PYSITELIB}/httpx/_urls.py
54${PYSITELIB}/httpx/_urls.pyc 56${PYSITELIB}/httpx/_urls.pyc
55${PYSITELIB}/httpx/_utils.py 57${PYSITELIB}/httpx/_utils.py
56${PYSITELIB}/httpx/_utils.pyc 58${PYSITELIB}/httpx/_utils.pyc
57${PYSITELIB}/httpx/py.typed 59${PYSITELIB}/httpx/py.typed

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

--- pkgsrc/www/py-httpx/distinfo 2023/01/04 10:37:03 1.25
+++ pkgsrc/www/py-httpx/distinfo 2023/04/17 09:58:49 1.26
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.25 2023/01/04 10:37:03 adam Exp $ 1$NetBSD: distinfo,v 1.26 2023/04/17 09:58:49 adam Exp $
2 2
3BLAKE2s (httpx-0.23.3.tar.gz) = eb506878b1d877acae4f805aec3747962fc65258f9517b696690414740779f7f 3BLAKE2s (httpx-0.24.0.tar.gz) = c1a9253090a8190eba467aeeda2e5b2ad7ff977a0f803398619eb291778722bd
4SHA512 (httpx-0.23.3.tar.gz) = f25e935b97e246650ee29e89cde2a026550617c3d2734bede9541f013dd51b314cbb0d8d9a2103d01f58961649569db5535b54d0f12dd3060381a78a95373d42 4SHA512 (httpx-0.24.0.tar.gz) = 3c04b77c54f49b5096330b6077f4e541b67564a5ec30c0da4aad3f7640e37bb52586166f3442b111426b8f0d1550a5d8769e5e83143638852ee47b3739337ef4
5Size (httpx-0.23.3.tar.gz) = 77527 bytes 5Size (httpx-0.24.0.tar.gz) = 81136 bytes