mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 07:30:55 +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 (
|
from contextlib import (
|
||||||
|
AsyncExitStack,
|
||||||
asynccontextmanager,
|
asynccontextmanager,
|
||||||
)
|
)
|
||||||
from typing import (
|
from typing import (
|
||||||
@ -12,9 +13,6 @@ from typing import (
|
|||||||
cast,
|
cast,
|
||||||
)
|
)
|
||||||
|
|
||||||
from async_exit_stack import (
|
|
||||||
AsyncExitStack,
|
|
||||||
)
|
|
||||||
import factory
|
import factory
|
||||||
from multiaddr import (
|
from multiaddr import (
|
||||||
Multiaddr,
|
Multiaddr,
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
from contextlib import (
|
from contextlib import (
|
||||||
|
AsyncExitStack,
|
||||||
asynccontextmanager,
|
asynccontextmanager,
|
||||||
)
|
)
|
||||||
from typing import (
|
from typing import (
|
||||||
@ -7,10 +8,6 @@ from typing import (
|
|||||||
Tuple,
|
Tuple,
|
||||||
)
|
)
|
||||||
|
|
||||||
from async_exit_stack import (
|
|
||||||
AsyncExitStack,
|
|
||||||
)
|
|
||||||
|
|
||||||
from libp2p.host.host_interface import (
|
from libp2p.host.host_interface import (
|
||||||
IHost,
|
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",
|
"coincurve>=10.0.0",
|
||||||
"pynacl==1.3.0",
|
"pynacl==1.3.0",
|
||||||
"trio>=0.15.0",
|
"trio>=0.15.0",
|
||||||
"async-exit-stack==1.0.1",
|
|
||||||
"noiseprotocol>=0.3.0",
|
"noiseprotocol>=0.3.0",
|
||||||
"trio-typing>=0.0.4",
|
"trio-typing>=0.0.4",
|
||||||
"exceptiongroup>=1.2.0; python_version < '3.11'",
|
"exceptiongroup>=1.2.0; python_version < '3.11'",
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
import anyio
|
from contextlib import (
|
||||||
from async_exit_stack import (
|
|
||||||
AsyncExitStack,
|
AsyncExitStack,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
import anyio
|
||||||
from p2pclient.datastructures import (
|
from p2pclient.datastructures import (
|
||||||
StreamInfo,
|
StreamInfo,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user