Skip to content

Commit

Permalink
Merge pull request #389 from aio-libs/fix/relax-aiohttp-dep-version
Browse files Browse the repository at this point in the history
Relax the aiohttp version range as being a library
  • Loading branch information
achimnol authored Dec 10, 2023
2 parents 0d64f22 + 459fc55 commit 2931190
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions changes/389.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Relaxed our direct dependnecy version range of aiohttp ("3.8.5 only" to "3.8.5 and higher") to enable installation on Python 3.12
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-e .
aioconsole==0.6.1
aioconsole==0.7.0
aiohttp==3.8.5
aiotools==1.6.0
attrs==23.1.0
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ packages = find:
python_requires = >=3.8
install_requires =
attrs>=20
aiohttp~=3.8.5
click>=8
aiohttp>=3.8.5
click>=8.0
janus>=1.0
jinja2>=3.1.2
backports.strenum>=1.2.4; python_version<"3.11"
terminaltables
trafaret>=2.1.1
typing-extensions>=4.1
prompt_toolkit>=3.0
aioconsole
aioconsole>=0.7.0

[options.packages.find]
exclude =
Expand Down
8 changes: 6 additions & 2 deletions tests/test_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ async def _ui_create_event() -> asyncio.Event:
# In this case, the error is propagated to the upper stack
# immediately here.
fut = asyncio.run_coroutine_threadsafe(
command_done_event.wait(), monitor._ui_loop # type: ignore
command_done_event.wait(), # type: ignore
monitor._ui_loop,
)
await asyncio.wrap_future(fut)
finally:
Expand Down Expand Up @@ -254,8 +255,11 @@ async def _interact():
await asyncio.sleep(0.2)
try:
pipe_input.send_text("await asyncio.sleep(0.1, result=333)\r\n")
pipe_input.flush()
await asyncio.sleep(0.1)
pipe_input.send_text("foo\r\n")
await asyncio.sleep(0.25)
pipe_input.flush()
await asyncio.sleep(0.4)
resp = stdout_buf._buffer.getvalue()
assert "This console is running in an asyncio event loop." in resp
assert "333" in resp
Expand Down

0 comments on commit 2931190

Please sign in to comment.