pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/py-httpx
Module Name: pkgsrc
Committed By: adam
Date: Tue Jan 14 16:10:53 UTC 2020
Modified Files:
pkgsrc/www/py-httpx: Makefile PLIST distinfo
Log Message:
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`.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/py-httpx/Makefile \
pkgsrc/www/py-httpx/PLIST pkgsrc/www/py-httpx/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-httpx/Makefile
diff -u pkgsrc/www/py-httpx/Makefile:1.1 pkgsrc/www/py-httpx/Makefile:1.2
--- pkgsrc/www/py-httpx/Makefile:1.1 Wed Jan 8 20:54:27 2020
+++ pkgsrc/www/py-httpx/Makefile Tue Jan 14 16:10:53 2020
@@ -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/}
Index: pkgsrc/www/py-httpx/PLIST
diff -u pkgsrc/www/py-httpx/PLIST:1.1 pkgsrc/www/py-httpx/PLIST:1.2
--- pkgsrc/www/py-httpx/PLIST:1.1 Wed Jan 8 20:54:27 2020
+++ pkgsrc/www/py-httpx/PLIST Tue Jan 14 16:10:53 2020
@@ -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/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
Index: pkgsrc/www/py-httpx/distinfo
diff -u pkgsrc/www/py-httpx/distinfo:1.1 pkgsrc/www/py-httpx/distinfo:1.2
--- pkgsrc/www/py-httpx/distinfo:1.1 Wed Jan 8 20:54:27 2020
+++ pkgsrc/www/py-httpx/distinfo Tue Jan 14 16:10:53 2020
@@ -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