Skip to content

Commit 218e2f7

Browse files
NO-SNOW: Require mitmproxy 12+ on Python 3.12+ to fix cryptography (#2801)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e4dcba5 commit 218e2f7

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ boto =
9393
development =
9494
Cython
9595
coverage
96-
mitmproxy>=6.0.0; python_version >= '3.10'
96+
mitmproxy>=12.0.0; python_version >= '3.12'
9797
more-itertools
9898
numpy<=2.4.3
9999
pendulum!=2.1.1

test/integ/test_proxies.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Requirements:
55
mitmproxy is installed automatically via the [development] extras in setup.cfg
6-
(Python 3.10+ only - mitmproxy has dependency conflicts on Python 3.9)
6+
(Python 3.12+ only - mitmproxy 12+ requires Python 3.12 and is needed for cryptography >=46)
77
88
Important:
99
When connecting through mitmproxy, you MUST set disable_ocsp_checks=True
@@ -26,8 +26,8 @@
2626

2727
@pytest.mark.skipolddriver
2828
@pytest.mark.skipif(
29-
sys.version_info < (3, 10),
30-
reason="mitmproxy not installed for Python 3.9 due to dependency conflicts",
29+
sys.version_info < (3, 12),
30+
reason="mitmproxy requires Python 3.12+ (mitmproxy 12+ needed for cryptography >=46)",
3131
)
3232
def test_put_with_https_proxy(conn_cnx, tmp_path, mitm_proxy, monkeypatch):
3333
test_file = tmp_path / "test_data.csv"
@@ -62,8 +62,8 @@ def test_put_with_https_proxy(conn_cnx, tmp_path, mitm_proxy, monkeypatch):
6262

6363
@pytest.mark.skipolddriver
6464
@pytest.mark.skipif(
65-
sys.version_info < (3, 10) or IS_WINDOWS,
66-
reason="mitmproxy not installed for Python 3.9 due to dependency conflicts",
65+
sys.version_info < (3, 12) or IS_WINDOWS,
66+
reason="mitmproxy requires Python 3.12+ (mitmproxy 12+ needed for cryptography >=46)",
6767
)
6868
def test_put_with_https_proxy_and_no_proxy_regression(
6969
conn_cnx, tmp_path, mitm_proxy, monkeypatch

0 commit comments

Comments
 (0)