Subject: CVS commit: pkgsrc/www/py-httpx
From: Adam Ciarcinski
Date: 2021-10-21 15:16:15
Message id: 20211021131615.7ACAFFA97@cvs.NetBSD.org

Log Message:
py-httpx: updated to 0.20.0

0.20.0:

Changed

* The `allow_redirects` flag is now `follow_redirects` and defaults to `False`.
* The `raise_for_status()` method will now raise an exception for any responses
  except those with 2xx status codes. Previously only 4xx and 5xx status codes
  would result in an exception.
* The low-level transport API changes to the much simpler `response = \ 
transport.handle_request(request)`.
* The `client.send()` method no longer accepts a `timeout=...` argument, but the
  `client.build_request()` does. This required by the signature change of the
  Transport API. The request timeout configuration is now stored on the request
  instance, as `request.extensions['timeout']`.

Added

* Added the `httpx` command-line client.
* Response instances now include `.is_informational`, `.is_success`, \ 
`.is_redirect`, `.is_client_error`, and `.is_server_error`
  properties for checking 1xx, 2xx, 3xx, 4xx, and 5xx response types. Note that \ 
the behaviour of `.is_redirect` is slightly different in that it now returns \ 
True for all 3xx responses, in order to allow for a consistent set of properties \ 
onto the different HTTP status code types. The `response.has_redirect_location` \ 
location may be used to determine responses with properly formed URL redirects.

Fixed

* `response.iter_bytes()` no longer raises a ValueError when called on a \ 
response with no content.
* The `'wsgi.error'` configuration now defaults to `sys.stderr`, and is \ 
corrected to be a `TextIO` interface, not a `BytesIO` interface. Additionally, \ 
the WSGITransport now accepts a `wsgi_error` confguration.
* Follow the WSGI spec by properly closing the iterable returned by the application.

Files:
RevisionActionfile
1.15modifypkgsrc/www/py-httpx/Makefile
1.8modifypkgsrc/www/py-httpx/PLIST
1.16modifypkgsrc/www/py-httpx/distinfo
1.1addpkgsrc/www/py-httpx/ALTERNATIVES