Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-httpx py-httpx: updated to 0.13.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/effab14cd2c1
branches:  trunk
changeset: 433526:effab14cd2c1
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Jun 03 14:21:26 2020 +0000

description:
py-httpx: updated to 0.13.3

0.13.3:

Fixed

* Include missing keepalive expiry configuration.
* Improved error message when URL redirect has a custom scheme.


0.13.2:

Fixed

* Include explicit "Content-Length: 0" on POST, PUT, PATCH if no request body is used.
* Add `http2` option to `httpx.Client`.
* Tighten up API typing in places.


0.13.1:

Fixed

* Fix pool options deprecation warning.
* Include `httpx.URLLib3ProxyTransport` in top-level API.


0.13.0:

This release switches to `httpcore` for all the internal networking, which means:

* We're using the same codebase for both our sync and async clients.
* HTTP/2 support is now available with the sync client.
* We no longer have a `urllib3` dependency for our sync client, although there is still an *optional* `URLLib3Transport` class.

It also means we've had to remove our UDS support, since maintaining that would have meant having to push back our work towards a 1.0 release, which isn't a trade-off we wanted to make.

We also now have [a public "Transport API"](https://www.python-httpx.org/advanced/#custom-transports), which you can use to implement custom transport implementations against. This formalises and 
replaces our previously private "Dispatch API".

Changed

* Use `httpcore` for underlying HTTP transport. Drop `urllib3` requirement.
* Rename pool limit options from `soft_limit`/`hard_limit` to `max_keepalive`/`max_connections`.
* The previous private "Dispatch API" has now been promoted to a public "Transport API". When customizing the transport use `transport=...`. The `ASGIDispatch` and `WSGIDispatch` class naming is 
deprecated in favour of `ASGITransport` and `WSGITransport`.

Added

* Added `URLLib3Transport` class for optional `urllib3` transport support.
* Streaming multipart uploads.
* Logging via HTTPCORE_LOG_LEVEL and HTTPX_LOG_LEVEL environment variables
and TRACE level logging.

Fixed

* Performance improvement in brotli decoder.
* Proper warning level of deprecation notice in `Response.stream` and `Response.raw`.
* Fix support for generator based WSGI apps.
* Reuse of connections on HTTP/2 in close concurrency situations.
* Honor HTTP/2 max concurrent streams settings
* Fix bytes support in multipart uploads.
* Improve typing support for `files=...`.

Removed

* Dropped support for `Client(uds=...)`

diffstat:

 www/py-httpx/Makefile |   9 +++----
 www/py-httpx/PLIST    |  62 +++++++++++++-------------------------------------
 www/py-httpx/distinfo |  10 ++++----
 3 files changed, 25 insertions(+), 56 deletions(-)

diffs (132 lines):

diff -r c9affbca00fa -r effab14cd2c1 www/py-httpx/Makefile
--- a/www/py-httpx/Makefile     Wed Jun 03 14:18:43 2020 +0000
+++ b/www/py-httpx/Makefile     Wed Jun 03 14:21:26 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2020/03/20 07:43:06 adam Exp $
+# $NetBSD: Makefile,v 1.6 2020/06/03 14:21:26 adam Exp $
 
-DISTNAME=      httpx-0.12.1
+DISTNAME=      httpx-0.13.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/httpx/}
@@ -12,12 +12,11 @@
 
 DEPENDS+=      ${PYPKGPREFIX}-certifi-[0-9]*:../../security/py-certifi
 DEPENDS+=      ${PYPKGPREFIX}-chardet>=3.0.0:../../converters/py-chardet
-DEPENDS+=      ${PYPKGPREFIX}-h11>=0.8.0:../../www/py-h11
-DEPENDS+=      ${PYPKGPREFIX}-h2>=3.0:../../www/py-h2
+DEPENDS+=      ${PYPKGPREFIX}-httpcore>=0.9.0:../../www/py-httpcore
 DEPENDS+=      ${PYPKGPREFIX}-hstspreload-[0-9]*:../../www/py-hstspreload
 DEPENDS+=      ${PYPKGPREFIX}-idna>=2.0:../../www/py-idna
 DEPENDS+=      ${PYPKGPREFIX}-rfc3986>=1.3:../../www/py-rfc3986
