porcupine/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__), 'pvporcupinedemo')
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__), 'porcupine_demo_file.py'),
15  os.path.join(package_folder, 'porcupine_demo_file.py'))
16 
17 shutil.copy(
18  os.path.join(os.path.dirname(__file__), 'porcupine_demo_mic.py'),
19  os.path.join(package_folder, 'porcupine_demo_mic.py'))
20 
21 with open(os.path.join(os.path.dirname(__file__), 'MANIFEST.in'), 'w') as f:
22  f.write('include pvporcupinedemo/LICENSE\n')
23  f.write('include pvporcupinedemo/porcupine_demo_file.py\n')
24  f.write('include pvporcupinedemo/porcupine_demo_mic.py\n')
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="pvporcupinedemo",
31  version="2.1.0",
32  author="Picovoice",
33  author_email="hello@picovoice.ai",
34  description="Porcupine wake word engine demos",
35  long_description=long_description,
36  long_description_content_type="text/markdown",
37  url="https://github.com/Picovoice/porcupine",
38  packages=["pvporcupinedemo"],
39  install_requires=["pvporcupine==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  'porcupine_demo_file=pvporcupinedemo.porcupine_demo_file:main',
52  'porcupine_demo_mic=pvporcupinedemo.porcupine_demo_mic:main',
53  ],
54  ),
55  python_requires='>=3.5',
56  keywords="wake word engine, hotword detection, keyword spotting, wake word detection, voice commands",
57 )


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