pkgsrc-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.11.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5df46df649c4
branches:  trunk
changeset: 408983:5df46df649c4
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Jan 14 16:10:53 2020 +0000

description:
py-httpx: updated to 0.11.0

0.11.0:

The 0.11 release reintroduces our sync support, so that `httpx` now supports both a standard thread-concurrency API, and an async API.

Existing async `httpx` users that are upgrading to 0.11 should ensure that:

* Async codebases should always use a client instance to make requests, instead of the top-level API.
* The async client is named as `httpx.AsyncClient()`, instead of `httpx.Client()`.
* When instantiating proxy configurations use the `httpx.Proxy()` class, instead of the previous `httpx.HTTPProxy()`. This new configuration class works for configuring both sync and async clients.

We believe the API is now pretty much stable, and are aiming for a 1.0 release sometime on or before April 2020.

Changed
- Top level API such as `httpx.get(url, ...)`, `httpx.post(url, ...)`, `httpx.request(method, url, ...)` becomes synchronous.
- Added `httpx.Client()` for synchronous clients, with `httpx.AsyncClient` being used for async clients.
- Switched to `proxies=httpx.Proxy(...)` for proxy configuration.
- Network connection errors are wrapped in `httpx.NetworkError`, rather than exposing lower-level exception types directly.

Removed
- The `request.url.origin` property and `httpx.Origin` class are no longer available.
- The per-request `cert`, `verify`, and `trust_env` arguments are escalated from raising errors if used, to no longer being available. These arguments should be used on a per-client instance instead, 
or in the top-level API.
- The `stream` argument has escalated from raising an error when used, to no longer being available. Use the `client.stream(...)` or `httpx.stream()` streaming API instead.

Fixed
- Redirect loop detection matches against `(method, url)` rather than `url`.

diffstat:

 www/py-httpx/Makefile |   4 ++--
 www/py-httpx/PLIST    |   8 +++++++-
 www/py-httpx/distinfo |  10 +++++-----
 3 files changed, 14 insertions(+), 8 deletions(-)

diffs (49 lines):

diff -r 2fa4ed7acfb3 -r 5df46df649c4 www/py-httpx/Makefile
--- a/www/py-httpx/Makefile     Tue Jan 14 16:08:37 2020 +0000
+++ b/www/py-httpx/Makefile     Tue Jan 14 16:10:53 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2020/01/08 20:54:27 adam Exp $
+# $NetBSD: Makefile,v 1.2 2020/01/14 16:10:53 adam Exp $
 
-DISTNAME=      httpx-0.10.1
+DISTNAME=      httpx-0.11.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/httpx/}
diff -r 2fa4ed7acfb3 -r 5df46df649c4 www/py-httpx/PLIST
--- a/www/py-httpx/PLIST        Tue Jan 14 16:08:37 2020 +0000
+++ b/www/py-httpx/PLIST        Tue Jan 14 16:10:53 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2020/01/08 20:54:27 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/01/14 16:10:53 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -68,6 +68,12 @@
 ${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
diff -r 2fa4ed7acfb3 -r 5df46df649c4 www/py-httpx/distinfo
--- a/www/py-httpx/distinfo     Tue Jan 14 16:08:37 2020 +0000
+++ b/www/py-httpx/distinfo     Tue Jan 14 16:10:53 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2020/01/08 20:54:27 adam Exp $
+$NetBSD: distinfo,v 1.2 2020/01/14 16:10:53 adam Exp $
 
-SHA1 (httpx-0.10.1.tar.gz) = 22d0956f45463fec822af13ccfd7271f24afd611
-RMD160 (httpx-0.10.1.tar.gz) = 535b9a22b1ea585bdf6427ebaa6ab3939cd0a7f7
-SHA512 (httpx-0.10.1.tar.gz) = 4d0ab1d04b8796116745c479232ae3d0510f5733fdffbb45d505dca5d888834c11e9194fc82db72daca9c8e73e0114e45db349b75555268b22289f2ea5a604a2
-Size (httpx-0.10.1.tar.gz) = 58429 bytes
+SHA1 (httpx-0.11.0.tar.gz) = f29c8c07238bf0bc676198d5c211e94acee37c1f
+RMD160 (httpx-0.11.0.tar.gz) = da120c426523fcdf9e1f9ff84322065d0e157d39
+SHA512 (httpx-0.11.0.tar.gz) = a4f1cee7c80a9e4efd0ba5e8441bd4e8a56ee230c420b5566a0471287f15b6a91992c85b220cf31917bf86bb0d8a9e3baa26d6a554cef91896a44e5fdf331f1d
+Size (httpx-0.11.0.tar.gz) = 65169 bytes



Home | Main Index | Thread Index | Old Index