-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathsetup.py
55 lines (49 loc) · 1.67 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
import os
import re
import sys
from setuptools import setup
def find_library(lib_regex, path="kaldiserve", required=True):
pattern = re.compile(lib_regex)
files = os.listdir(path)
for f in files:
if pattern.match(f):
return f
if required:
raise FileNotFoundError(lib_regex)
return None
setup(
name='kaldiserve',
version='1.0.0',
author='Vernacular.ai team',
author_email='[email protected]',
description='A plug-and-play abstraction over Kaldi ASR toolkit.',
long_description='',
packages=["kaldiserve"],
package_dir={"kaldiserve": "kaldiserve"},
include_package_data=True,
package_data={
"kaldiserve": [find_library(r"kaldiserve_pybind.*\.so")]
},
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Science/Research"
"Operating System :: POSIX :: Linux",
"Programming Language :: C",
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords="asr speech-recognition kaldi grpc-server",
license="Apache",
url="https://github.com/Vernacular-ai/kaldi-serve",
project_urls={
'Documentation': 'https://github.com/Vernacular-ai/kaldi-serve',
'Source code': 'https://github.com/Vernacular-ai/kaldi-serve',
'Issues': 'https://github.com/Vernacular-ai/kaldi-serve/issues',
},
zip_safe=False,
)