commit python-mitmproxy for openSUSE:Factory

2024-01-30 Thread Source-Sync
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 2024-01-30 18:25:39

Comparing /work/SRC/openSUSE:Factory/python-mitmproxy (Old)
 and  /work/SRC/openSUSE:Factory/.python-mitmproxy.new.1815 (New)


Package is "python-mitmproxy"

Tue Jan 30 18:25:39 2024 rev:9 rq:1142652 version:9.0.1

Changes:

--- /work/SRC/openSUSE:Factory/python-mitmproxy/python-mitmproxy.changes
2022-12-19 14:07:59.878581587 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-mitmproxy.new.1815/python-mitmproxy.changes  
2024-01-30 18:25:54.118996019 +0100
@@ -1,0 +2,5 @@
+Mon Jan 29 21:27:19 UTC 2024 - Dirk Müller 
+
+- switch to python311 build
+
+---



Other differences:
--
++ python-mitmproxy.spec ++
--- /var/tmp/diff_new_pack.iM5p6n/_old  2024-01-30 18:25:54.891023870 +0100
+++ /var/tmp/diff_new_pack.iM5p6n/_new  2024-01-30 18:25:54.895024015 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-mitmproxy
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,7 @@
 #
 
 
-%define skip_python2 1
-%define skip_python36 1
-%define skip_python38 1
+%{?sle15_python_module_pythons}
 Name:   python-mitmproxy
 Version:9.0.1
 Release:0
@@ -90,7 +88,7 @@
 Requires:   python-typing_extensions >= 4.3
 %endif
 Requires(post): update-alternatives
-Requires(postun):update-alternatives
+Requires(postun): update-alternatives
 BuildArch:  noarch
 %python_subpackages
 


commit python-mitmproxy for openSUSE:Factory

2022-12-19 Thread Source-Sync
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-12-19 14:07:56

Comparing /work/SRC/openSUSE:Factory/python-mitmproxy (Old)
 and  /work/SRC/openSUSE:Factory/.python-mitmproxy.new.1835 (New)


Package is "python-mitmproxy"

Mon Dec 19 14:07:56 2022 rev:8 rq:1043697 version:9.0.1

Changes:

