14 Commits

Author SHA256 Message Date
9b7c83e503 Accepting request 1287779 from devel:languages:python
- Update to 2.5.0:
  * Security issues
    Pool managers now properly control redirects when retries is passed
    (CVE-2025-50181, GHSA-pq67-6m6q-mj2v, bsc#1244925)
    Redirects are now controlled by urllib3 in the Node.js runtime
    (CVE-2025-50182, GHSA-48p4-8xcf-vxj5, bsc#1244924)
  * Features
    Added support for the compression.zstd module that is new in Python 3.14.
    Added support for version 0.5 of hatch-vcs
  * Bugfixes
    Raised exception for HTTPResponse.shutdown on a connection already
    released to the pool.
    Fixed incorrect CONNECT statement when using an IPv6 proxy with
    connection_from_host. Previously would not be wrapped in [].

OBS-URL: https://build.opensuse.org/request/show/1287779
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-urllib3?expand=0&rev=72
2025-06-24 18:45:47 +00:00
bfb74b5d59 - Update to 2.5.0:
* Security issues
    Pool managers now properly control redirects when retries is passed
    (CVE-2025-50181, GHSA-pq67-6m6q-mj2v, bsc#1244925)
    Redirects are now controlled by urllib3 in the Node.js runtime
    (CVE-2025-50182, GHSA-48p4-8xcf-vxj5, bsc#1244924)
  * Features
    Added support for the compression.zstd module that is new in Python 3.14.
    Added support for version 0.5 of hatch-vcs
  * Bugfixes
    Raised exception for HTTPResponse.shutdown on a connection already
    released to the pool.
    Fixed incorrect CONNECT statement when using an IPv6 proxy with
    connection_from_host. Previously would not be wrapped in [].

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=190
2025-06-23 02:04:11 +00:00
c51cbf40e7 Accepting request 1280514 from devel:languages:python
- Update to 2.4.0
  * Applied PEP 639 by specifying the license fields in
    pyproject.toml. (#3522)
  * Updated exceptions to save and restore more properties during the
    pickle/serialization process. (#3567)
  * Added verify_flags option to create_urllib3_context with a default
    of VERIFY_X509_PARTIAL_CHAIN and VERIFY_X509_STRICT for Python
    3.13+. (#3571)
  * Fixed a bug with partial reads of streaming data in Emscripten.
    (#3555)
  * Switched to uv for installing development dependecies. (#3550)
  * Removed the multiple.intoto.jsonl asset from GitHub releases.
    Attestation of release files since v2.3.0 can be found on PyPI.
    (#3566)
- 2.3.0:
  * Added HTTPResponse.shutdown() to stop any ongoing or future reads
    for a specific response. It calls shutdown(SHUT_RD) on the
    underlying socket. This feature was sponsored by LaunchDarkly.
    (#2868)
  * Added support for JavaScript Promise Integration on Emscripten.
    This enables more efficient WebAssembly requests and streaming,
    and makes it possible to use in Node.js if you launch it as node
    --experimental-wasm-stack-switching. (#3400)
  * Added the proxy_is_tunneling property to HTTPConnection and
    HTTPSConnection. (#3285)
  * Added pickling support to NewConnectionError and
    NameResolutionError. (#3480)
  * Fixed an issue in debug logs where the HTTP version was rendering
    as "HTTP/11" instead of "HTTP/1.1". (#3489)
  * Removed support for Python 3.8. (#3492)

OBS-URL: https://build.opensuse.org/request/show/1280514
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-urllib3?expand=0&rev=71
2025-05-31 17:14:11 +00:00
b047ad7493 - Update to 2.4.0
* Applied PEP 639 by specifying the license fields in
    pyproject.toml. (#3522)
  * Updated exceptions to save and restore more properties during the
    pickle/serialization process. (#3567)
  * Added verify_flags option to create_urllib3_context with a default
    of VERIFY_X509_PARTIAL_CHAIN and VERIFY_X509_STRICT for Python
    3.13+. (#3571)
  * Fixed a bug with partial reads of streaming data in Emscripten.
    (#3555)
  * Switched to uv for installing development dependecies. (#3550)
  * Removed the multiple.intoto.jsonl asset from GitHub releases.
    Attestation of release files since v2.3.0 can be found on PyPI.
    (#3566)
- 2.3.0:
  * Added HTTPResponse.shutdown() to stop any ongoing or future reads
    for a specific response. It calls shutdown(SHUT_RD) on the
    underlying socket. This feature was sponsored by LaunchDarkly.
    (#2868)
  * Added support for JavaScript Promise Integration on Emscripten.
    This enables more efficient WebAssembly requests and streaming,
    and makes it possible to use in Node.js if you launch it as node
    --experimental-wasm-stack-switching. (#3400)
  * Added the proxy_is_tunneling property to HTTPConnection and
    HTTPSConnection. (#3285)
  * Added pickling support to NewConnectionError and
    NameResolutionError. (#3480)
  * Fixed an issue in debug logs where the HTTP version was rendering
    as "HTTP/11" instead of "HTTP/1.1". (#3489)
  * Removed support for Python 3.8. (#3492)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=188
2025-05-27 09:29:34 +00:00
2262dc56eb - Skip test_close_after_handshake flaky test, it fails sometimes in
ppc64le and s390x architectures, bsc#1243583

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=187
2025-05-27 08:55:03 +00:00
54eda1f9f2 Accepting request 1232162 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1232162
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-urllib3?expand=0&rev=70
2024-12-19 20:40:18 +00:00
69de784631 Accepting request 1232160 from home:dgarcia:branches:devel:languages:python
- Skip some flaky tests that fail sometimes in OBS (bsc#1234681)

OBS-URL: https://build.opensuse.org/request/show/1232160
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=185
2024-12-19 10:26:30 +00:00
a5be242803 Accepting request 1231820 from devel:languages:python
- Ignore DeprecationWarning in tests (bsc#1234681)

OBS-URL: https://build.opensuse.org/request/show/1231820
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-urllib3?expand=0&rev=69
2024-12-18 19:09:10 +00:00
88a76d7d5a - Ignore DeprecationWarning in tests (bsc#1234681)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=183
2024-12-18 08:42:44 +00:00
f702af0f5d Accepting request 1205339 from devel:languages:python
- Update to 2.2.3:
  * 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
      python/cpython#103472.
    + Fixed a crash where certain standard library hash functions were absent
      in restricted environments.
    + 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 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 InvalidChunkLength to ProtocolError when response terminates
      before the chunk length is sent.
    + Changed ProtocolError to be more verbose on incomplete reads with
      excess content.
    + Added support for HTTPResponse.read1() method.
    + Fixed issue where requests against urls with trailing dots were
      failing due to SSL errors when using proxy.
    + Fixed HTTPConnection.proxy_is_verified and

OBS-URL: https://build.opensuse.org/request/show/1205339
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-urllib3?expand=0&rev=68
2024-10-03 16:00:38 +00:00
9687d3e2d5 Fiddle with changelog
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=181
2024-10-03 05:11:07 +00:00
29ba66e58c - Update to 2.2.3:
* 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
      python/cpython#103472.
    + Fixed a crash where certain standard library hash functions were absent
      in restricted environments.
    + 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 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 InvalidChunkLength to ProtocolError when response terminates
      before the chunk length is sent.
    + Changed ProtocolError to be more verbose on incomplete reads with
      excess content.
    + Added support for HTTPResponse.read1() method.
    + Fixed issue where requests against urls with trailing dots were
      failing due to SSL errors when using proxy.
    + Fixed HTTPConnection.proxy_is_verified and

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=180
2024-09-24 05:07:08 +00:00
ba032a537b Accepting request 1181456 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1181456
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-urllib3?expand=0&rev=67
2024-06-18 20:50:46 +00:00
f36007869a Accepting request 1181452 from home:mcalabkova:branches:devel:languages:python:patch
- Add CVE-2024-37891.patch (bsc#1226469)

OBS-URL: https://build.opensuse.org/request/show/1181452
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=178
2024-06-18 09:56:35 +00:00
4 changed files with 7 additions and 52 deletions

View File

@@ -1,48 +1,3 @@
-------------------------------------------------------------------
Wed Jan 7 09:49:28 UTC 2026 - Nico Krapp <nico.krapp@suse.com>
- Update to 2.6.2
* Fixed HTTPResponse.read_chunked() to properly handle leftover data in the
decoder's buffer when reading compressed chunked responses.
- Update to 2.6.1
* Restore previously removed HTTPResponse.getheaders() and
HTTPResponse.getheader() methods.
- Update to 2.6.0
* Security:
- Fixed a security issue where streaming API could improperly handle highly
compressed HTTP content ("decompression bombs") leading to excessive
resource consumption even when a small amount of data was requested.
Reading small chunks of compressed data is safer and much more efficient
now. (CVE-2025-66471, GHSA-2xpw-w6gg-jr37, bsc#1254867)
- Fixed a security issue where an attacker could compose an HTTP response
with virtually unlimited links in the Content-Encoding header, potentially
leading to a denial of service (DoS) attack by exhausting system resources
during decoding. The number of allowed chained encodings is now limited to
5. (CVE-2025-66418, GHSA-gm62-xv2j-4w53, bsc#1254866)
* Features:
- Enabled retrieval, deletion, and membership testing in HTTPHeaderDict
using bytes keys.
- Added host and port information to string representations of
HTTPConnection.
- Added support for Python 3.14 free-threading builds explicitly.
* Removals:
- Removed the HTTPResponse.getheaders() method in favor of
HTTPResponse.headers. Removed the HTTPResponse.getheader(name, default)
method in favor of HTTPResponse.headers.get(name, default).
* Bugfixes:
- Fixed redirect handling in urllib3.PoolManager when an integer is passed
for the retries parameter.
- Fixed HTTPConnectionPool when used in Emscripten with no explicit port.
- Fixed handling of SSLKEYLOGFILE with expandable variables.
* Misc:
- Changed the zstd extra to install backports.zstd instead of zstandard on
Python 3.13 and before.
- Improved the performance of content decoding by optimizing
BytesQueueBuffer class.
- Allowed building the urllib3 package with newer setuptools-scm v9.x.
- Ensured successful urllib3 builds by setting Hatchling requirement
to ≥ 1.27.0.
-------------------------------------------------------------------
Mon Jun 23 02:03:12 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-urllib3
#
# Copyright (c) 2026 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-urllib3%{psuffix}
Version: 2.6.2
Version: 2.5.0
Release: 0
Summary: HTTP library with thread-safe connection pooling, file post, and more
License: MIT
@@ -43,13 +43,13 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
#!BuildIgnore: python-requests
Requires: ca-certificates-mozilla
Recommends: python-Brotli >= 1.2.0
Recommends: python-Brotli >= 1.0.9
Recommends: python-PySocks >= 1.7.1
Recommends: python-h2 >= 4
Recommends: python-zstandard >= 0.18
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Brotli >= 1.2.0}
BuildRequires: %{python_module Brotli >= 1.0.9}
BuildRequires: %{python_module PySocks >= 1.7.1}
BuildRequires: %{python_module Quart >= 0.19}
BuildRequires: %{python_module cryptography >= 43}

BIN
urllib3-2.5.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:016f9c98bb7e98085cb2b4b17b87d2c702975664e4f060c6532e64d1c1a5e797
size 432930