a3f8db3ecd
async-exit-stack was for pre-py37, just import from contextlib now
2024-05-27 12:40:23 -06:00
d9b92635c1
drop async-service dep and copy relevant code into a local async_service
...
tool, updated for modern handling of ExceptionGroup
2024-05-27 12:14:36 -06:00
827d16b106
import asynccontextmanager from context lib and remove async_generator dep
2024-04-27 10:12:39 -06:00
94483714a3
run lint and fix errors, except mypy
2024-02-19 16:05:58 -07:00
080f8edc8e
Use trio.lowlevel instead of trio.hazmat
...
Since trio 0.15.0, hazmat has been deprecated.
trio-typing and mypy are bumped to support newer trio and each other.
2021-02-23 22:02:34 +07:00
f1dbd52d67
Merge branch 'master' into feature/trio
2020-02-06 10:39:54 +08:00
6fe5871d96
Use async-exit-stack over contextlib
...
For `AsyncExitStack`
2019-12-24 14:44:28 +08:00
ce5663705f
Merge branch 'master' into feature/porting-to-trio
2019-12-24 02:19:43 +08:00
b1248ff315
enforced f-strings everywhere, %s on logging
...
extended _multiaddr_from_socket to support UDP and IPv6 automatically
changed TCPListener to use _ip4_or_6_from_multiaddr to get host, and not ip4 only
enforced `from error` everywhere with raises
added call braces to exceptions
2019-12-19 17:31:18 +01:00
47d10e186f
Add SubscriptionAPI
...
And `TrioSubscriptionAPI`, to make subscription io-agnostic.
2019-12-17 18:17:28 +08:00
1929f307fb
Fix all modules except for security
2019-12-06 17:06:37 +08:00
63fd531ed0
Fixes to add python 3.6 compatibility
2019-12-02 16:33:32 -08:00
d503950179
Fix all doc build warnings
2019-11-26 17:44:33 -08:00
bcd7890124
Move test utilities to tools ( #356 )
...
* move test factories to libp2p/tools
* remove unused inits
* move pubsub test utils to tools
* cleanup test_interop
* fix typing libp2p/tools/utils
* add typing to pubsub utils
* fix factories typing
* fix typing for floodsub_integration_test_settings
* fix rest of the typing
* fix isort
2019-11-21 11:47:54 +08:00