Skip to content

Commit

Permalink
Add signal extras and handle missing mock dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Feb 7, 2025
1 parent 6ea9310 commit 816201d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion neon_utils/signal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@
from time import time, sleep
from typing import Optional, Callable

from mock.mock import Mock
from ovos_bus_client import MessageBusClient, Message
from ovos_utils.log import log_deprecation

from neon_utils.logger import LOG

try:
from mock.mock import Mock
except ImportError:
raise ImportError("`mock` is not installed,"
" pip install neon-utils[signal]")
_BUS: Optional[MessageBusClient] = None
_MAX_TIMEOUT: Optional[int] = None

Expand Down
1 change: 1 addition & 0 deletions requirements/signal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mock
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def get_requirements(requirements_filename: str):
"audio": get_requirements("audio.txt"),
"network": get_requirements("network.txt"),
"configuration": get_requirements("configuration.txt"),
"sentry": get_requirements("sentry.txt")
"sentry": get_requirements("sentry.txt"),
"signal": get_requirements("signal.txt")
},
entry_points={
'console_scripts': [
Expand Down

0 comments on commit 816201d

Please sign in to comment.