Skip to content

Commit

Permalink
Require yarl>=1.12 as aiohttp does (#273)
Browse files Browse the repository at this point in the history
* Bump yarl to 1.12+

* Fix test
  • Loading branch information
Pliner authored Oct 21, 2024
1 parent 56de950 commit a28de4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ pyright==1.1.377
pytest==8.3.2
pytest-aiohttp==1.0.5
pytest-httpbin==2.0.0
aiohttp==3.10.5
yarl==1.9.9
aiohttp==3.10.10
yarl==1.12.0
multidict==6.0.5
httpx==0.27.0
prometheus-client==0.20.0
Expand Down
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.0",
)


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 a28de4e

Please sign in to comment.