rhino/demo/python/setup.py
Go to the documentation of this file.
1 import os
2 import shutil
3 
4 import setuptools
5 
6 os.system('git clean -dfx')
7 
8 package_folder = os.path.join(os.path.dirname(__file__), 'pvrhinodemo')
9 os.mkdir(package_folder)
10 
11 shutil.copy(os.path.join(os.path.dirname(__file__), '../../LICENSE'), package_folder)
12 
13 shutil.copy(
14  os.path.join(os.path.dirname(__file__), 'rhino_demo_file.py'),
15  os.path.join(package_folder, 'rhino_demo_file.py'))
16 
17 shutil.copy(
18  os.path.join(os.path.dirname(__file__), 'rhino_demo_mic.py'),
19  os.path.join(package_folder, 'rhino_demo_mic.py'))
20 
21 with open(os.path.join(os.path.dirname(__file__), 'MANIFEST.in'), 'w') as f:
22  f.write('include pvrhinodemo/LICENSE')
23  f.write('include pvrhinodemo/rhino_demo_file.py')
24  f.write('include pvrhinodemo/rhino_demo_mic.py')
25 
26 with open(os.path.join(os.path.dirname(__file__), 'README.md'), 'r') as f:
27  long_description = f.read()
28 
29 setuptools.setup(
30  name="pvrhinodemo",
31  version="2.1.0",
32  author="Picovoice",
33  author_email="hello@picovoice.ai",
34  description="Rhino Speech-to-Intent engine demos.",
35  long_description=long_description,
36  long_description_content_type="text/markdown",
37  url="https://github.com/Picovoice/rhino",
38  packages=["pvrhinodemo"],
39  install_requires=["pvrhino==2.1.0", "pvrecorder==1.0.2"],
40  include_package_data=True,
41  classifiers=[
42  "Development Status :: 5 - Production/Stable",
43  "Intended Audience :: Developers",
44  "License :: OSI Approved :: Apache Software License",
45  "Operating System :: OS Independent",
46  "Programming Language :: Python :: 3",
47  "Topic :: Multimedia :: Sound/Audio :: Speech"
48  ],
49  entry_points=dict(
50  console_scripts=[
51  'rhino_demo_file=pvrhinodemo.rhino_demo_file:main',
52  'rhino_demo_mic=pvrhinodemo.rhino_demo_mic:main',
53  ],
54  ),
55  python_requires='>=3.5',
56  keywords="Speech-to-Intent, voice commands, voice control, speech recognition, natural language understanding"
57 )


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:50