-DEPENDS+=      ${PYPKGPREFIX}-sniffio>=1.0.0:../../misc/py-sniffio
+DEPENDS+=      ${PYPKGPREFIX}-sniffio-[0-9]*:../../misc/py-sniffio
 
 USE_LANGUAGES= # none
 
diff -r c9affbca00fa -r effab14cd2c1 www/py-httpx/PLIST
--- a/www/py-httpx/PLIST        Wed Jun 03 14:18:43 2020 +0000
+++ b/www/py-httpx/PLIST        Wed Jun 03 14:21:26 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2020/03/10 07:36:16 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2020/06/03 14:21:26 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -17,21 +17,6 @@
 ${PYSITELIB}/httpx/_auth.py
 ${PYSITELIB}/httpx/_auth.pyc
 ${PYSITELIB}/httpx/_auth.pyo
-${PYSITELIB}/httpx/_backends/__init__.py
-${PYSITELIB}/httpx/_backends/__init__.pyc
-${PYSITELIB}/httpx/_backends/__init__.pyo
-${PYSITELIB}/httpx/_backends/asyncio.py
-${PYSITELIB}/httpx/_backends/asyncio.pyc
-${PYSITELIB}/httpx/_backends/asyncio.pyo
-${PYSITELIB}/httpx/_backends/auto.py
-${PYSITELIB}/httpx/_backends/auto.pyc
-${PYSITELIB}/httpx/_backends/auto.pyo
-${PYSITELIB}/httpx/_backends/base.py
-${PYSITELIB}/httpx/_backends/base.pyc
-${PYSITELIB}/httpx/_backends/base.pyo
-${PYSITELIB}/httpx/_backends/trio.py
-${PYSITELIB}/httpx/_backends/trio.pyc
-${PYSITELIB}/httpx/_backends/trio.pyo
 ${PYSITELIB}/httpx/_client.py
 ${PYSITELIB}/httpx/_client.pyc
 ${PYSITELIB}/httpx/_client.pyo
@@ -44,36 +29,6 @@
 ${PYSITELIB}/httpx/_decoders.py
 ${PYSITELIB}/httpx/_decoders.pyc
 ${PYSITELIB}/httpx/_decoders.pyo
-${PYSITELIB}/httpx/_dispatch/__init__.py
-${PYSITELIB}/httpx/_dispatch/__init__.pyc
-${PYSITELIB}/httpx/_dispatch/__init__.pyo
-${PYSITELIB}/httpx/_dispatch/asgi.py
-${PYSITELIB}/httpx/_dispatch/asgi.pyc
-${PYSITELIB}/httpx/_dispatch/asgi.pyo
-${PYSITELIB}/httpx/_dispatch/base.py
-${PYSITELIB}/httpx/_dispatch/base.pyc
-${PYSITELIB}/httpx/_dispatch/base.pyo
-${PYSITELIB}/httpx/_dispatch/connection.py
-${PYSITELIB}/httpx/_dispatch/connection.pyc
-${PYSITELIB}/httpx/_dispatch/connection.pyo
-${PYSITELIB}/httpx/_dispatch/connection_pool.py
-${PYSITELIB}/httpx/_dispatch/connection_pool.pyc
-${PYSITELIB}/httpx/_dispatch/connection_pool.pyo
-${PYSITELIB}/httpx/_dispatch/http11.py
-${PYSITELIB}/httpx/_dispatch/http11.pyc
-${PYSITELIB}/httpx/_dispatch/http11.pyo
-${PYSITELIB}/httpx/_dispatch/http2.py
-${PYSITELIB}/httpx/_dispatch/http2.pyc
-${PYSITELIB}/httpx/_dispatch/http2.pyo
-${PYSITELIB}/httpx/_dispatch/proxy_http.py
-${PYSITELIB}/httpx/_dispatch/proxy_http.pyc
-${PYSITELIB}/httpx/_dispatch/proxy_http.pyo
-${PYSITELIB}/httpx/_dispatch/urllib3.py
-${PYSITELIB}/httpx/_dispatch/urllib3.pyc
-${PYSITELIB}/httpx/_dispatch/urllib3.pyo
-${PYSITELIB}/httpx/_dispatch/wsgi.py
-${PYSITELIB}/httpx/_dispatch/wsgi.pyc
-${PYSITELIB}/httpx/_dispatch/wsgi.pyo
 ${PYSITELIB}/httpx/_exceptions.py
 ${PYSITELIB}/httpx/_exceptions.pyc
 ${PYSITELIB}/httpx/_exceptions.pyo
