Skip to content

Commit

Permalink
py-mitmproxy: update to 11.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew16550 authored and reneeotten committed Jan 20, 2025
1 parent 938020a commit b62644c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 27 deletions.
31 changes: 14 additions & 17 deletions python/py-mitmproxy/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ PortSystem 1.0
PortGroup python 1.0
PortGroup github 1.0


github.setup mitmproxy mitmproxy 7.0.4 v
github.setup mitmproxy mitmproxy 11.0.2 v
revision 0

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

homepage https://mitmproxy.org/

checksums rmd160 7668d0fe20ad33e026de91345ceb966d408f4774 \
sha256 d7d7636e2c2c2d957e413fdd54fd5be35f9128287601df5e8a971865d186fffe \
size 27312057

patchfiles patch-test_version.py.diff
checksums rmd160 74c695393f3aaab519fa268d0720936092424473 \
sha256 2e67521b00970997f101c15a598d17ad0440411d1cd2c978879791c73e4251ce \
size 31029542

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

if {${name} ne ${subport}} {
depends_lib-append port:py${python.version}-asn1 \
depends_lib-append port:py${python.version}-aioquic \
port:py${python.version}-asgiref \
port:py${python.version}-blinker \
port:py${python.version}-brotli \
port:py${python.version}-click \
port:py${python.version}-certifi \
port:py${python.version}-cryptography \
port:py${python.version}-flask \
port:py${python.version}-h11 \
port:py${python.version}-h2 \
port:py${python.version}-hyperframe \
port:py${python.version}-kaitaistruct \
port:py${python.version}-ldap3 \
port:py${python.version}-mitmproxy_rs \
port:py${python.version}-msgpack \
port:py${python.version}-openssl \
port:py${python.version}-parsing \
port:py${python.version}-passlib \
port:py${python.version}-publicsuffix2 \
port:py${python.version}-protobuf3 \
port:py${python.version}-pyperclip \
port:py${python.version}-ruamel-yaml \
port:py${python.version}-ruamel-yaml-clib \
Expand All @@ -64,17 +61,17 @@ if {${name} ne ${subport}} {

# Testing dependencies
depends_test-append port:py${python.version}-pytest \
port:py${python.version}-asynctest \
port:py${python.version}-beautifulsoup4 \
port:py${python.version}-hypothesis \
port:py${python.version}-pytest-asyncio \
port:py${python.version}-tz \
port:py${python.version}-parver \
port:py${python.version}-requests

if {${python.version} < 311} {
depends_lib-append port:py${python.version}-typing_extensions
}

post-patch {
# Remove all upper bounds - potential breakings are detected by test
reinplace "s/, *<\[0-9=.\]*//" ${worksrcpath}/setup.py
reinplace "s/, *<\[0-9=.\]*//" ${worksrcpath}/pyproject.toml
}

test.run yes
Expand Down
10 changes: 0 additions & 10 deletions python/py-mitmproxy/files/patch-test_version.py.diff

This file was deleted.

0 comments on commit b62644c

Please sign in to comment.