Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
6d40d8490a
!20 根据openEuler-22.03-LTS-Next包的版本修改安装依赖需要的版本
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-10-25 09:39:13 +00:00
cherry530
55f9f4f7ce Next branches some packages upgrade,so change requires version
Signed-off-by: cherry530 <xuping33@huawei.com>
2022-10-25 15:48:54 +08:00
openeuler-ci-bot
dae4eb4193
!19 [sync] PR-15: 修改python-mitmproxy安装依赖的版本
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-08-18 08:41:25 +00:00
wu-leilei
907bb4c0b7 change requires version
(cherry picked from commit dfc243b691258e71c3f70f018dad5036c4df43b6)
2022-08-18 16:11:21 +08:00
openeuler-ci-bot
e6c42c7ec6 !14 [sync] PR-10: 修复mitmproxy运行告警
From: @openeuler-sync-bot
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
2021-10-21 10:56:36 +00:00
gitee-cmd
ba7689659a fix asyncio utils run in python3.7
(cherry picked from commit fdaef0a5a4ad097f3f693aad4f21230288f6a484)
2021-10-16 11:06:59 +08:00
openeuler-ci-bot
8d94363fbd !6 [sync] PR-5: fix run with python3.7
From: @openeuler-sync-bot
Reviewed-by: @yangzhao_kl
Signed-off-by: @yangzhao_kl
2021-09-30 10:09:35 +00:00
gitee-cmd
9b54af1daa fix run in python3.7 environment
(cherry picked from commit bddff9d0ac94a2f77477d9c36d1231a5997153f3)
2021-09-30 17:51:09 +08:00
openeuler-ci-bot
5067de5552 !1 package init for python-mitmproxy
From: @lyn1001
Reviewed-by: @myeuler
Signed-off-by: @myeuler
2021-08-05 01:23:43 +00:00
lyn1001
9f6c37bc55 package init for python-mitmproxy 2021-08-03 20:18:14 +08:00
4 changed files with 132 additions and 0 deletions

View File

@ -0,0 +1,34 @@
diff -Nur a/setup.py b/setup.py
--- a/setup.py 2021-07-16 16:24:38.000000000 +0800
+++ b/setup.py 2022-07-26 10:21:47.296522066 +0800
@@ -66,13 +66,13 @@
# https://packaging.python.org/en/latest/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.5",
+ "asgiref>=3.2.10",
"blinker>=1.4, <1.5",
"Brotli>=1.0,<1.1",
"certifi>=2019.9.11", # no semver here - this should always be on the last release!
"click>=7.0,<8.1",
- "cryptography>=3.3,<3.5",
- "flask>=1.1.1,<2.1",
+ "cryptography>=3.3",
+ "flask>=1.1.1",
"h11>=0.11,<0.13",
"h2>=4.0,<5",
"hyperframe>=6.0,<7",
@@ -81,10 +81,10 @@
"msgpack>=1.0.0, <1.1.0",
"passlib>=1.6.5, <1.8",
"protobuf>=3.14,<3.18",
- "pyOpenSSL>=20.0,<20.1",
- "pyparsing>=2.4.2,<2.5",
+ "pyOpenSSL>=20.0",
+ "pyparsing>=2.4.2",
"pyperclip>=1.6.0,<1.9",
- "ruamel.yaml>=0.16,<0.17.11",
+ "ruamel.yaml>=0.16",
"sortedcontainers>=2.3,<2.5",
"tornado>=4.3,<7",
"urwid>=2.1.1,<2.2",

94
python-mitmproxy.spec Normal file
View File

@ -0,0 +1,94 @@
%global _empty_manifest_terminate_build 0
Name: python-mitmproxy
Version: 7.0.0
Release: 6
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/refs/tags/v%{version}.tar.gz
Patch0001: change-requires-version.patch
BuildArch: noarch
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
Requires: python3-protobuf python3-pyOpenSSL python3-pyparsing python3-pyperclip
Requires: python3-sortedcontainers python3-tornado python3-urwid python3-wsproto
Requires: python3-publicsuffix2 python3-zstandard python3-pydivert python3-hypothesis
Requires: python3-parver python3-pdoc python3-pyinstaller python3-pytest-asyncio
Requires: python3-pytest-cov python3-pytest-timeout python3-pytest-xdist python3-pytest
Requires: python3-requests python3-tox python3-wheel
%description
mitmproxy is an interactive, SSL/TLS-capable intercepting proxy with a console interface for HTTP/1, HTTP/2, and WebSockets.
%package -n python3-mitmproxy
Summary: An interactive, SSL/TLS-capable intercepting proxy for HTTP/1, HTTP/2, and WebSockets.
Provides: python-mitmproxy
BuildRequires: python3-devel python3-setuptools
%description -n python3-mitmproxy
mitmproxy is an interactive, SSL/TLS-capable intercepting proxy with a console interface for HTTP/1, HTTP/2, and WebSockets.
%package help
Summary: Development documents and examples for mitmproxy
Provides: python3-mitmproxy-doc
%description help
mitmproxy is an interactive, SSL/TLS-capable intercepting proxy with a console interface for HTTP/1, HTTP/2, and WebSockets.
%prep
%autosetup -n mitmproxy-%{version} -p1
%build
%py3_build
%install
%py3_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
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-mitmproxy -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Oct 25 2022 xu_ping <xuping33@h-partners.com> - 7.0.0-6
- change requires version to fix install issue
* Tue Mar 01 2022 wulei <wulei80@huawei.com> - 7.0.0-5
- change requires version
* Fri Oct 15 2021 chemingdao <chemingdao@huawei.com> - 7.0.0-4
- fix asynocio utils run in python3.7
* Thu Sep 30 2021 chemingdao <chemingdao@huawei.com> - 7.0.0-3
- fix run in python 3.7 environment
* Sat Aug 21 2021 liyanan <liyanan32@huawei.com> - 7.0.0-2
- fix build fail with python3.7
* Fri Jul 30 2021 liyanan <liyanan32@huawei.com> - 7.0.0-1
- package init

4
python-mitmproxy.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: mitmproxy/mitmproxy
tag_prefix: "^v"
separator: "."

BIN
v7.0.0.tar.gz Normal file

Binary file not shown.