Skip to content

Commit

Permalink
Remove mycroft imports (#39)
Browse files Browse the repository at this point in the history
* Refactor to remove `mycroft` module imports
Ensure all dependencies are listed in `requirements.txt`

* Update skill.json

---------

Co-authored-by: Daniel McKnight <[email protected]>
Co-authored-by: NeonDaniel <[email protected]>
  • Loading branch information
3 people authored May 10, 2024
1 parent a53eadb commit ab4322a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from ovos_utils.process_utils import RuntimeRequirements
from neon_utils.skills.neon_skill import NeonSkill
from neon_utils.signal_utils import check_for_signal
from mycroft.skills import intent_handler, intent_file_handler
from ovos_workshop.decorators import intent_handler


class CommunicationSkill(NeonSkill):
Expand Down Expand Up @@ -61,7 +61,7 @@ def initialize(self):
self.add_event("communication:request.message.response",
self.handle_send_message_response)

@intent_file_handler("call.intent")
@intent_handler("call.intent")
def handle_place_call(self, message):
if self.neon_in_request(message):
# TODO: Move hesitation to user preference DM
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
neon-utils~=1.0
ovos-utils~=0.0, >=0.0.28
ovos-utils~=0.0, >=0.0.28
ovos-workshop~=0.0.15
adapt-parser<2.0,>=0.5
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
neon-minerva[padatious]~=0.1,>=0.1.1a5
neon-minerva[padatious]~=0.2
4 changes: 3 additions & 1 deletion skill.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"systemDeps": false,
"requirements": {
"python": [
"adapt-parser<2.0,>=0.5",
"neon-utils~=1.0",
"ovos-utils~=0.0, >=0.0.28"
"ovos-utils~=0.0, >=0.0.28",
"ovos-workshop~=0.0.15"
],
"system": {},
"skill": []
Expand Down

0 comments on commit ab4322a

Please sign in to comment.