-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (46 loc) · 1.83 KB
/
setup.py
File metadata and controls
56 lines (46 loc) · 1.83 KB
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
import os
import shutil
import setuptools
INCLUDE_FILES = ("../../LICENSE", "eagle_demo_file.py", "eagle_demo_mic.py")
os.system("git clean -dfx")
package_folder = os.path.join(os.path.dirname(__file__), "pveagledemo")
os.mkdir(package_folder)
manifest_in = ""
for rel_path in INCLUDE_FILES:
shutil.copy(os.path.join(os.path.dirname(__file__), rel_path), package_folder)
manifest_in += "include pveagledemo/%s\n" % os.path.basename(rel_path)
with open(os.path.join(os.path.dirname(__file__), "MANIFEST.in"), "w") as f:
f.write(manifest_in)
with open(os.path.join(os.path.dirname(__file__), "README.md"), "r") as f:
long_description = f.read()
with open(os.path.join(os.path.dirname(__file__), "requirements.txt"), "r") as f:
dependencies = f.read().strip().splitlines()
setuptools.setup(
name="pveagledemo",
version="3.0.0",
author="Picovoice",
author_email="hello@picovoice.ai",
description="Eagle Speaker Recognition Engine demos",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Picovoice/eagle",
packages=["pveagledemo"],
install_requires=dependencies,
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=[
"eagle_demo_file=pveagledemo.eagle_demo_file:main",
"eagle_demo_mic=pveagledemo.eagle_demo_mic:main",
],
),
python_requires=">=3.9",
keywords="Speaker Recognition, Speaker Identification, Voice Recognition, Voice Identification",
)