Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docker_overlay/etc/neon/neon.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
language:
supported_langs:
- en
- uk
# secondary_langs defines what languages are loaded in ovos-core intent services
secondary_langs: [en-us]

skills:
wait_for_internet: false
extra_directories:
Expand Down Expand Up @@ -45,4 +47,4 @@ ready_settings:
- skills
signal:
use_signal_files: false
patch_imports: false
patch_imports: false
2 changes: 1 addition & 1 deletion neon_core/configuration/neon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -338,4 +338,4 @@ location:
code: America/Los_Angeles
name: Pacific Standard Time
dstOffset: 3600000
offset: -28800000
offset: -28800000
21 changes: 9 additions & 12 deletions neon_core/util/skill_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
from os.path import expanduser, join, isdir, dirname, islink
from typing import List

from ovos_utils.xdg_utils import xdg_data_home
from ovos_utils.log import LOG
from ovos_utils.log import LOG, deprecated

from ovos_config.config import Configuration


@deprecated("Internal function is deprecated", "25.09.01")
def _write_pip_constraints_to_file(output_file: str):
"""
Writes out a constraints file for OSM to use to prevent broken dependencies
Expand Down Expand Up @@ -67,6 +67,7 @@ def _write_pip_constraints_to_file(output_file: str):
LOG.info(f"Wrote core constraints to file: {output_file}")


@deprecated("Internal function is deprecated", "25.09.01")
def _install_skill_pip(skill_package: str, constraints_file: str) -> bool:
"""
Pip install the specified package
Expand All @@ -92,16 +93,12 @@ def install_skills_from_list(skills_to_install: list, config: dict = None):
:param skills_to_install: list of skills to install
:param config: optional dict configuration
"""
constraints_file = join(xdg_data_home(), "neon", "constraints.txt")
_write_pip_constraints_to_file(constraints_file)

for spec in skills_to_install:
if "://" in spec and "git+" not in spec:
LOG.error(f"Got an invalid package spec to install: {spec}")
elif not _install_skill_pip(spec, constraints_file):
LOG.error(f"Pip installation failed for: {spec}")

LOG.info(f"Installed {len(skills_to_install)} skills")
from neon_utils.packaging_utils import install_packages_from_pip
ret_code = install_packages_from_pip("neon-core", skills_to_install, True)
if ret_code == 0:
LOG.info(f"Installed {len(skills_to_install)} skills")
else:
LOG.error(f"Error installing skills: {ret_code}")


def install_skills_default(config: dict = None):
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ovos-core[lgpl]~=0.1


neon-utils[network]~=1.13,>=1.13.1a1
neon-utils[network]~=1.13,>=1.13.1a4
ovos-utils~=0.0,>=0.0.38
ovos-bus-client~=0.0,>=0.0.10
neon-transformers~=1.0
Expand Down
3 changes: 1 addition & 2 deletions test/test_skill_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import unittest
from os.path import dirname, join, exists, isdir
from unittest.mock import patch
from unittest import skip

sys.path.append(os.path.dirname(os.path.dirname(__file__)))

Expand All @@ -43,7 +42,7 @@
]

TEST_SKILLS_WITH_PIP = [
"https://github.com/NeonGeckoCom/skill-date_time/tree/dev",
# "https://github.com/NeonGeckoCom/skill-date_time/tree/dev",
"git+https://github.com/NeonGeckoCom/malls-parser-skill",
"neon-skill-support_helper"
]
Expand Down
Loading