Skip to content

Commit

Permalink
trust semantic versioning (#538)
Browse files Browse the repository at this point in the history
* stable dependencies

* fix:handle old padacioso versions
  • Loading branch information
JarbasAl authored Sep 11, 2024
1 parent 9fa0b49 commit 1214b44
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 55 deletions.
12 changes: 9 additions & 3 deletions ovos_core/intent_services/padacioso_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,15 @@ def __init__(self, bus, config):
self.conf_low = self.padacioso_config.get("conf_low") or 0.5
self.workers = self.padacioso_config.get("workers") or 4

self.containers = {lang: FallbackIntentContainer(
self.padacioso_config.get("fuzz"), n_workers=self.workers)
for lang in langs}
try:
self.containers = {
lang: FallbackIntentContainer(self.padacioso_config.get("fuzz"),
n_workers=self.workers)
for lang in langs}
except TypeError: # old padacioso version without n_workers kwarg
self.containers = {
lang: FallbackIntentContainer(self.padacioso_config.get("fuzz"))
for lang in langs}

self.bus.on('padatious:register_intent', self.register_intent)
self.bus.on('padatious:register_entity', self.register_entity)
Expand Down
30 changes: 15 additions & 15 deletions requirements/mycroft.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# ovos modules for compat with mycroft namespace
ovos_PHAL<0.1.0, >=0.0.5a14
ovos-audio~=0.0, >=0.0.2a32
ovos-listener~=0.0, >=0.0.3a2
ovos-gui~=0.0, >=0.0.4a5
ovos-messagebus~=0.0
ovos_PHAL>=0.0.5,<1.0.0
ovos-audio>=0.0.0,<1.0.0
ovos-listener>=0.0.3,<1.0.0
ovos-gui>=0.0.4,<1.0.0
ovos-messagebus>=0.0.1,<1.0.0

# default plugins
ovos-stt-plugin-server>=0.0.3, <0.1.0
ovos-tts-plugin-mimic>=0.2.8, <0.3.0
ovos-tts-plugin-server>=0.0.2a6
ovos-stt-plugin-server>=0.0.3, <1.0.0
ovos-tts-plugin-mimic>=0.2.8, <1.0.0
ovos-tts-plugin-server>=0.0.2a6, <1.0.0

ovos-ww-plugin-pocketsphinx~=0.1
ovos-ww-plugin-precise~=0.1
ovos-vad-plugin-webrtcvad>=0.0.1, <0.1.0
ovos-ww-plugin-pocketsphinx>=0.1, <1.0.0
ovos-ww-plugin-precise>=0.1, <1.0.0
ovos-vad-plugin-webrtcvad>=0.0.1, <1.0.0

ovos_plugin_common_play>=0.0.6a11, <0.1.0
ovos_plugin_common_play>=0.0.7, <1.0.0
# ovos-ocp-youtube-plugin~=0.0, >=0.0.1
ovos-ocp-m3u-plugin>=0.0.1,<0.1.0
ovos-ocp-rss-plugin>=0.0.2,<0.1.0
ovos-ocp-m3u-plugin>=0.0.1,<1.0.0
ovos-ocp-rss-plugin>=0.0.2,<1.0.0
ovos-ocp-files-plugin~=0.13
ovos-ocp-news-plugin>=0.0.3,<0.1.0
ovos-ocp-news-plugin>=0.0.3,<1.0.0
18 changes: 9 additions & 9 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ python-dateutil>=2.6, <3.0
watchdog>=2.1, <3.0
combo-lock>=0.2.2, <0.3

padacioso~=0.2, >=0.2.1
padacioso>=0.1.0,<1.0.0
adapt-parser>=1.0.0, <2.0.0

ovos-utils>=0.0.38
ovos_bus_client<0.1.0, >=0.0.9a28
ovos-plugin-manager<0.1.0, >=0.0.26a33
ovos-config~=0.0,>=0.0.13a8
ovos-lingua-franca>=0.4.7
ovos-backend-client~=0.1.0
ovos-workshop>=0.0.16a45
ovos-utils>=0.0.38,<1.0.0
ovos_bus_client>=0.0.9,<1.0.0
ovos-plugin-manager>=0.0.26,<1.0.0
ovos-config>=0.0.13,<1.0.0
ovos-lingua-franca>=0.4.7,<1.0.0
ovos-backend-client>=0.1.0,<1.0.0
ovos-workshop>=0.0.16,<1.0.0

ovos-utterance-normalizer>=0.0.0a5
ovos-utterance-normalizer>=0.1.0,<1.0.0

# ensure default plugin available for any solver plugins
ovos-translate-server-plugin
7 changes: 7 additions & 0 deletions requirements/skills-audio.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# skills that run in audio enabled devices (require mic/speaker)
ovos-skill-boot-finished>=0.1.0,<1.0.0
ovos-skill-audio-recording>=0.1.0,<1.0.0
ovos-skill-dictation>=0.1.0,<1.0.0
ovos-skill-parrot>=0.0.1,<1.0.0
ovos-skill-volume>=0.0.2,<1.0.0
ovos-skill-naptime>=0.2.3,<1.0.0
5 changes: 2 additions & 3 deletions requirements/skills-desktop.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# TODO - publish
# https://github.com/OpenVoiceOS/skill-ovos-dictation
# https://github.com/OpenVoiceOS/skill-ovos-application-launcher
# skills that require a linux desktop environment
ovos-skill-application-launcher>=0.1.0,<1.0.0
20 changes: 9 additions & 11 deletions requirements/skills-essential.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
ovos-skill-volume~=0.0, >=0.0.2a3
ovos-skill-fallback-unknown~=0.0, >=0.0.4a1
ovos-skill-alerts>=0.0.1a6
ovos-skill-personal~=0.0, >=0.0.4a1
ovos-skill-naptime~=0.2, >=0.2.2
ovos-skill-date-time>=0.2.3a4
ovos-skill-hello-world~=0.0, >=0.0.4a2
ovos-skill-parrot
# TODO - publish
# https://github.com/OpenVoiceOS/skill-ovos-boot-finished
# https://github.com/OpenVoiceOS/skill-ovos-audio-recording
# skills providing core functionality (offline)
ovos-skill-fallback-unknown>=0.0.4,<1.0.0
ovos-skill-alerts>=0.0.1,<1.0.0
ovos-skill-personal>=0.0.4,<1.0.0
ovos-skill-date-time>=0.2.3,<1.0.0
ovos-skill-hello-world>=0.0.4,<1.0.0
skill-wordnet>=0.0.1,<1.0.0
#skill-randomness>=0.0.1,<1.0.0
ovos-skill-spelling>=0.1.0,<1.0.0
2 changes: 1 addition & 1 deletion requirements/skills-gui.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ovos-skill-homescreen
ovos-skill-homescreen>=0.0.3,<1.0.0
14 changes: 9 additions & 5 deletions requirements/skills-internet.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
ovos-skill-weather~=0.0, >=0.0.1a14
ovos-skill-ddg
ovos-skill-wolfie
ovos-skill-wikipedia
skill-ovos-fallback-chatgpt
# skills that require internet connectivity, should not be installed in offline devices
ovos-skill-weather>=0.0.1,<1.0.0
skill-ddg>=0.0.2,<1.0.0
skill-wolfie>=0.2.0,<1.0.0
ovos-skill-wikipedia>=0.5.0,<1.0.0
skill-ovos-fallback-chatgpt>=0.0.2,<1.0.0
ovos-skill-wikihow>=0.2.0,<1.0.0
ovos-skill-speedtest>=0.1.0,<1.0.0
ovos-skill-ip>=0.1.0,<1.0.0
10 changes: 6 additions & 4 deletions requirements/skills-media.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ovos-skill-somafm
skill-youtube-music
ovos-skill-tunein
ovos-skill-news
# skills for OCP, require audio playback plugins (usually mpv)
ovos-skill-somafm>=0.0.2,<1.0.0
skill-news>=0.0.4,<1.0.0
ovos-skill-pyradios>=0.1.0,<1.0.0
ovos-skill-local-media>=0.2.0,<1.0.0
ovos-skill-youtube-music>=0.1.1,<1.0.0
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def required(requirements_file):
'lgpl': required('requirements/lgpl.txt'),
'deprecated': required('requirements/extra-deprecated.txt'),
'skills-essential': required('requirements/skills-essential.txt'),
'skills-audio': required('requirements/skills-audio.txt'),
'skills-desktop': required('requirements/skills-desktop.txt'),
'skills-internet': required('requirements/skills-internet.txt'),
'skills-gui': required('requirements/skills-gui.txt'),
Expand Down
5 changes: 1 addition & 4 deletions test/unittests/skills/test_intent_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,8 @@ def test_shutdown(self):
'register_intent',
'register_vocab',
'remove_context',
'skill.converse.get_response',
'skill.converse.get_response.disable',
'skill.converse.get_response.enable',
'skill.converse.ping',
'skill.converse.request'})
'skill.converse.get_response.enable'})


class TestAdaptIntent(TestCase):
Expand Down

0 comments on commit 1214b44

Please sign in to comment.