Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
feat/runtime_requirements (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Feb 10, 2023
1 parent 690dc23 commit 5a06ae1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from mycroft_bus_client import Message
from ovos_utils.log import LOG
from ovos_utils.skills.locations import get_default_skills_directory
from ovos_utils.process_utils import RuntimeRequirements
from ovos_utils import classproperty

from mycroft.skills.core import resting_screen_handler, intent_file_handler,\
MycroftSkill
Expand All @@ -33,6 +35,18 @@ def __init__(self):
self.datetime_api = None
self.skill_info_api = None

@classproperty
def runtime_requirements(self):
return RuntimeRequirements(internet_before_load=False,
network_before_load=False,
gui_before_load=True,
requires_internet=False,
requires_network=False,
requires_gui=True,
no_internet_fallback=True,
no_network_fallback=True,
no_gui_fallback=False)

def initialize(self):
self.loc_wallpaper_folder = self.file_system.path + '/wallpapers/'
self.selected_wallpaper = self.settings.get("wallpaper") or "default.jpg"
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
requests~=2.20
pillow==7.1.2
ovos_utils~=0.0,>=0.0.23
ovos-utils~=0.0, >=0.0.28a4
ovos_workshop~=0.0, >=0.0.11a4

0 comments on commit 5a06ae1

Please sign in to comment.