From 91f0054fbc72557a0bf4f3d41479167a72519e76 Mon Sep 17 00:00:00 2001 From: Daniel McKnight <34697904+NeonDaniel@users.noreply.github.com> Date: Tue, 18 Jul 2023 11:59:14 -0700 Subject: [PATCH] Update dependencies and mark deprecation (#171) # Description Mark old CLI entrypoint as deprecated Update dependencies to stable versions # Issues # Other Notes --- neon_speech/__main__.py | 7 +++++++ requirements/requirements.txt | 2 +- setup.py | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/neon_speech/__main__.py b/neon_speech/__main__.py index 6cdf07d..0e13a87 100644 --- a/neon_speech/__main__.py +++ b/neon_speech/__main__.py @@ -55,5 +55,12 @@ def main(*args, **kwargs): service.shutdown() +def deprecated_entrypoint(): + from ovos_utils.log import log_deprecation + log_deprecation("Use `neon-speech run` in place of `neon_speech_client`", + "2.0.0") + main() + + if __name__ == "__main__": main() diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 607193d..c65553f 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -4,7 +4,7 @@ ovos-utils~=0.0.30 ovos-plugin-manager~=0.0.23 click~=8.0 click-default-group~=1.2 -neon-utils[network,audio]~=1.5,>=1.5.1a7 +neon-utils[network,audio]~=1.6 ovos-config~=0.0.7 ovos-vad-plugin-webrtcvad~=0.0.1 diff --git a/setup.py b/setup.py index 1f8b078..ff62de7 100644 --- a/setup.py +++ b/setup.py @@ -79,7 +79,7 @@ def get_requirements(requirements_filename: str): entry_points={ 'console_scripts': [ # TODO: Deprecate `neon_speech_client` entrypoint - 'neon_speech_client=neon_speech.__main__:main', + 'neon_speech_client=neon_speech.__main__:deprecated_entrypoint', 'neon-speech=neon_speech.cli:neon_speech_cli' ] }