Skip to content

Commit

Permalink
Merge pull request #630 from OpenVoiceOS/release-0.3.3a1
Browse files Browse the repository at this point in the history
Release 0.3.3a1
  • Loading branch information
JarbasAl authored Dec 9, 2024
2 parents 88b094d + ee73f58 commit ab82250
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Changelog

## [0.3.2a1](https://github.com/OpenVoiceOS/ovos-core/tree/0.3.2a1) (2024-12-06)
## [0.3.3a1](https://github.com/OpenVoiceOS/ovos-core/tree/0.3.3a1) (2024-12-09)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-core/compare/0.3.1...0.3.2a1)
[Full Changelog](https://github.com/OpenVoiceOS/ovos-core/compare/0.3.2...0.3.3a1)

**Merged pull requests:**

- fix: pull padatious fixes from ovos-padatious-pipeline-plugin/pul/l26 [\#625](https://github.com/OpenVoiceOS/ovos-core/pull/625) ([JarbasAl](https://github.com/JarbasAl))
- fix: runtime requirements [\#628](https://github.com/OpenVoiceOS/ovos-core/pull/628) ([JarbasAl](https://github.com/JarbasAl))



Expand Down
12 changes: 8 additions & 4 deletions ovos_core/skill_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ def load_plugin_skills(self, network=None, internet=None):
LOG.info(f"Consider uninstalling {skill_id} instead of blacklisting it")
continue
if skill_id not in self.plugin_skills and skill_id not in loaded_skill_ids:
skill_loader = self._get_plugin_skill_loader(skill_id, init_bus=False)
skill_loader = self._get_plugin_skill_loader(skill_id, init_bus=False,
skill_class=plug)
requirements = skill_loader.runtime_requirements
if not network and requirements.network_before_load:
continue
Expand All @@ -327,7 +328,7 @@ def _get_internal_skill_bus(self):
bus = self.bus
return bus

def _get_plugin_skill_loader(self, skill_id, init_bus=True):
def _get_plugin_skill_loader(self, skill_id, init_bus=True, skill_class=None):
"""Get a plugin skill loader.
Args:
Expand All @@ -340,7 +341,10 @@ def _get_plugin_skill_loader(self, skill_id, init_bus=True):
bus = None
if init_bus:
bus = self._get_internal_skill_bus()
return PluginSkillLoader(bus, skill_id)
loader = PluginSkillLoader(bus, skill_id)
if skill_class:
loader.skill_class = skill_class
return loader

def _load_plugin_skill(self, skill_id, skill_plugin):
"""Load a plugin skill.
Expand All @@ -352,7 +356,7 @@ def _load_plugin_skill(self, skill_id, skill_plugin):
Returns:
PluginSkillLoader: Loaded plugin skill loader instance if successful, None otherwise.
"""
skill_loader = self._get_plugin_skill_loader(skill_id)
skill_loader = self._get_plugin_skill_loader(skill_id, skill_class=skill_plugin)
try:
load_status = skill_loader.load(skill_plugin)
except Exception:
Expand Down
4 changes: 2 additions & 2 deletions ovos_core/version.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# START_VERSION_BLOCK
VERSION_MAJOR = 0
VERSION_MINOR = 3
VERSION_BUILD = 2
VERSION_ALPHA = 0
VERSION_BUILD = 3
VERSION_ALPHA = 1
# END_VERSION_BLOCK

# for compat with old imports
Expand Down

0 comments on commit ab82250

Please sign in to comment.