6 os.system(
'git clean -dfx')
8 package_folder = os.path.join(os.path.dirname(__file__),
'pvporcupinedemo')
9 os.mkdir(package_folder)
11 shutil.copy(os.path.join(os.path.dirname(__file__),
'../../LICENSE'), package_folder)
14 os.path.join(os.path.dirname(__file__),
'porcupine_demo_file.py'),
15 os.path.join(package_folder,
'porcupine_demo_file.py'))
18 os.path.join(os.path.dirname(__file__),
'porcupine_demo_mic.py'),
19 os.path.join(package_folder,
'porcupine_demo_mic.py'))
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')
26 with open(os.path.join(os.path.dirname(__file__),
'README.md'),
'r')
as f:
27 long_description = f.read()
30 name=
"pvporcupinedemo",
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,
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"
51 'porcupine_demo_file=pvporcupinedemo.porcupine_demo_file:main',
52 'porcupine_demo_mic=pvporcupinedemo.porcupine_demo_mic:main',
55 python_requires=
'>=3.5',
56 keywords=
"wake word engine, hotword detection, keyword spotting, wake word detection, voice commands",