./www/py-urllib3, HTTP library with thread-safe connection pooling

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.2.3, Package name: py312-urllib3-2.2.3, Maintainer: imil

HTTP library with thread-safe connection pooling, file post, and more.

Highlights

* Re-use the same socket connection for multiple requests (HTTPConnectionPool
and HTTPSConnectionPool) (with optional client-side certificate
verification).
* File posting (encode_multipart_formdata).
* Built-in redirection and retries (optional).
* Supports gzip and deflate decoding.
* Thread-safe and sanity-safe.
* Works with AppEngine, gevent, and eventlib.
* Tested on Python 2.6+ and Python 3.2+, 100% unit test coverage.
* Small and easy to understand codebase perfect for extending and building
upon. For a more comprehensive solution, have a look at Requests which is
also powered by urllib3.


Required to run:
[security/py-OpenSSL] [devel/py-setuptools] [security/py-cryptography] [www/py-idna] [security/py-certifi] [net/py-Socks] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Package options: brotli, zstd

Master sites:

Filesize: 293.63 KB

Version history: (Expand)


CVS history: (Expand)


   2024-09-17 19:21:37 by John Klos | Files touched by this commit (1)
Log message:
Fixed typo (superfluous quote).
   2024-09-12 21:38:22 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
py-urllib3: updated to 2.2.3

2.2.3 (2024-09-12)
==================

Features
--------

- Added support for Python 3.13.

Bugfixes
--------

- Fixed the default encoding of chunked request bodies to be UTF-8 instead of \ 
ISO-8859-1.
  All other methods of supplying a request body already use UTF-8 starting in \ 
urllib3 v2.0.
- Fixed ResourceWarning on CONNECT with Python < 3.11.4 by backporting \ 
https://github.com/python/cpython/issues/103472.
- Adjust tolerance for floating-point comparison on Windows to avoid flakiness in CI
- Fixed a crash where certain standard library hash functions were absent in \ 
restricted environments.
- Fixed mypy error when adding to ``HTTPConnection.default_socket_options``.

HTTP/2 (experimental)
---------------------

HTTP/2 support is still in early development.

- Excluded Transfer-Encoding: chunked from HTTP/2 request body
- Added version checking for ``h2`` (https://pypi.org/project/h2/) usage.

  Now only accepting supported h2 major version 4.x.x.
- Added a probing mechanism for determining whether a given target origin
  supports HTTP/2 via ALPN.
- Add support for sending a request body with HTTP/2

Deprecations and Removals
-------------------------

- Note for downstream distributors: the ``_version.py`` file has been removed \ 
and is now created at build time by hatch-vcs.
- Drop support for end-of-life PyPy3.8 and PyPy3.9.
   2024-08-15 23:55:19 by Thomas Klausner | Files touched by this commit (6)
Log message:
*: remove Python 3.9 specific dependencies

in a quest to fix pbulk
   2024-06-17 17:26:36 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-urllib3: updated to 2.2.2

2.2.2 (2024-06-17)

- Added the ``Proxy-Authorization`` header to the list of headers to strip from \ 
requests when redirecting to a different host. As before, different headers can \ 
be set via ``Retry.remove_headers_on_redirect``.
- Allowed passing negative integers as ``amt`` to read methods of \ 
``http.client.HTTPResponse`` as an alternative to ``None``.
- Fixed return types representing copying actions to use ``typing.Self``.
   2024-05-10 12:44:25 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-urllib3: set python incompatible versions before including bsd.options.mk
   2024-03-19 11:58:01 by Nia Alarie | Files touched by this commit (2)
Log message:
py-urllib3: Make optional dependencies actually optional.
   2024-02-18 09:24:12 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-urllib3: updated to 2.2.1

2.2.1 (2024-02-16)

- Fixed issue where ``InsecureRequestWarning`` was emitted for HTTPS connections \ 
when using Emscripten.
- Fixed ``HTTPConnectionPool.urlopen`` to stop automatically casting non-proxy \ 
headers to ``HTTPHeaderDict``. This change was premature as it did not apply to \ 
proxy headers and ``HTTPHeaderDict`` does not handle byte header values \ 
correctly yet.
- Changed ``ProtocolError`` to ``InvalidChunkLength`` when response terminates \ 
before the chunk length is sent.
- Changed ``ProtocolError`` to be more verbose on incomplete reads with excess \ 
content.
   2024-01-30 21:04:53 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-urllib3: updated to 2.2.0

2.2.0 (2024-01-30)

- Added support for `Emscripten and Pyodide \ 
<https://urllib3.readthedocs.io/en/latest/reference/contrib/emscripten.html>`__, \ 
including streaming support in cross-origin isolated browser environments where \ 
threading is enabled.
- Added support for ``HTTPResponse.read1()`` method.
- Added rudimentary support for HTTP/2.
- Fixed issue where requests against urls with trailing dots were failing due to \ 
SSL errors
  when using proxy.
- Fixed ``HTTPConnection.proxy_is_verified`` and \ 
``HTTPSConnection.proxy_is_verified``
  to be always set to a boolean after connecting to a proxy. It could be
  ``None`` in some cases previously.
- Fixed an issue where ``headers`` passed in a request with ``json=`` would be \ 
mutated
- Fixed ``HTTPSConnection.is_verified`` to be set to ``False`` when connecting
  from a HTTPS proxy to an HTTP target. It was set to ``True`` previously.
- Fixed handling of new error message from OpenSSL 3.2.0 when configuring an \ 
HTTP proxy as HTTPS
- Fixed TLS 1.3 post-handshake auth when the server certificate validation is \ 
disabled
- Note for downstream distributors: To run integration tests, you now need to \ 
run the tests a second
  time with the ``--integration`` pytest flag.