Skip to content

Commit

Permalink
Only yarl >= 1.12 is supported
Browse files Browse the repository at this point in the history
The same as modern aiohttp does after yarl updates
  • Loading branch information
Pliner committed Oct 29, 2024
1 parent 7cce5c1 commit 1a443f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

install_requires = [
"multidict>=4.5,<7.0",
"yarl>=1.0,<1.9.10",
"yarl>=1.12.0,<2",
]


Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down

0 comments on commit 1a443f2

Please sign in to comment.