Skip to content

Commit

Permalink
Mark old CLI entrypoint as deprecated
Browse files Browse the repository at this point in the history
Update dependencies to stable versions
  • Loading branch information
NeonDaniel committed Jul 18, 2023
1 parent 4c1cb08 commit dc03a51
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions neon_speech/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
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.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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]
}
Expand Down

0 comments on commit dc03a51

Please sign in to comment.