async-exit-stack was for pre-py37, just import from contextlib now

This commit is contained in:
pacrob
2024-05-27 12:18:14 -06:00
committed by Paul Robinson
parent d9b92635c1
commit a3f8db3ecd
5 changed files with 6 additions and 10 deletions

View File

@ -1,4 +1,5 @@
from contextlib import (
AsyncExitStack,
asynccontextmanager,
)
from typing import (
@ -12,9 +13,6 @@ from typing import (
cast,
)
from async_exit_stack import (
AsyncExitStack,
)
import factory
from multiaddr import (
Multiaddr,

View File

@ -1,4 +1,5 @@
from contextlib import (
AsyncExitStack,
asynccontextmanager,
)
from typing import (
@ -7,10 +8,6 @@ from typing import (
Tuple,
)
from async_exit_stack import (
AsyncExitStack,
)
from libp2p.host.host_interface import (
IHost,
)

View File

@ -0,0 +1 @@
Drop ``async-exit-stack`` dep, as of py37 can import ``AsyncExitStack`` from contextlib

View File

@ -62,7 +62,6 @@ install_requires = [
"coincurve>=10.0.0",
"pynacl==1.3.0",
"trio>=0.15.0",
"async-exit-stack==1.0.1",
"noiseprotocol>=0.3.0",
"trio-typing>=0.0.4",
"exceptiongroup>=1.2.0; python_version < '3.11'",

View File

@ -1,7 +1,8 @@
import anyio
from async_exit_stack import (
from contextlib import (
AsyncExitStack,
)
import anyio
from p2pclient.datastructures import (
StreamInfo,
)