Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-mitmproxy for
openSUSE:Factory checked in at 2026-02-03 21:33:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mitmproxy (Old)
and /work/SRC/openSUSE:Factory/.python-mitmproxy.new.1995 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mitmproxy"
Tue Feb 3 21:33:46 2026 rev:13 rq:1330697 version:12.2.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-mitmproxy/python-mitmproxy.changes
2025-02-10 18:27:23.828515359 +0100
+++
/work/SRC/openSUSE:Factory/.python-mitmproxy.new.1995/python-mitmproxy.changes
2026-02-03 21:34:52.829137868 +0100
@@ -1,0 +2,74 @@
+Tue Feb 3 08:09:10 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Add fix-async-tests.patch to fix async tests with latest pytest
+- Skip more tests that are failing in the latest version
+- Migrate to libalternatives for Tumbleweed and leap 16.0
+
+-------------------------------------------------------------------
+Sun Feb 1 07:00:17 UTC 2026 - Marius Grossu <[email protected]>
+
+- Update to 12.2.1:
+ * Make TCP inactivity timeout configurable through a new `tcp_timeout`
option (default: 600 seconds). * Previously, the timeout was hardcoded to 10
minutes for all TCP connections.
+ * Flush flow file after each flow to allow further processing.
+ * infer_content_encoding: Fallback to UTF-8 for more content types
+ * Remove `bless` from hex editors to avoid issues with macOS
+ * Improves `is_mostly_bin` check to support chinese characters
+ * Fix various issues in infer_content_encoding
+ * Add example addon to spoof DNS responses.
+ * Gracefully handle decoding of raw binary payloads that previously caused
* "Raw cannot decode" or "failed to parse as JSON" errors
+ * Show query parameters for empty-body requests in the mitmproxy console.
+ * mitmweb is now built with Vite, improving the development workflow.
+ * Fix URL of mitmweb when --web-host is an IPv6 address.
+ * Fix event loop leak when running tests
+ * Fix TypeScript build by adding React types and removing obsolete
`@ts-expect-error` directives.
+ * mitmproxy now supports Python 3.14. Binary releases ship with 3.14 by
default.
+ * Replace `htpasswd` file parser with a custom implementation to migrate off
unmaintained * `passlib` dependency. The new parser only supports bcrypt and
SHA-1 hashing. * Contributions for additional formats are welcome as long as
they don't introduce new * dependencies.
+ * Docker images are now build with Debian Trixie.
+ * Fix mitmweb auth cookie always using the default `web_port` option.
+ * fix: missing content-length header in curl export
+ * fix: update log message with correct header name
+ * Update deprecated `windows-2019` runner to `windows-2025`.
+ * Do not escape non-ascii characters in the JSON contentview.
+ * Fix crash in mitmweb when no explicit Server-Connection is logged.
+ * Add syntax highlighting for CSS and JavaScript contentviews.
+ * Display local timezone in the Timing tab of mitmweb.
+ * Prevent showing the quit message in the console when no flows are
available under specific configurations. * Upgrade hyper-h2 to fix a request
smuggling vulnerability that affects mitmproxy's * HTTP/2 -> HTTP/1
translation. (@mhils)
+ * Fix a race condition when updating the flow list in mitmweb.
+ * mitmweb now supports filtering by body contents (~b, ~bq, ~bs).
+ * Fix raw response export incorrectly zeroing non-zero `Content-Length`
header for HEAD requests.
+ * Fix concurrent mitmweb instances overwrite each other's auth cookie.
+ * Fix a crash when editing raw messages bodies in mitmproxy.
+ * Added an option to pass the web token as `Authentication: Bearer ...`
header
+ * In DNS proxy mode, user-provided addons now trigger before DNS resolution
has taken place.
+ * Contentviews can now be interactive and re-encode prettified data. * For
example, the new Protobuf view pretty-prints to YAML, which the user * can
edit and then re-serialize into binary representation.
+ * Replace the existing gRPC and Protobuf contentviews with an interactive
contentview that * supports both existing proto definitions and completely
unknown protos.
+ * The MsgPack contentview is now interactive, too.
+ * The contentview API has been drastically simplified. * Contentviews now
return a plain `str` with the prettified data. * Syntax highlighting is now
signaled off-band (and based on [tree-sitter]).
+ * Docs: Add new documentation page and API reference for contentviews.
+ * Contentviews can now be written in Rust for better performance and access
to * the crates ecosystem.
+ * Add a new feature to store streamed bodies for requests and responses.
+ * Add support for TLS 1.3 Post Handshake Authentication.
+ * Add search functionality to the documentation.
+ * Introduce a new theme for docs.mitmproxy.org.
+ * Add CRL entries to dummy cert when the upstream certificate has some.
+ * Fix a bug where mitmproxy would incorrectly send empty HTTP/2 data frames.
+ * Enhance homebrew installation command for Brewfile users.
+ * Fix a bug where mitmdump would exit prematurely in server replay mode.
+ * Fix a bug where WebSocket Messages view jumps to top when a message is
received
+ * Create content view for Socket.IO over WebSocket transport
+ * Correctly forward HTTP_1_1_REQUIRED errors in HTTP/2 streams.
+ * Fix a bug where HAR export would crash for malformed flows.
+ * Fix a bug where mitmweb would crash when viewing flows with undefined
headers.
+ * Fix a bug where mitmproxy does not listen on IPv4 and IPv6 by default in
wireguard mode.
+ * Adjust popover placement for browsers that support anchor positioning
(Chrome, Edge)
+ * Fix mitmweb crash when searching or highlighting using ~h, ~hq, or ~hs.
+ * `mitmproxy.dns.Message` has been renamed to `mitmproxy.dns.DNSMessage`
+ * Added support for selecting multiple flows in mitmweb using Ctrl+Click and
Shift+Click. Multi-selection is now supported for deleting, duplicating,
marking, reverting, replaying ,resuming, and aborting flows.
+ * Update mitmproxy_rs dependency to fix several bugs in local capture mode.
+ * Add documentation for local capture mode.
+ * Revise documentation on proxy modes.
+ * Add a log message to point Docker mitmweb users towards `web_password`.
+ * Fix a bug where UTF-8 surrogates would crash the export addon.
+ * Add help entries for all options in mitmweb that didn't have them.
+
+-------------------------------------------------------------------
Old:
----
mitmproxy-11.1.2.tar.gz
New:
----
fix-async-tests.patch
mitmproxy-12.2.1.tar.gz
----------(New B)----------
New:
- Add fix-async-tests.patch to fix async tests with latest pytest
- Skip more tests that are failing in the latest version
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-mitmproxy.spec ++++++
--- /var/tmp/diff_new_pack.y2Rbc4/_old 2026-02-03 21:34:53.609170651 +0100
+++ /var/tmp/diff_new_pack.y2Rbc4/_new 2026-02-03 21:34:53.613170818 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-mitmproxy
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,16 +16,24 @@
#
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
%{?sle15_python_module_pythons}
# Upstream only supports Python 3.12+!
%define skip_python311 1
Name: python-mitmproxy
-Version: 11.1.2
+Version: 12.2.1
Release: 0
Summary: An interactive, SSL/TLS-capable intercepting proxy
License: MIT
URL: https://mitmproxy.org
Source:
https://github.com/mitmproxy/mitmproxy/archive/refs/tags/v%{version}.tar.gz#/mitmproxy-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE fix-async-tests.patch
+Patch0: fix-async-tests.patch
BuildRequires: %{python_module Brotli >= 1.0}
BuildRequires: %{python_module Flask >= 3.0}
BuildRequires: %{python_module aioquic >= 1.1.0}
@@ -66,6 +74,7 @@
Requires: python-aioquic >= 1.1.0
Requires: python-argon2-cffi >= 23.1.0
Requires: python-asgiref >= 3.2.10
+Requires: python-bcrypt
Requires: python-certifi >= 2019.9.11
Requires: python-cryptography >= 42.0
Requires: python-h11 >= 0.11
@@ -75,7 +84,6 @@
Requires: python-ldap3 >= 2.8
Requires: python-mitmproxy-rs >= 0.11
Requires: python-msgpack >= 1.0.0
-Requires: python-passlib >= 1.6.5
Requires: python-publicsuffix2 >= 2.20190812
Requires: python-pyOpenSSL >= 22.1
Requires: python-pyparsing >= 2.4.2
@@ -86,8 +94,14 @@
Requires: python-urwid >= 2.6.14
Requires: python-wsproto >= 1.0
Requires: python-zstandard >= 0.15
+Requires: (python-typing-extensions if python-base < 3.13)
+%if %{with libalternatives}
+Requires: alts
+BuildRequires: alts
+%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
+%endif
BuildArch: noarch
%python_subpackages
@@ -103,6 +117,11 @@
%autosetup -p1 -n mitmproxy-%{version}
rm mitmproxy/contrib/kaitaistruct/make.sh
+# pytest >= 8 does not allow both tool.pytest and tool.pytest.ini_options
+# Drop legacy ini_options and keep native TOML config
+sed -i '/^\[tool\.pytest\.ini_options\]/,/^\[/{/^\[/!d}' pyproject.toml
+sed -i '/^\[tool\.pytest\.ini_options\]/d' pyproject.toml
+
echo "
# increase test deadline for slow obs executions
import hypothesis
@@ -128,7 +147,23 @@
# test_rollback and test_output[None-expected_out0-expected_err0] just
randomly fail on i586
# test_dns and test_name_servers require networking
# test_tun_mode requires root to create a TUN device
-%pytest -k "not (test_refresh or test_rollback or test_output or
test_name_servers or test_dns or test_tun_mode)" --hypothesis-profile="obs"
+donttest="test_refresh or test_rollback or test_output or test_name_servers or
test_dns or test_tun_mode"
+
+# failing tests
+donttest+=" or test_nonexistent or test_reverse_http3_and_quic_stream[http3]"
+donttest+=" or test_contentview_flowview or test_commands_exist"
+donttest+=" or test_spawn_editor or test_get_hex_editor or test_statusbar"
+ignore="--ignore test/mitmproxy/proxy/layers/http/test_http3.py"
+ignore+=" --ignore test/mitmproxy/tools/console/test_flowview.py"
+ignore+=" --ignore test/mitmproxy/tools/console/test_integration.py"
+
+%pytest -p no:warnings -k "not ($donttest)" --hypothesis-profile="obs" $ignore
test
+
+%pre
+# removing old update-alternatives entries
+%python_libalternatives_reset_alternative mitmdump
+%python_libalternatives_reset_alternative mitmproxy
+%python_libalternatives_reset_alternative mitmweb
%post
%python_install_alternative mitmdump
++++++ fix-async-tests.patch ++++++
++++ 1204 lines (skipped)
++++++ mitmproxy-11.1.2.tar.gz -> mitmproxy-12.2.1.tar.gz ++++++
/work/SRC/openSUSE:Factory/python-mitmproxy/mitmproxy-11.1.2.tar.gz
/work/SRC/openSUSE:Factory/.python-mitmproxy.new.1995/mitmproxy-12.2.1.tar.gz
differ: char 12, line 1