From c88b988a66867ffc36000273f5a2e7217655fb25 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Sat, 9 Dec 2023 15:55:13 +0000 Subject: [PATCH 01/16] feat/disable_cache (#194) --- ovos_plugin_manager/templates/tts.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ovos_plugin_manager/templates/tts.py b/ovos_plugin_manager/templates/tts.py index 78aa4094..bbd0a2b3 100644 --- a/ovos_plugin_manager/templates/tts.py +++ b/ovos_plugin_manager/templates/tts.py @@ -161,6 +161,8 @@ def __init__(self, lang="en-us", config=None, validator=None, self.ssml_tags = ssml_tags or [] self.log_timestamps = self.config.get("log_timestamps", False) + self.enable_cache = self.config.get("enable_cache", True) + self.voice = self.config.get("voice") or "default" # TODO can self.filename be deprecated ? is it used anywhere at all? cache_dir = get_cache_directory(self.tts_name) @@ -550,7 +552,7 @@ def synth(self, sentence, **kwargs): cache = self.get_cache(voice, lang) # cache per tts_id (lang/voice combo) # load from cache - if sentence_hash in cache: + if self.enable_cache and sentence_hash in cache: audio, phonemes = self.get_from_cache(sentence, **kwargs) self.add_metric({"metric_type": "tts.synth.finished", "cache": True}) return audio, phonemes @@ -571,8 +573,9 @@ def synth(self, sentence, **kwargs): self.add_metric({"metric_type": "tts.synth.finished"}) # cache sentence + phonemes - self._cache_sentence(sentence, audio, phonemes, sentence_hash, - voice=voice, lang=lang) + if self.enable_cache: + self._cache_sentence(sentence, audio, phonemes, sentence_hash, + voice=voice, lang=lang) return audio, phonemes def _cache_phonemes(self, sentence, phonemes=None, sentence_hash=None): From c7144330c2a12ad5f836e973e104e63109e9e594 Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Sat, 9 Dec 2023 15:55:27 +0000 Subject: [PATCH 02/16] Increment Version to 0.0.25a1 --- ovos_plugin_manager/version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ovos_plugin_manager/version.py b/ovos_plugin_manager/version.py index aacf6ad5..29dfd413 100644 --- a/ovos_plugin_manager/version.py +++ b/ovos_plugin_manager/version.py @@ -2,6 +2,6 @@ # START_VERSION_BLOCK VERSION_MAJOR = 0 VERSION_MINOR = 0 -VERSION_BUILD = 24 -VERSION_ALPHA = 0 +VERSION_BUILD = 25 +VERSION_ALPHA = 1 # END_VERSION_BLOCK From 6ae999156ef3e4a8ebfc29d7813d45f2fa37c74f Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Sat, 9 Dec 2023 15:55:57 +0000 Subject: [PATCH 03/16] Update Changelog --- CHANGELOG.md | 156 +-------------------------------------------------- 1 file changed, 3 insertions(+), 153 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 321608e7..783074e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,162 +1,12 @@ # Changelog -## [V0.0.24a18](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a18) (2023-10-25) +## [0.0.25a1](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/0.0.25a1) (2023-12-09) -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a17...V0.0.24a18) - -**Fixed bugs:** - -- STT class init with wrong config [\#132](https://github.com/OpenVoiceOS/ovos-plugin-manager/issues/132) -- Fix STT and TTS configuration handling [\#187](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/187) ([NeonDaniel](https://github.com/NeonDaniel)) - -## [V0.0.24a17](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a17) (2023-10-25) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a16...V0.0.24a17) - -**Merged pull requests:** - -- Update test dependencies [\#190](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/190) ([NeonDaniel](https://github.com/NeonDaniel)) - -## [V0.0.24a16](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a16) (2023-10-24) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a15...V0.0.24a16) - -**Fixed bugs:** - -- remove log spam [\#188](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/188) ([JarbasAl](https://github.com/JarbasAl)) - -**Closed issues:** - -- support ovos-translate-server [\#182](https://github.com/OpenVoiceOS/ovos-plugin-manager/issues/182) - -## [V0.0.24a15](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a15) (2023-10-12) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a14...V0.0.24a15) - -**Fixed bugs:** - -- Language Module Factory Tests/Fixes [\#184](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/184) ([NeonDaniel](https://github.com/NeonDaniel)) - -## [V0.0.24a14](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a14) (2023-10-11) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a13...V0.0.24a14) - -**Fixed bugs:** - -- No module named 'mycroft\_bus\_client' [\#146](https://github.com/OpenVoiceOS/ovos-plugin-manager/issues/146) -- Circular import while importing `StreamHandler` [\#130](https://github.com/OpenVoiceOS/ovos-plugin-manager/issues/130) - -**Merged pull requests:** - -- Add license notice and link to plugins from neon\_solvers package [\#185](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/185) ([NeonDaniel](https://github.com/NeonDaniel)) - -## [V0.0.24a13](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a13) (2023-10-10) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a12...V0.0.24a13) +[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24...0.0.25a1) **Implemented enhancements:** -- feat/translate\_plug\_as\_arg [\#183](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/183) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.24a12](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a12) (2023-10-08) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a11...V0.0.24a12) - -**Fixed bugs:** - -- fix/playback\_thread startup [\#181](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/181) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.24a11](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a11) (2023-10-08) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a10...V0.0.24a11) - -**Fixed bugs:** - -- fix/playback\_thread startup [\#180](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/180) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.24a10](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a10) (2023-10-07) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a9...V0.0.24a10) - -**Implemented enhancements:** - -- feat/ovos\_dialog\_tts\_transformers [\#179](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/179) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.24a9](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a9) (2023-09-22) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a8...V0.0.24a9) - -**Fixed bugs:** - -- fix/deprecation\_warnings [\#178](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/178) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.24a8](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a8) (2023-09-17) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a6...V0.0.24a8) - -**Merged pull requests:** - -- Don't swallow plugin load errors [\#176](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/176) ([strugee](https://github.com/strugee)) - -## [V0.0.24a6](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a6) (2023-09-08) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a5...V0.0.24a6) - -**Implemented enhancements:** - -- feat/extract\_speech [\#139](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/139) ([JarbasAl](https://github.com/JarbasAl)) - -**Fixed bugs:** - -- fix/audio\_config [\#174](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/174) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.24a5](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a5) (2023-07-07) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a4...V0.0.24a5) - -**Merged pull requests:** - -- Updates logging around language plugin errors [\#171](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/171) ([NeonDaniel](https://github.com/NeonDaniel)) - -## [V0.0.24a4](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a4) (2023-07-07) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a3...V0.0.24a4) - -**Merged pull requests:** - -- Replace `sleep` with `Event.wait` [\#170](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/170) ([NeonDaniel](https://github.com/NeonDaniel)) - -## [V0.0.24a3](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a3) (2023-07-04) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a2...V0.0.24a3) - -**Fixed bugs:** - -- feat/optional\_g2p [\#169](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/169) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.24a2](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a2) (2023-07-04) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24a1...V0.0.24a2) - -**Fixed bugs:** - -- fix/on\_mouth\_viseme\_list [\#168](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/168) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.24a1](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.24a1) (2023-06-21) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.23...V0.0.24a1) - -**Implemented enhancements:** - -- feat/tts\_session\_context [\#167](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/167) ([JarbasAl](https://github.com/JarbasAl)) - -**Fixed bugs:** - -- Automation fixes [\#164](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/164) ([NeonDaniel](https://github.com/NeonDaniel)) - -**Closed issues:** - -- ImportError: Wake Word marvin with module ovos-ww-plugin-precise-lite failed to load [\#166](https://github.com/OpenVoiceOS/ovos-plugin-manager/issues/166) +- feat/disable\_cache [\#194](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/194) ([JarbasAl](https://github.com/JarbasAl)) From e81677f25e31d4cbca2e1911477a93aa10469e42 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Thu, 28 Dec 2023 18:46:13 +0000 Subject: [PATCH 04/16] refactor/move_from_utils (#196) https://github.com/OpenVoiceOS/ovos-utils/issues/205 --- ovos_plugin_manager/skills.py | 154 ++++++++++++++++++++++++++++++++-- 1 file changed, 146 insertions(+), 8 deletions(-) diff --git a/ovos_plugin_manager/skills.py b/ovos_plugin_manager/skills.py index ec868a3b..a38093dc 100644 --- a/ovos_plugin_manager/skills.py +++ b/ovos_plugin_manager/skills.py @@ -1,13 +1,152 @@ +from os import makedirs, listdir +from os.path import join, isdir, dirname, expanduser, isfile + +import importlib.util +from ovos_config.config import read_mycroft_config +from ovos_config.locations import get_xdg_data_save_path, get_xdg_data_dirs +from typing import List, Optional + from ovos_plugin_manager.utils import PluginTypes -from ovos_utils.log import LOG +from ovos_plugin_manager.utils import find_plugins +from ovos_utils.log import LOG, log_deprecation + + +def get_installed_skill_ids(conf: Optional[dict] = None) -> List[str]: + """ + Gets a list of `skill_id`s for all installed skills + Args: + conf: Configuration, else loads from ovos_config.config.Configuration + Returns: + list of `skill_id` strings for all installed skills + """ + _, skill_ids = get_plugin_skills() + for d in get_skill_directories(conf): + for skill_dir in listdir(d): + if isdir(join(d, skill_dir)) and isfile(join(d, skill_dir, + "__init__.py")): + if skill_dir in skill_ids: + LOG.info(f"{skill_dir} installed as plugin and local dir") + continue + skill_ids.append(skill_dir) + return skill_ids + + +def get_skill_directories(conf: Optional[dict] = None) -> List[str]: + """ returns list of skill directories ordered by expected loading order + This corresponds to: + - XDG_DATA_DIRS + - default directory (see get_default_skills_directory method for details) + - user defined extra directories + Each directory contains individual skill folders to be loaded + If a skill exists in more than one directory (same folder name) previous instances will be ignored + ie. directories at the end of the list have priority over earlier directories + NOTE: empty folders are interpreted as disabled skills + new directories can be defined in mycroft.conf by specifying a full path + each extra directory is expected to contain individual skill folders to be loaded + the xdg folder name can also be changed, it defaults to "skills" + eg. ~/.local/share/mycroft/FOLDER_NAME + { + "skills": { + "directory": "skills", + "extra_directories": ["path/to/extra/dir/to/scan/for/skills"] + } + } + Args: + conf: Configuration, else loads from ovos_config.config.Configuration + Returns: + list of fully-qualified directories containing non-plugin skills + """ + # the contents of each skills directory must be individual skill folders + # we are still dependent on the mycroft-core structure of skill_id/__init__.py + + conf = conf or read_mycroft_config() + folder = conf["skills"].get("directory") or "skills" + # load all valid XDG paths + # NOTE: skills are actually code, but treated as user data! + # they should be considered applets rather than full applications + skill_locations = list(reversed( + [join(p, folder) for p in get_xdg_data_dirs() if + isdir(join(p, folder))] + )) + + # load the default skills folder + # only meaningful if xdg support is disabled + default = get_default_skills_directory(conf) + if default not in skill_locations: + skill_locations.append(default) + # load additional explicitly configured directories + conf = conf.get("skills") or {} + # extra_directories is a list of directories containing skill subdirectories + # NOT a list of individual skill folders + # preserve order while removing any duplicate entries + extra_dirs = (expanduser(d) for d in conf.get("extra_directories") or []) + for d in extra_dirs: + if isdir(d) and d not in skill_locations: + skill_locations.append(d) + return skill_locations -def find_plugins(*args, **kwargs): - # TODO: Deprecate in 0.1.0 - LOG.warning("This reference is deprecated. " - "Import from ovos_plugin_manager.utils directly") - from ovos_plugin_manager.utils import find_plugins - return find_plugins(*args, **kwargs) + +def get_default_skills_directory(conf: Optional[dict] = None) -> str: + """ return default directory to scan for skills + This is only meaningful if xdg is disabled in ovos.conf + If xdg is enabled then data_dir is always XDG_DATA_DIR + If xdg is disabled then data_dir by default corresponds to /opt/mycroft + users can define the data directory in mycroft.conf + the skills folder name (relative to data_dir) can also be defined there + NOTE: folder name also impacts all XDG skill directories! + { + "data_dir": "/opt/mycroft", + "skills": { + "directory": "skills" + } + } + Args: + conf: Configuration, else loads from ovos_config.config.Configuration + Returns: + Absolute path to default skills directory + """ + conf = conf or read_mycroft_config() + path_override = conf["skills"].get("directory_override") + folder = conf["skills"].get("directory") or "skills" + + # if .conf wants to use a specific path, use it! + if path_override: + log_deprecation("'directory_override' is deprecated!" + "add the new path to 'extra_directories' instead", + "0.1.0") + skills_folder = expanduser(path_override) + elif conf["skills"].get("extra_directories") and \ + len(conf["skills"].get("extra_directories")) > 0: + skills_folder = expanduser(conf["skills"]["extra_directories"][0]) + else: + skills_folder = join(get_xdg_data_save_path(), folder) + # create folder if needed + try: + makedirs(skills_folder, exist_ok=True) + except PermissionError: # old style /opt/mycroft/skills not available + skills_folder = join(get_xdg_data_save_path(), folder) + makedirs(skills_folder, exist_ok=True) + + return skills_folder + + +def get_plugin_skills() -> (list, list): + """ + Get the package directories for any pip installed skill plugins + Returns: + lists of skill directories and plugin skill IDs + """ + + skill_dirs = list() + plugins = find_skill_plugins() + skill_ids = list(plugins.keys()) + for skill_class in plugins.values(): + skill_dir = dirname(importlib.util.find_spec( + skill_class.__module__).origin) + skill_dirs.append(skill_dir) + LOG.info(f"Located plugin skills: {skill_ids}") + return skill_dirs, skill_ids def find_skill_plugins() -> dict: @@ -15,7 +154,6 @@ def find_skill_plugins() -> dict: Find all installed plugins @return: dict plugin names to entrypoints """ - from ovos_plugin_manager.utils import find_plugins return find_plugins(PluginTypes.SKILL) From 7f28a319991682877ef0e512093838320ae87809 Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Thu, 28 Dec 2023 18:46:28 +0000 Subject: [PATCH 05/16] Increment Version to 0.0.25a2 --- ovos_plugin_manager/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovos_plugin_manager/version.py b/ovos_plugin_manager/version.py index 29dfd413..9acfad8e 100644 --- a/ovos_plugin_manager/version.py +++ b/ovos_plugin_manager/version.py @@ -3,5 +3,5 @@ VERSION_MAJOR = 0 VERSION_MINOR = 0 VERSION_BUILD = 25 -VERSION_ALPHA = 1 +VERSION_ALPHA = 2 # END_VERSION_BLOCK From d4342dd71c6716f1c704626f8ae25c64cce44992 Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Thu, 28 Dec 2023 18:47:00 +0000 Subject: [PATCH 06/16] Update Changelog --- CHANGELOG.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 783074e6..70f8ad34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,20 @@ # Changelog -## [0.0.25a1](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/0.0.25a1) (2023-12-09) +## [0.0.25a2](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/0.0.25a2) (2023-12-28) -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24...0.0.25a1) +[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.25a1...0.0.25a2) + +**Closed issues:** + +- module 'inspect' has no attribute 'formatargspec' [\#189](https://github.com/OpenVoiceOS/ovos-plugin-manager/issues/189) + +**Merged pull requests:** + +- refactor/move\_from\_utils [\#196](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/196) ([JarbasAl](https://github.com/JarbasAl)) + +## [V0.0.25a1](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.25a1) (2023-12-09) + +[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.24...V0.0.25a1) **Implemented enhancements:** From a955049a91338330da22f1f64fdd69f83c491f96 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Fri, 29 Dec 2023 00:29:44 +0000 Subject: [PATCH 07/16] Update requirements.txt (#197) * Update requirements.txt preparing for 0.1.0 releases * Update requirements.txt --- requirements/requirements.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 6e39a978..b0103429 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1,10 +1,10 @@ -ovos-utils < 0.1.0, >=0.0.32 -ovos-bus-client < 0.1.0, >=0.0.3 -ovos-config < 0.1.0,>=0.0.8 +ovos-utils < 0.2.0, >=0.0.37 +ovos-bus-client < 0.2.0, >=0.0.7 +ovos-config < 0.2.0, >=0.0.12 combo_lock~=0.2 requests~=2.26 quebra_frases langcodes~=3.3.0 # see https://github.com/pypa/setuptools/issues/1471 -importlib_metadata \ No newline at end of file +importlib_metadata From e4dca278e49902b0daa34af73a52ee6eaef2c2c4 Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Fri, 29 Dec 2023 00:30:01 +0000 Subject: [PATCH 08/16] Increment Version to 0.0.25a3 --- ovos_plugin_manager/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovos_plugin_manager/version.py b/ovos_plugin_manager/version.py index 9acfad8e..cb276200 100644 --- a/ovos_plugin_manager/version.py +++ b/ovos_plugin_manager/version.py @@ -3,5 +3,5 @@ VERSION_MAJOR = 0 VERSION_MINOR = 0 VERSION_BUILD = 25 -VERSION_ALPHA = 2 +VERSION_ALPHA = 3 # END_VERSION_BLOCK From 09f15bc2a6a1a2233c915f54d2c9fc2715d721c0 Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Fri, 29 Dec 2023 00:30:37 +0000 Subject: [PATCH 09/16] Update Changelog --- CHANGELOG.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70f8ad34..a9dd63c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,16 @@ # Changelog -## [0.0.25a2](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/0.0.25a2) (2023-12-28) +## [0.0.25a3](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/0.0.25a3) (2023-12-29) -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.25a1...0.0.25a2) +[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.25a2...0.0.25a3) + +**Merged pull requests:** + +- Update requirements.txt [\#197](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/197) ([JarbasAl](https://github.com/JarbasAl)) + +## [V0.0.25a2](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.25a2) (2023-12-28) + +[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.25a1...V0.0.25a2) **Closed issues:** From 5430e55b56c348b8c5c6ae6f67ed5fc028d371ae Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Fri, 29 Dec 2023 13:21:21 +0000 Subject: [PATCH 10/16] update imports (#198) * refactor/move_from_utils https://github.com/OpenVoiceOS/ovos-utils/issues/205 * update imports for latest utils --- ovos_plugin_manager/audio.py | 2 +- ovos_plugin_manager/templates/transformers.py | 2 +- ovos_plugin_manager/templates/tts.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ovos_plugin_manager/audio.py b/ovos_plugin_manager/audio.py index 04d582a3..3ca5d0d0 100644 --- a/ovos_plugin_manager/audio.py +++ b/ovos_plugin_manager/audio.py @@ -1,6 +1,6 @@ from ovos_plugin_manager.utils import PluginConfigTypes, PluginTypes from ovos_utils.log import LOG -from ovos_utils.messagebus import get_mycroft_bus +from ovos_bus_client.util import get_mycroft_bus from ovos_config import Configuration diff --git a/ovos_plugin_manager/templates/transformers.py b/ovos_plugin_manager/templates/transformers.py index 32a8f65f..d2e48005 100644 --- a/ovos_plugin_manager/templates/transformers.py +++ b/ovos_plugin_manager/templates/transformers.py @@ -1,7 +1,7 @@ from typing import List, Tuple from ovos_config.config import Configuration -from ovos_utils.messagebus import get_mycroft_bus +from ovos_bus_client.util import get_mycroft_bus from ovos_plugin_manager.utils import ReadWriteStream diff --git a/ovos_plugin_manager/templates/tts.py b/ovos_plugin_manager/templates/tts.py index bbd0a2b3..019a1931 100644 --- a/ovos_plugin_manager/templates/tts.py +++ b/ovos_plugin_manager/templates/tts.py @@ -37,8 +37,8 @@ from ovos_plugin_manager.utils.config import get_plugin_config from ovos_plugin_manager.utils.tts_cache import TextToSpeechCache, hash_sentence from ovos_utils import classproperty -from ovos_utils import resolve_resource_file -from ovos_utils.enclosure.api import EnclosureAPI +from ovos_utils.file_utils import resolve_resource_file +from ovos_bus_client.apis.enclosure import EnclosureAPI from ovos_utils.file_utils import get_cache_directory from ovos_utils.lang.visimes import VISIMES from ovos_utils.log import LOG From a904faf3e2f59de3194d8e18637a2f6b5a8a4c6b Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Fri, 29 Dec 2023 13:21:35 +0000 Subject: [PATCH 11/16] Increment Version to 0.0.25a4 --- ovos_plugin_manager/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovos_plugin_manager/version.py b/ovos_plugin_manager/version.py index cb276200..9fcbdc9e 100644 --- a/ovos_plugin_manager/version.py +++ b/ovos_plugin_manager/version.py @@ -3,5 +3,5 @@ VERSION_MAJOR = 0 VERSION_MINOR = 0 VERSION_BUILD = 25 -VERSION_ALPHA = 3 +VERSION_ALPHA = 4 # END_VERSION_BLOCK From c5aaf8806e8cc58b543d1b3ae4b880d5672be183 Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Fri, 29 Dec 2023 13:22:01 +0000 Subject: [PATCH 12/16] Update Changelog --- CHANGELOG.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9dd63c5..d5c165f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,16 @@ # Changelog -## [0.0.25a3](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/0.0.25a3) (2023-12-29) +## [0.0.25a4](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/0.0.25a4) (2023-12-29) -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.25a2...0.0.25a3) +[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.25a3...0.0.25a4) + +**Merged pull requests:** + +- update imports [\#198](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/198) ([JarbasAl](https://github.com/JarbasAl)) + +## [V0.0.25a3](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.25a3) (2023-12-29) + +[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.25a2...V0.0.25a3) **Merged pull requests:** From 0f4f829e15eeaf5a838fc3886fbcc93ef47496b2 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Fri, 29 Dec 2023 18:09:39 +0000 Subject: [PATCH 13/16] Update requirements.txt (#201) Update requirements.txt --- requirements/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/requirements.txt b/requirements/requirements.txt index b0103429..b10d2770 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1,5 +1,5 @@ ovos-utils < 0.2.0, >=0.0.37 -ovos-bus-client < 0.2.0, >=0.0.7 +ovos-bus-client < 0.2.0, >=0.0.8 ovos-config < 0.2.0, >=0.0.12 combo_lock~=0.2 requests~=2.26 From 2f9fbf0ede07fcdd94958222f486fdbb2c64bc67 Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Fri, 29 Dec 2023 18:09:56 +0000 Subject: [PATCH 14/16] Increment Version to 0.0.25a5 --- ovos_plugin_manager/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovos_plugin_manager/version.py b/ovos_plugin_manager/version.py index 9fcbdc9e..1d285500 100644 --- a/ovos_plugin_manager/version.py +++ b/ovos_plugin_manager/version.py @@ -3,5 +3,5 @@ VERSION_MAJOR = 0 VERSION_MINOR = 0 VERSION_BUILD = 25 -VERSION_ALPHA = 4 +VERSION_ALPHA = 5 # END_VERSION_BLOCK From e9bc7d46b3de54a621185162346776590e337419 Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Fri, 29 Dec 2023 18:10:13 +0000 Subject: [PATCH 15/16] Increment Version to 0.0.25 --- ovos_plugin_manager/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovos_plugin_manager/version.py b/ovos_plugin_manager/version.py index 1d285500..6cdbd02a 100644 --- a/ovos_plugin_manager/version.py +++ b/ovos_plugin_manager/version.py @@ -3,5 +3,5 @@ VERSION_MAJOR = 0 VERSION_MINOR = 0 VERSION_BUILD = 25 -VERSION_ALPHA = 5 +VERSION_ALPHA = 0 # END_VERSION_BLOCK From e9b64fda0eff48fbf26495e5c953c24481f975c1 Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Fri, 29 Dec 2023 18:10:38 +0000 Subject: [PATCH 16/16] Update Changelog --- CHANGELOG.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5c165f1..7d25b1f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,16 @@ # Changelog -## [0.0.25a4](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/0.0.25a4) (2023-12-29) +## [0.0.25](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/0.0.25) (2023-12-29) -[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.25a3...0.0.25a4) +[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.25a4...0.0.25) + +**Merged pull requests:** + +- Update requirements.txt [\#201](https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/201) ([JarbasAl](https://github.com/JarbasAl)) + +## [V0.0.25a4](https://github.com/OpenVoiceOS/ovos-plugin-manager/tree/V0.0.25a4) (2023-12-29) + +[Full Changelog](https://github.com/OpenVoiceOS/ovos-plugin-manager/compare/V0.0.25a3...V0.0.25a4) **Merged pull requests:**