diff --git a/0001-change-requires-version.patch b/0001-change-requires-version.patch deleted file mode 100644 index 27c7f912d0072e4a5d8e2888b23a9458c803dc93..0000000000000000000000000000000000000000 --- a/0001-change-requires-version.patch +++ /dev/null @@ -1,35 +0,0 @@ -diff --git a/setup.py b/setup.py -index 94ef426..7661a0e 100644 ---- a/setup.py -+++ b/setup.py -@@ -73,10 +73,10 @@ setup( - # https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires - # It is not considered best practice to use install_requires to pin dependencies to specific versions. - install_requires=[ -- "asgiref>=3.2.10,<3.6", -+ "asgiref>=3.2.10", - "Brotli>=1.0,<1.1", - "certifi>=2019.9.11", # no semver here - this should always be on the last release! -- "cryptography>=38.0,<38.1", -+ "cryptography>=38.0", - "flask>=1.1.1,<2.3", - "h11>=0.11,<0.15", - "h2>=4.1,<5", -@@ -87,7 +87,7 @@ setup( - "msgpack>=1.0.0, <1.1.0", - "passlib>=1.6.5, <1.8", - "protobuf>=3.14,<5", -- "pyOpenSSL>=22.1,<22.2", -+ "pyOpenSSL>=22.1", - "pyparsing>=2.4.2,<3.1", - "pyperclip>=1.6.0,<1.9", - "ruamel.yaml>=0.16,<0.18", -@@ -96,7 +96,7 @@ setup( - "urwid>=2.1.1,<2.2", - "wsproto>=1.0,<1.3", - "publicsuffix2>=2.20190812,<3", -- "zstandard>=0.11,<0.20", -+ "zstandard>=0.11", - "typing-extensions>=4.3,<4.5; python_version<'3.10'", - ], - extras_require={ diff --git a/mitmproxy-9.0.1.tar.gz b/mitmproxy-10.3.0.tar.gz similarity index 72% rename from mitmproxy-9.0.1.tar.gz rename to mitmproxy-10.3.0.tar.gz index 0377b354d36300138f23a4775969b10cb7029f0e..8d16f31b72d31b452bd5eb6e2037368180f8b1b4 100644 Binary files a/mitmproxy-9.0.1.tar.gz and b/mitmproxy-10.3.0.tar.gz differ diff --git a/python-mitmproxy.spec b/python-mitmproxy.spec index b704938a0490487ddab2b99aedcff22988fbf30f..44754ed939634f5e67f9fc67ceb4a9d934b7a98d 100644 --- a/python-mitmproxy.spec +++ b/python-mitmproxy.spec @@ -1,13 +1,16 @@ %global _empty_manifest_terminate_build 0 Name: python-mitmproxy -Version: 9.0.1 +Version: 10.3.0 Release: 1 Summary: An interactive, SSL/TLS-capable intercepting proxy for HTTP/1, HTTP/2, and WebSockets. License: MIT URL: https://github.com/mitmproxy/mitmproxy/ Source0: https://github.com/mitmproxy/mitmproxy/archive/%{version}/mitmproxy-%{version}.tar.gz -Patch0001: 0001-change-requires-version.patch BuildArch: noarch + +BuildRequires: python3-pip python3-wheel +BuildRequires: python3-hatchling python3-hatch-vcs + Requires: python3-asgiref python3-blinker python3-Brotli python3-certifi python3-click Requires: python3-cryptography python3-flask python3-h11 python3-h2 python3-hyperframe Requires: python3-kaitaistruct python3-ldap3 python3-msgpack python3-passlib @@ -37,10 +40,10 @@ mitmproxy is an interactive, SSL/TLS-capable intercepting proxy with a console i %autosetup -n mitmproxy-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -69,11 +72,17 @@ mv %{buildroot}/doclist.lst . %files -n python3-mitmproxy -f filelist.lst %dir %{python3_sitelib}/* +%{_usr}/lib/python3.11/site-packages/mitmproxy/* %files help -f doclist.lst %{_docdir}/* %changelog +* Thu Jun 06 2024 liuzhilin - 10.3.0-1 +- Upgrade version to 10.3.0 +- Add server_connect_error hook that is triggered when connection establishment fails. +- Fix a bug where async client_connected handlers would crash mitmproxy. + * Tue Sep 19 2023 xu_ping <707078654@qq.com> - 9.0.1-1 - Upgrade version to 9.0.1 - add Raw UDP and DTLS support.