--- /work/SRC/openSUSE:Factory/python-mitmproxy/python-mitmproxy.changes
2022-10-08 01:25:58.502332871 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-mitmproxy.new.1835/python-mitmproxy.changes  
2022-12-19 14:07:59.878581587 +0100
@@ -1,0 +2,71 @@
+Thu Dec 15 17:32:53 UTC 2022 - Daniel Garcia 
+
+- Skip broken tests in different architectures
+
+---
+Thu Dec 15 17:17:36 UTC 2022 - Daniel Garcia 
+
+- Remove fix-big-integer.patch
+- Update to version 9.0.1:
+  - The precompiled binaries now ship with OpenSSL 3.0.7, which resolves
+CVE-2022-3602 and CVE-2022-3786.
+  - Performance and stability improvements for WireGuard mode. (#5694, @mhils,
+@decathorpe)
+  - Fix a bug where the standalone Linux binaries would require libffi to be
+installed. (#5699, @mhils)
+  - Hard exit when mitmproxy cannot write logs, fixes endless loop when parent
+process exits. (#4669, @Prinzhorn)
+  - Fix a permission error affecting the Docker images. (#5700, @mhils)
+
+- 9.0.0
+  # Major Features
+  - Add Raw UDP support. (#5414, @meitinger)
+  - Add WireGuard mode to enable transparent proxying via WireGuard. (#5562,
+@decathorpe, @mhils)
+  - Add DTLS support. (#5397, @kckeiks).
+  - Add a quick help bar to mitmproxy. (#5381, #5652, @kckeiks, @mhils).
+
+  # Deprecations
+  - Deprecate add_log event hook. Users should use the builtin logging module
+instead. See the docs for details and upgrade instructions. (#5590, @mhils)
+  - Deprecate mitmproxy.ctx.log in favor of Python's builtin logging module.
+See the docs for details and upgrade instructions. (#5590, @mhils)
+
+  # Breaking Changes
+  - The mode option is now a list of server specs instead of a single spec. The
+CLI interface is unaffected, but users may need to update their
+config.yaml. (#5393, @mhils)
+
+  # Full Changelog
+  - Mitmproxy binaries now ship with Python 3.11. (#5678, @mhils)
+  - One mitmproxy instance can now spawn multiple proxy servers. (#5393,
+@mhils)
+  - Add syntax highlighting to JSON and msgpack content view. (#5623,
+@SapiensAnatis)
+  - Add MQTT content view. (#5588, @nikitastupin, @abbbe)
+  - Setting connection_strategy to lazy now also disables early upstream
+connections to fetch TLS certificate details. (#5487, @mhils)
+  - Fix order of event hooks on startup. (#5376, @meitinger)
+  - Include server information in bind/listen errors. (#5495, @meitinger)
+  - Include information about lazy connection_strategy in related errors.
+(#5465, @meitinger, @mhils)
+  - Fix tls_version_server_min and tls_version_server_max options. (#5546,
+@mhils)
+  - Added Magisk module generation for Android onboarding. (#5547, @jorants)
+  - Update Linux binary builder to Ubuntu 20.04, bumping the minimum glibc
+version to 2.31. (#5547, @jorants)
+  - Add "Save filtered" button in mitmweb. (#5531, @rnbwdsh, @mhils)
+  - Render application/prpc content as gRPC/Protocol Buffers (#5568,
+@selfisekai)
+  - Mitmweb now supports content_view_lines_cutoff. (#5548, @sanlengjingvv)
+  - Fix a mitmweb crash when scrolling down the flow list. (#5507, @LIU-shuyi)
+  - Add HTTP/3 binary frame content view. (#5582, @mhils)
+  - Fix mitmweb not properly opening a browser and being stuck on some Linux.
+(#5522, @Prinzhorn)
+  - Fix race condition when updating mitmweb WebSocket connections that are
+closing. (#5405, #5686, @mhils)
+  - Fix mitmweb crash when using filters. (#5658, #5661, @LIU-shuyi, @mhils)
+  - Fix missing default port when starting a browser. (#5687, @rbdixon)
+  - Add docs for transparent mode on Windows. (#5402, @stephenspol)
+
+---

Old:

  fix-big-integer.patch
  mitmproxy-8.1.1.tar.gz

New:

  mitmproxy-9.0.1.tar.gz



Other differences:
--
++ python-mitmproxy.spec ++
--- /var/tmp/diff_new_pack.IxQTKj/_old  2022-12-19 14:08:00.738586043 +0100
+++ /var/tmp/diff_new_pack.IxQTKj/_new  2022-12-19 14:08:00.746586085 +0100
@@ -16,38 +16,36 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 %define skip_python36 1
 %define skip_python38 1
 Name:   python-mitmproxy
-Version:8.1.1
+Version:9.0.1
 Release:0
 Summary:   

commit python-mitmproxy for openSUSE:Factory

2022-10-08 Thread Source-Sync
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 
+
+- 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}' 

commit python-mitmproxy for openSUSE:Factory

2022-03-24 Thread Source-Sync
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-03-24 22:56:57

Comparing /work/SRC/openSUSE:Factory/python-mitmproxy (Old)
 and  /work/SRC/openSUSE:Factory/.python-mitmproxy.new.1900 (New)


Package is "python-mitmproxy"

Thu Mar 24 22:56:57 2022 rev:6 rq:964072 version:8.0.0

Changes:

--- /work/SRC/openSUSE:Factory/python-mitmproxy/python-mitmproxy.changes
2022-01-09 00:48:07.704527567 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-mitmproxy.new.1900/python-mitmproxy.changes  
2022-03-24 22:57:04.692196755 +0100
@@ -1,0 +2,14 @@
+Tue Mar 22 16:01:32 UTC 2022 - Ferdinand Thiessen 
+
+- Update to 8.0.0
+  * mitmweb improvements
+* Now renders TCP and WebSocket flows
+* Offers direct cURL/HTTPie/raw HTTP export
+* Added Experimental command bar
+  * Added Async Event Hooks
+  * Added event hooks to signal TLS handshake success and failure
+for client and server connections
+  * Support proxy authentication for SOCKS v5 mode
+  * CVE-2022-24766: Fix request smuggling vulnerability, boo#1197381
+
+---

Old:

  mitmproxy-7.0.4.tar.gz

New:

  mitmproxy-8.0.0.tar.gz



Other differences:
--
++ python-mitmproxy.spec ++
--- /var/tmp/diff_new_pack.nTL5Jy/_old  2022-03-24 22:57:05.676197723 +0100
+++ /var/tmp/diff_new_pack.nTL5Jy/_new  2022-03-24 22:57:05.684197731 +0100
@@ -20,7 +20,7 @@
 %define skip_python2 1
 %define skip_python36 1
 Name:   python-mitmproxy
-Version:7.0.4
+Version:8.0.0
 Release:0
 Summary:An interactive, SSL/TLS-capable intercepting proxy
 License:MIT
@@ -34,7 +34,7 @@
 BuildRequires:  %{python_module certifi >= 2019.9.11}
 BuildRequires:  %{python_module click >= 7.0}
 BuildRequires:  %{python_module cryptography >= 3.3}
-BuildRequires:  %{python_module h2 >= 4.0}
+BuildRequires:  %{python_module h2 >= 4.1}
 BuildRequires:  %{python_module hyperframe >= 6.0}
 BuildRequires:  %{python_module hypothesis >= 5.8}
 BuildRequires:  %{python_module kaitaistruct >= 0.7}
@@ -44,16 +44,16 @@
 BuildRequires:  %{python_module passlib >= 1.6.5}
 BuildRequires:  %{python_module protobuf >= 3.14}
 BuildRequires:  %{python_module publicsuffix2 >= 2.20190812}
-BuildRequires:  %{python_module pyOpenSSL >= 20.0}
+BuildRequires:  %{python_module pyOpenSSL >= 21.0}
 BuildRequires:  %{python_module pyparsing >= 2.4.2}
 BuildRequires:  %{python_module pyperclip >= 1.6.0}
 BuildRequires:  %{python_module pytest >= 6.1.0}
-BuildRequires:  %{python_module pytest-asyncio >= 0.10.0}
+BuildRequires:  %{python_module pytest-asyncio >= 0.17.0}
 BuildRequires:  %{python_module requests >= 2.9.1}
 BuildRequires:  %{python_module ruamel.yaml >= 0.16}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module sortedcontainers >= 2.3}
-BuildRequires:  %{python_module tornado >= 4.3}
+BuildRequires:  %{python_module tornado >= 6.1}
 BuildRequires:  %{python_module urwid >= 2.1.1}
 BuildRequires:  %{python_module wsproto >= 1.0}
 BuildRequires:  %{python_module zstandard >= 0.11}
@@ -66,7 +66,7 @@
 Requires:   python-certifi >= 2019.9.11
 Requires:   python-click >= 7.0
 Requires:   python-cryptography >= 3.3
-Requires:   python-h2 >= 4.0
+Requires:   python-h2 >= 4.1
 Requires:   python-hyperframe >= 6.0
 Requires:   python-kaitaistruct >= 0.7
 Requires:   python-ldap3 >= 2.8
@@ -74,12 +74,12 @@
 Requires:   python-passlib >= 1.6.5
 Requires:   python-protobuf >= 3.14
 Requires:   python-publicsuffix2 >= 2.20190812
-Requires:   python-pyOpenSSL >= 20.0
+Requires:   python-pyOpenSSL >= 21.0
 Requires:   python-pyparsing >= 2.4.2
 Requires:   python-pyperclip >= 1.6.0
 Requires:   python-ruamel.yaml >= 0.16
 Requires:   python-sortedcontainers >= 2.3
-Requires:   python-tornado >= 4.3
+Requires:   python-tornado >= 6.1
 Requires:   python-urwid >= 2.1.1
 Requires:   python-wsproto >= 1.0
 Requires:   python-zstandard >= 0.11

++ mitmproxy-7.0.4.tar.gz -> mitmproxy-8.0.0.tar.gz ++
/work/SRC/openSUSE:Factory/python-mitmproxy/mitmproxy-7.0.4.tar.gz 
/work/SRC/openSUSE:Factory/.python-mitmproxy.new.1900/mitmproxy-8.0.0.tar.gz 
differ: char 13, line 1


commit python-mitmproxy for openSUSE:Factory

2022-01-08 Thread Source-Sync
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-01-09 00:48:07

Comparing /work/SRC/openSUSE:Factory/python-mitmproxy (Old)
 and  /work/SRC/openSUSE:Factory/.python-mitmproxy.new.1892 (New)


Package is "python-mitmproxy"

Sun Jan  9 00:48:07 2022 rev:5 rq:944963 version:7.0.4

Changes:

--- /work/SRC/openSUSE:Factory/python-mitmproxy/python-mitmproxy.changes
2021-12-09 19:46:31.621159762 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-mitmproxy.new.1892/python-mitmproxy.changes  
2022-01-09 00:48:07.704527567 +0100
@@ -1,0 +2,5 @@
+Thu Jan  6 13:33:12 UTC 2022 - Ben Greiner 
+
+- Register obs hypothesis profile for slow test executions
+
+---



Other differences:
--
++ python-mitmproxy.spec ++
--- /var/tmp/diff_new_pack.kuNtXl/_old  2022-01-09 00:48:08.212527873 +0100
+++ /var/tmp/diff_new_pack.kuNtXl/_new  2022-01-09 00:48:08.216527875 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-mitmproxy
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -106,6 +106,18 @@
 sed -i 's/,\s*<.*"/"/g' setup.py
 rm mitmproxy/contrib/kaitaistruct/make.sh
 
+sed -i 's/--color=yes//' setup.cfg
+
+echo "
+# increase test deadline for slow obs executions
+import hypothesis
+hypothesis.settings.register_profile(
+'obs',
+deadline=5000,
+suppress_health_check=[hypothesis.HealthCheck.too_slow]
+)
+" >> test/conftest.py
+
 %build
 %python_build
 
@@ -120,7 +132,7 @@
 # test_refresh fails on i586... wrong timestamp type, maybe?
 # test_rollback and test_output[None-expected_out0-expected_err0] just 
randomly fail on i586
 # test_get_version fails to mock updated git version
-%pytest -k "not (test_refresh or test_rollback or test_output or 
test_get_version)"
+%pytest -k "not (test_refresh or test_rollback or test_output or 
test_get_version)" --hypothesis-profile="obs"
 
 %post
 %python_install_alternative mitmdump


commit python-mitmproxy for openSUSE:Factory

2021-12-09 Thread Source-Sync
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 2021-12-09 19:45:48

Comparing /work/SRC/openSUSE:Factory/python-mitmproxy (Old)
 and  /work/SRC/openSUSE:Factory/.python-mitmproxy.new.2520 (New)


Package is "python-mitmproxy"

Thu Dec  9 19:45:48 2021 rev:4 rq:937780 version:7.0.4

Changes:

--- /work/SRC/openSUSE:Factory/python-mitmproxy/python-mitmproxy.changes
2021-01-28 21:28:56.724241626 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-mitmproxy.new.2520/python-mitmproxy.changes  
2021-12-09 19:46:31.621159762 +0100
@@ -1,0 +2,17 @@
+Wed Dec  8 21:07:48 UTC 2021 - Ferdinand Thiessen 
+
+- Update to 7.0.4
+  * Compatibility with Python 3.10
+  * Supports proxying raw TCP connections
+  * Support TCP connections that start with a server-side greeting
+  * Support SMTP
+  * Accept HTTP/2 requests from the client and forward them to
+an HTTP/1 server
+  * Displays WebSocket messages also in a dedicated UI tab
+  * Clients can now establish TLS with the proxy right from the
+start, which can add a significant layer of defense in public
+networks.
+  * Removed pathoc and pathod, see
+https://github.com/mitmproxy/mitmproxy/issues/4273
+
+---

Old:

  mitmproxy-6.0.2.tar.gz

New:

  mitmproxy-7.0.4.tar.gz



Other differences:
--
++ python-mitmproxy.spec ++
--- /var/tmp/diff_new_pack.cRZDI9/_old  2021-12-09 19:46:32.445160159 +0100
+++ /var/tmp/diff_new_pack.cRZDI9/_new  2021-12-09 19:46:32.449160161 +0100
@@ -20,13 +20,13 @@
 %define skip_python2 1
 %define skip_python36 1
 Name:   python-mitmproxy
-Version:6.0.2
+Version:7.0.4
 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/v%{version}.tar.gz#/mitmproxy-%{version}.tar.gz
+Source: 
https://github.com/mitmproxy/mitmproxy/archive/refs/tags/v%{version}.tar.gz#/mitmproxy-%{version}.tar.gz
 BuildRequires:  %{python_module Brotli >= 1.0}
 BuildRequires:  %{python_module Flask >= 1.1.1}
 BuildRequires:  %{python_module asgiref >= 3.2.10}
@@ -84,13 +84,11 @@
 Requires:   python-wsproto >= 1.0
 Requires:   python-zstandard >= 0.11
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
 BuildArch:  noarch
 %python_subpackages
 
 %description
-This repository contains the **mitmproxy** and **pathod** projects.
-
 mitmproxy is an interactive, SSL/TLS-capable intercepting proxy with a console
 interface for HTTP/1, HTTP/2, and WebSockets.
 
@@ -98,14 +96,12 @@
 
 mitmweb is a web-based interface for mitmproxy.
 
-pathoc and pathod are perverse HTTP client and server applications
-designed to let you craft almost any conceivable HTTP request, including ones
-that creatively violate the standards.
-
 %prep
 %setup -q -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
+sed -i '1 {\@^#!/usr/bin/env@ d}' mitmproxy/utils/emoji.py
 # upstream likes to pin dependencies too aggressively
 sed -i 's/,\s*<.*"/"/g' setup.py
 rm mitmproxy/contrib/kaitaistruct/make.sh
@@ -119,8 +115,6 @@
 %python_clone -a %{buildroot}%{_bindir}/mitmdump
 %python_clone -a %{buildroot}%{_bindir}/mitmproxy
 %python_clone -a %{buildroot}%{_bindir}/mitmweb
-%python_clone -a %{buildroot}%{_bindir}/pathoc
-%python_clone -a %{buildroot}%{_bindir}/pathod
 
 %check
 # test_refresh fails on i586... wrong timestamp type, maybe?
@@ -132,24 +126,18 @@
 %python_install_alternative mitmdump
 %python_install_alternative mitmproxy
 %python_install_alternative mitmweb
-%python_install_alternative pathoc
-%python_install_alternative pathod
 
 %postun
 %python_uninstall_alternative mitmdump
 %python_uninstall_alternative mitmproxy
 %python_uninstall_alternative mitmweb
-%python_uninstall_alternative pathoc
-%python_uninstall_alternative pathod
 
 %files %{python_files}
-%doc README.rst CHANGELOG.rst
+%doc README.md CHANGELOG.md
 %license LICENSE
 %{python_sitelib}/*
 %python_alternative %{_bindir}/mitmdump
 %python_alternative %{_bindir}/mitmproxy
 %python_alternative %{_bindir}/mitmweb
-%python_alternative %{_bindir}/pathoc
-%python_alternative %{_bindir}/pathod
 
 %changelog

++ mitmproxy-6.0.2.tar.gz -> mitmproxy-7.0.4.tar.gz ++
/work/SRC/openSUSE:Factory/python-mitmproxy/mitmproxy-6.0.2.tar.gz 

commit python-mitmproxy for openSUSE:Factory

2021-01-28 Thread Source-Sync
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 2021-01-28 21:28:53

Comparing /work/SRC/openSUSE:Factory/python-mitmproxy (Old)
 and  /work/SRC/openSUSE:Factory/.python-mitmproxy.new.28504 (New)


Package is "python-mitmproxy"

Thu Jan 28 21:28:53 2021 rev:3 rq:867448 version:6.0.2

Changes:

--- /work/SRC/openSUSE:Factory/python-mitmproxy/python-mitmproxy.changes
2020-08-12 10:36:53.836303172 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-mitmproxy.new.28504/python-mitmproxy.changes 
2021-01-28 21:28:56.724241626 +0100
@@ -1,0 +2,13 @@
+Wed Jan 27 14:37:07 UTC 2021 - Mark??ta Machov?? 
+
+- Update to 6.0.2
+  * Mitmproxy now requires Python 3.8 or above.
+  * Deprecation of pathod and pathoc tools and modules. Future releases 
+will not contain them!
+  * SSLKEYLOGFILE now supports TLS 1.3 secrets
+  * Tests: Replace asynctest with stdlib mock 
+  * Many smaller improvements and bugfixes
+- Drop unpin.patch and replace it with a sed script
+- Drop merged replace-asynctest.patch
+
+---

Old:

  mitmproxy-5.2.tar.gz
  replace-asynctest.patch
  unpin.patch

New:

  mitmproxy-6.0.2.tar.gz



Other differences:
--
++ python-mitmproxy.spec ++
--- /var/tmp/diff_new_pack.PVB491/_old  2021-01-28 21:28:57.548242864 +0100
+++ /var/tmp/diff_new_pack.PVB491/_new  2021-01-28 21:28:57.552242871 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-mitmproxy
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,87 +18,73 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
+%define skip_python36 1
 Name:   python-mitmproxy
-Version:5.2
+Version:6.0.2
 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/v%{version}.tar.gz#/mitmproxy-%{version}.tar.gz
-# upstream likes to pin dependencies too aggressively
-Patch0: unpin.patch
-# PATCH-FIX-UPSTREAM replace-asynctest.patch gh#mitmproxy/mitmproxy#4020
-Patch1: replace-asynctest.patch
 BuildRequires:  %{python_module Brotli >= 1.0}
-BuildRequires:  %{python_module Flask >= 1.0}
-%if 0%{?suse_version} < 1550
-# Python 3.6 only
-BuildRequires:  %{python_module dataclasses >= 0.7}
-# Python < 3.8
-BuildRequires:  %{python_module asynctest >= 0.12.0}
-%endif
-BuildRequires:  %{python_module beautifulsoup4 >= 4.4.1}
+BuildRequires:  %{python_module Flask >= 1.1.1}
+BuildRequires:  %{python_module asgiref >= 3.2.10}
 BuildRequires:  %{python_module blinker >= 1.4}
 BuildRequires:  %{python_module certifi >= 2019.9.11}
 BuildRequires:  %{python_module click >= 7.0}
-BuildRequires:  %{python_module cryptography >= 2.9}
-BuildRequires:  %{python_module h2 >= 3.2.0}
-BuildRequires:  %{python_module hyperframe >= 5.1.0}
+BuildRequires:  %{python_module cryptography >= 3.3}
+BuildRequires:  %{python_module h2 >= 4.0}
+BuildRequires:  %{python_module hyperframe >= 6.0}
 BuildRequires:  %{python_module hypothesis >= 5.8}
 BuildRequires:  %{python_module kaitaistruct >= 0.7}
-BuildRequires:  %{python_module ldap3 >= 2.6.1}
+BuildRequires:  %{python_module ldap3 >= 2.8}
+BuildRequires:  %{python_module msgpack >= 1.0.0}
 BuildRequires:  %{python_module parver >= 0.1}
 BuildRequires:  %{python_module passlib >= 1.6.5}
-BuildRequires:  %{python_module protobuf >= 3.6.0}
+BuildRequires:  %{python_module protobuf >= 3.14}
 BuildRequires:  %{python_module publicsuffix2 >= 2.20190812}
-BuildRequires:  %{python_module pyOpenSSL >= 19.1.0}
-BuildRequires:  %{python_module pyasn1 >= 0.3.1}
+BuildRequires:  %{python_module pyOpenSSL >= 20.0}
 BuildRequires:  %{python_module pyparsing >= 2.4.2}
 BuildRequires:  %{python_module pyperclip >= 1.6.0}
-BuildRequires:  %{python_module pytest >= 5.1.3}
+BuildRequires:  %{python_module pytest >= 6.1.0}
 BuildRequires:  %{python_module pytest-asyncio >= 0.10.0}
-BuildRequires:  %{python_module pytest-mock}
 BuildRequires:  %{python_module requests >= 2.9.1}
 BuildRequires:  %{python_module ruamel.yaml >= 0.16}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module sortedcontainers >= 2.1.0}
+BuildRequires:  %{python_module sortedcontainers >= 2.3}
 BuildRequires:  %{python_module tornado >= 4.3}
-BuildRequires:  %{python_module urwid >= 2.1.0}