File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 46
46
"web3==4.4.1" ,
47
47
"lahja==0.9.0" ,
48
48
"termcolor>=1.1.0,<2.0.0" ,
49
- "uvloop==0.11.2;platform_system=='Linux' or platform_system=='Darwin'" ,
49
+ "uvloop==0.11.2;platform_system=='Linux' or platform_system=='Darwin' or platform_system=='FreeBSD' " ,
50
50
"websockets==5.0.1" ,
51
51
],
52
52
'test' : [
Original file line number Diff line number Diff line change 13
13
# This is to ensure we call setup_trace_logging() before anything else.
14
14
import eth as _eth_module # noqa: F401
15
15
16
- if sys .platform in {'darwin' , 'linux' }:
16
+
17
+ def is_uvloop_supported () -> bool :
18
+ return sys .platform in {'darwin' , 'linux' } or sys .platform .startswith ('freebsd' )
19
+
20
+
21
+ if is_uvloop_supported ():
17
22
# Set `uvloop` as the default event loop
18
23
import asyncio # noqa: E402
19
24
import uvloop # noqa: E402
You can’t perform that action at this time.
0 commit comments