@@ -83,6 +38,21 @@
 ${PYSITELIB}/httpx/_status_codes.py
 ${PYSITELIB}/httpx/_status_codes.pyc
 ${PYSITELIB}/httpx/_status_codes.pyo
+${PYSITELIB}/httpx/_transports/__init__.py
+${PYSITELIB}/httpx/_transports/__init__.pyc
+${PYSITELIB}/httpx/_transports/__init__.pyo
+${PYSITELIB}/httpx/_transports/asgi.py
+${PYSITELIB}/httpx/_transports/asgi.pyc
+${PYSITELIB}/httpx/_transports/asgi.pyo
+${PYSITELIB}/httpx/_transports/urllib3.py
+${PYSITELIB}/httpx/_transports/urllib3.pyc
+${PYSITELIB}/httpx/_transports/urllib3.pyo
+${PYSITELIB}/httpx/_transports/wsgi.py
+${PYSITELIB}/httpx/_transports/wsgi.pyc
+${PYSITELIB}/httpx/_transports/wsgi.pyo
+${PYSITELIB}/httpx/_types.py
+${PYSITELIB}/httpx/_types.pyc
+${PYSITELIB}/httpx/_types.pyo
 ${PYSITELIB}/httpx/_utils.py
 ${PYSITELIB}/httpx/_utils.pyc
 ${PYSITELIB}/httpx/_utils.pyo
diff -r c9affbca00fa -r effab14cd2c1 www/py-httpx/distinfo
--- a/www/py-httpx/distinfo     Wed Jun 03 14:18:43 2020 +0000
+++ b/www/py-httpx/distinfo     Wed Jun 03 14:21:26 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2020/03/20 07:43:06 adam Exp $
+$NetBSD: distinfo,v 1.6 2020/06/03 14:21:26 adam Exp $
 
-SHA1 (httpx-0.12.1.tar.gz) = 04a592716343537a70e8472a9b738eef09a785d2
-RMD160 (httpx-0.12.1.tar.gz) = 2f40a9a603160d705a29ae0d0de52234506a0dca
-SHA512 (httpx-0.12.1.tar.gz) = 9ebbc6592fa8b1f0711110b68cbc316496d826cec46f9038c34a2a7c68427180e98d1c3941b218648753ba5586ef7e3b80593583a9a78a031d1b4519b33b9c32
-Size (httpx-0.12.1.tar.gz) = 67139 bytes
+SHA1 (httpx-0.13.3.tar.gz) = 37906a156699303a108bb8e1e8fe8442152c4269
+RMD160 (httpx-0.13.3.tar.gz) = 53753cf6e3a7f7a074903c6023c819ca5192be69
+SHA512 (httpx-0.13.3.tar.gz) = 4c71614bc4910363ac8c3617f5ffb44cd0ab60f9a0736588f13f91e7bef2cc9c84b8e4b1b01c46f1e2af52945ccd627448e2f35bab3d16291d02c27feb7f611c
+Size (httpx-0.13.3.tar.gz) = 59369 bytes



Home | Main Index | Thread Index | Old Index