Skip to content

Commit 34702e6

Browse files
committed
py-mitmproxy: update to 11.0.2
1 parent 7e94dc3 commit 34702e6

File tree

2 files changed

+14
-27
lines changed

2 files changed

+14
-27
lines changed

python/py-mitmproxy/Portfile

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ PortSystem 1.0
44
PortGroup python 1.0
55
PortGroup github 1.0
66

7-
8-
github.setup mitmproxy mitmproxy 7.0.4 v
7+
github.setup mitmproxy mitmproxy 11.0.2 v
98
revision 0
109

1110
name py-${github.project}
@@ -26,33 +25,31 @@ long_description \
2625

2726
homepage https://mitmproxy.org/
2827

29-
checksums rmd160 7668d0fe20ad33e026de91345ceb966d408f4774 \
30-
sha256 d7d7636e2c2c2d957e413fdd54fd5be35f9128287601df5e8a971865d186fffe \
31-
size 27312057
32-
33-
patchfiles patch-test_version.py.diff
28+
checksums rmd160 74c695393f3aaab519fa268d0720936092424473 \
29+
sha256 2e67521b00970997f101c15a598d17ad0440411d1cd2c978879791c73e4251ce \
30+
size 31029542
3431

35-
python.versions 39 310 311
32+
# mitmproxy supports 312 & 313 but currently some deps do not :-(
33+
python.versions 310 311
3634

3735
if {${name} ne ${subport}} {
38-
depends_lib-append port:py${python.version}-asn1 \
36+
depends_lib-append port:py${python.version}-aioquic \
3937
port:py${python.version}-asgiref \
40-
port:py${python.version}-blinker \
4138
port:py${python.version}-brotli \
42-
port:py${python.version}-click \
4339
port:py${python.version}-certifi \
4440
port:py${python.version}-cryptography \
4541
port:py${python.version}-flask \
42+
port:py${python.version}-h11 \
4643
port:py${python.version}-h2 \
4744
port:py${python.version}-hyperframe \
4845
port:py${python.version}-kaitaistruct \
4946
port:py${python.version}-ldap3 \
47+
port:py${python.version}-mitmproxy_rs \
5048
port:py${python.version}-msgpack \
5149
port:py${python.version}-openssl \
5250
port:py${python.version}-parsing \
5351
port:py${python.version}-passlib \
5452
port:py${python.version}-publicsuffix2 \
55-
port:py${python.version}-protobuf3 \
5653
port:py${python.version}-pyperclip \
5754
port:py${python.version}-ruamel-yaml \
5855
port:py${python.version}-ruamel-yaml-clib \
@@ -64,17 +61,17 @@ if {${name} ne ${subport}} {
6461

6562
# Testing dependencies
6663
depends_test-append port:py${python.version}-pytest \
67-
port:py${python.version}-asynctest \
68-
port:py${python.version}-beautifulsoup4 \
6964
port:py${python.version}-hypothesis \
7065
port:py${python.version}-pytest-asyncio \
71-
port:py${python.version}-tz \
72-
port:py${python.version}-parver \
7366
port:py${python.version}-requests
7467

68+
if {${python.version} < 311} {
69+
depends_lib-append port:py${python.version}-typing_extensions
70+
}
71+
7572
post-patch {
7673
# Remove all upper bounds - potential breakings are detected by test
77-
reinplace "s/, *<\[0-9=.\]*//" ${worksrcpath}/setup.py
74+
reinplace "s/, *<\[0-9=.\]*//" ${worksrcpath}/pyproject.toml
7875
}
7976

8077
test.run yes

python/py-mitmproxy/files/patch-test_version.py.diff

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)