Skip to content

Commit

Permalink
Update cli module to set default envvars
Browse files Browse the repository at this point in the history
Remove references to deprecated `init_config_dir` function
Update Python versions used in testing
  • Loading branch information
NeonDaniel committed Feb 6, 2025
1 parent a5beab6 commit 06a952d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
py_build_tests:
uses: neongeckocom/.github/.github/workflows/python_build_tests.yml@master
with:
python_version: "3.8"
python_version: "3.10"
docker_build_tests:
uses: neongeckocom/.github/.github/workflows/docker_build_tests.yml@master
with:
Expand All @@ -21,12 +21,12 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.9, '3.10', '3.11']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
9 changes: 5 additions & 4 deletions neon_speech/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@

import click
import sys
from typing import List

from typing import List
from os import environ
from click_default_group import DefaultGroup
from neon_utils.packaging_utils import get_package_version_spec
from neon_utils.configuration_utils import init_config_dir
from ovos_config.config import Configuration
from ovos_utils.log import LOG, log_deprecation

environ.setdefault("OVOS_CONFIG_BASE_FOLDER", "neon")
environ.setdefault("OVOS_CONFIG_FILENAME", "neon.yaml")


@click.group("neon-speech", cls=DefaultGroup,
no_args_is_help=True, invoke_without_command=True,
Expand All @@ -57,8 +60,6 @@ def neon_speech_cli(version: bool = False):
@click.option("--force-install", "-f", default=False, is_flag=True,
help="Force pip installation of configured module")
def run(module, package, force_install):
init_config_dir()

from neon_speech.__main__ import main
from ovos_config.config import Configuration
speech_config = Configuration()
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ovos-utils~=0.0,>=0.0.30
ovos-plugin-manager~=0.0,>=0.0.26a39
click~=8.0
click-default-group~=1.2
neon-utils[network,audio]~=1.9,>=1.11.1a3
neon-utils[network,audio]~=1.11
ovos-config~=0.0,>=0.0.7

ovos-vad-plugin-webrtcvad~=0.0.1
Expand Down

0 comments on commit 06a952d

Please sign in to comment.