mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
async-exit-stack was for pre-py37, just import from contextlib now
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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,
|
||||
)
|
||||
|
||||
1
newsfragments/468.removal.rst
Normal file
1
newsfragments/468.removal.rst
Normal file
@ -0,0 +1 @@
|
||||
Drop ``async-exit-stack`` dep, as of py37 can import ``AsyncExitStack`` from contextlib
|
||||
1
setup.py
1
setup.py
@ -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'",
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
import anyio
|
||||
from async_exit_stack import (
|
||||
from contextlib import (
|
||||
AsyncExitStack,
|
||||
)
|
||||
|
||||
import anyio
|
||||
from p2pclient.datastructures import (
|
||||
StreamInfo,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user