From 1a443f2ec6637bbfb86b717ac03b56a3ff0650b8 Mon Sep 17 00:00:00 2001 From: Iurii Pliner Date: Tue, 29 Oct 2024 10:39:35 +0000 Subject: [PATCH] Only yarl >= 1.12 is supported The same as modern aiohttp does after yarl updates --- requirements-dev.txt | 2 +- setup.py | 2 +- tests/test_utils.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 95142df..e1831e4 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,6 +6,6 @@ pytest==7.4.0 pytest-aiohttp==1.0.4 aiohttp==3.8.5 async-timeout==4.0.2;python_version<"3.11" -yarl==1.9.9 +yarl==1.12.0 multidict==6.0.4 prometheus-client==0.13.1 diff --git a/setup.py b/setup.py index 48c5277..2ca0801 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ install_requires = [ "multidict>=4.5,<7.0", - "yarl>=1.0,<1.9.10", + "yarl>=1.12.0,<2", ] diff --git a/tests/test_utils.py b/tests/test_utils.py index 529efab..de4acae 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -16,7 +16,7 @@ (yarl.URL("{a}/do?b=2"), {"a": "1"}, yarl.URL("1/do?b=2")), (yarl.URL("do/{a}"), {"a": "1"}, yarl.URL("do/1")), (yarl.URL("https://site.com/"), {}, yarl.URL("https://site.com/")), - (yarl.URL("https://site.com/{a}"), {"a": "1"}, yarl.URL("https://site.com:443/1")), + (yarl.URL("https://site.com/{a}"), {"a": "1"}, yarl.URL("https://site.com/1")), (yarl.URL("{a}/do?b=2"), {"a": "x/y"}, yarl.URL("x/y/do?b=2")), (yarl.URL("{a}/do%2Fsmth/?b=!%2F^"), {"a": "x/y"}, yarl.URL("x/y/do%2Fsmth/?b=!%2F^")), (yarl.URL("{a}/do%2Fsmth/?b=!%2F^#%2F"), {"a": "x/y"}, yarl.URL("x/y/do%2Fsmth/?b=!%2F^#%2F")),