Skip to content

Commit

Permalink
move OCP to optional requirements, only needed for OCP skills that di…
Browse files Browse the repository at this point in the history
…rectly import the template (#28)
  • Loading branch information
JarbasAl authored Oct 19, 2022
1 parent 4c061bf commit a993a2f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ovos_workshop/decorators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
disables_layer, layer_intent, removes_layer, resets_layers, replaces_layer
from ovos_workshop.decorators.converse import converse_handler
from ovos_workshop.decorators.fallback_handler import fallback_handler
try:
from ovos_workshop.decorators.ocp import ocp_next, ocp_play, ocp_pause, ocp_resume, ocp_search, ocp_previous, ocp_featured_media
except ImportError:
pass # these imports are only available if extra requirements are installed


def resting_screen_handler(name):
Expand Down
1 change: 1 addition & 0 deletions requirements/ocp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ovos_plugin_common_play
1 change: 0 additions & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ovos_utils~=0.0, >=0.0.23
ovos_config~=0.0,>=0.0.4
ovos_plugin_common_play

# optional but improves fuzzy matching and silences logs
rapidfuzz
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def required(requirements_file):
'ovos_workshop.decorators',
'ovos_workshop.patches'],
install_requires=required("requirements/requirements.txt"),
extras_require={
'ocp': required('requirements/ocp.txt')
},
package_data={'': package_files('ovos_workshop')},
url='https://github.com/OpenVoiceOS/OVOS-workshop',
license='apache-2.0',
Expand Down

0 comments on commit a993a2f

Please sign in to comment.