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