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 2022-10-08 01:25:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mitmproxy (Old) and /work/SRC/openSUSE:Factory/.python-mitmproxy.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mitmproxy" Sat Oct 8 01:25:34 2022 rev:7 rq:1008760 version:8.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mitmproxy/python-mitmproxy.changes 2022-03-24 22:57:04.692196755 +0100 +++ /work/SRC/openSUSE:Factory/.python-mitmproxy.new.2275/python-mitmproxy.changes 2022-10-08 01:25:58.502332871 +0200 @@ -1,0 +2,54 @@ +Fri Oct 7 11:01:46 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com> + +- Update to version 8.1.1: + * Support specifying the local address for outgoing connections (#5364, + @meitinger) + * Fix a bug where an excess empty chunk has been sent for chunked HEAD + request. (#5372, @jixunmoe) + * Drop pkg_resources dependency. (#5401, @PavelICS) + * Fix huge (>65kb) http2 responses corrupted. (#5428, @dhabensky) + * Remove overambitious assertions in the HTTP state machine, fix some error + handling. (#5383, @mhils) + * Use default_factory for parser_options. (#5474, @rathann) +- mitmproxy 8.1.0 + * DNS support (#5232, @meitinger) + * Mitmproxy now requires Python 3.9 or above. (#5233, @mhils) + * Fix a memory leak in mitmdump where flows were kept in memory. (#4786, + @mhils) + * Replayed flows retain their current position in the flow list. (#5227, + @mhils) + * Periodically send HTTP/2 ping frames to keep connections alive. (#5046, + @EndUser509) + * Console Performance Improvements (#3427, @BkPHcgQL3V) + * Warn users if server side event responses are received without streaming. + (#4469, @mhils) + * Add flatpak support to the browser addon (#5200, @pauloromeira) + * Add example addon to dump contents to files based on a filter expression + (#5190, @redraw) + * Fix a bug where the wrong SNI is sent to an upstream HTTPS proxy (#5109, + @mhils) + * Make sure that mitmproxy displays error messages on startup. (#5225, + @mhils) + * Add example addon for domain fronting. (#5217, @randomstuff) + * Improve cut addon to better handle binary contents (#3965, @mhils) + * Fix text truncation for full-width characters (#4278, @kjy00302) + * Fix mitmweb export copy failed in non-secure domain. (#5264, @Pactortester) + * Add example script for manipulating cookies. (#5278, @WillahScott) + * When opening an external viewer for message contents, mailcap files are not + considered anymore. + * This preempts the upcoming deprecation of Python's mailcap module. (#5297, + @KORraNpl) + * Fix hostname encoding for IDNA domains in upstream mode. (#5316, @nneonneo) + * Fix hot reloading of contentviews. (#5319, @nneonneo) + * Ignore HTTP/2 information responses instead of raising an error. (#5332, + @mhils) + * Improve performance and memory usage by reusing OpenSSL contexts. (#5339, + @mhils) + * Fix handling of multiple Cookie headers when proxying HTTP/2 to HTTP/1 + (#5337, @rinsuki) + * Improve http_manipulate_cookies.py example. (#5578, @insilications) + +- Add fix-big-integer.patch to fix tests with modern python versions based on + gh#mitmproxy/mitmproxy@780adbaf9b13 + +------------------------------------------------------------------- Old: ---- mitmproxy-8.0.0.tar.gz New: ---- fix-big-integer.patch mitmproxy-8.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mitmproxy.spec ++++++ --- /var/tmp/diff_new_pack.VjiglE/_old 2022-10-08 01:25:59.350334817 +0200 +++ /var/tmp/diff_new_pack.VjiglE/_new 2022-10-08 01:25:59.354334826 +0200 @@ -19,14 +19,17 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 %define skip_python36 1 +%define skip_python38 1 Name: python-mitmproxy -Version: 8.0.0 +Version: 8.1.1 Release: 0 Summary: An interactive, SSL/TLS-capable intercepting proxy License: MIT Group: Development/Languages/Python URL: https://mitmproxy.org Source: https://github.com/mitmproxy/mitmproxy/archive/refs/tags/v%{version}.tar.gz#/mitmproxy-%{version}.tar.gz +# PATCH-FIX-UPSTREAM fix-big-integer.patch -- based on commit gh#mitmproxy/mitmproxy@780adbaf9b13 +Patch: fix-big-integer.patch BuildRequires: %{python_module Brotli >= 1.0} BuildRequires: %{python_module Flask >= 1.1.1} BuildRequires: %{python_module asgiref >= 3.2.10} @@ -97,7 +100,7 @@ mitmweb is a web-based interface for mitmproxy. %prep -%setup -q -n mitmproxy-%{version} +%autosetup -p1 -n mitmproxy-%{version} #remove shebang sed -i '1 {\@^#!/usr/bin/python@ d}' mitmproxy/contrib/urwid/raw_display.py sed -i '1 {\@^#!/usr/bin/env@ d}' mitmproxy/contrib/wbxml/*.py ++++++ fix-big-integer.patch ++++++ Index: mitmproxy-8.1.1/test/mitmproxy/io/test_tnetstring.py =================================================================== --- mitmproxy-8.1.1.orig/test/mitmproxy/io/test_tnetstring.py +++ mitmproxy-8.1.1/test/mitmproxy/io/test_tnetstring.py @@ -87,7 +87,8 @@ class Test_Format(unittest.TestCase): self.assertEqual((v, b""), tnetstring.pop(tnetstring.dumps(v))) def test_roundtrip_big_integer(self): - i1 = math.factorial(30000) + # Recent Python versions do not like ints above 4300 digits, https://github.com/python/cpython/issues/95778 + i1 = math.factorial(1557) s = tnetstring.dumps(i1) i2 = tnetstring.loads(s) self.assertEqual(i1, i2) ++++++ mitmproxy-8.0.0.tar.gz -> mitmproxy-8.1.1.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-mitmproxy/mitmproxy-8.0.0.tar.gz /work/SRC/openSUSE:Factory/.python-mitmproxy.new.2275/mitmproxy-8.1.1.tar.gz differ: char 13, line 1