-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (47 loc) · 1.64 KB
/
setup.py
File metadata and controls
52 lines (47 loc) · 1.64 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
import os
from setuptools import find_packages, setup
required_packages_filename = os.path.join(os.path.dirname(__file__), "requirements/requirements.txt")
if os.path.exists(required_packages_filename):
install_requires = [l.strip() for l in open(required_packages_filename).readlines()]
version = None
license = None
with open(os.path.join(os.path.dirname(__file__), "ssak", "version.py")) as f:
for line in f:
if line.strip().startswith("__version__"):
version = line.split("=")[1].strip().strip("\"'")
if version and license:
break
if line.strip().startswith("__license__"):
license = line.split("=")[1].strip().strip("\"'")
if version and license:
break
assert version and license
description = "Toolbox for Speech Processing."
setup(
name="ssak",
py_modules=["ssak"],
version=version,
description=description,
long_description=description + "\nSee https://github.com/linagora-labs/ssak for more information.",
long_description_content_type="text/markdown",
python_requires=">=3.9",
author="linto-ai",
url="https://github.com/linagora-labs/ssak",
license=license,
packages=find_packages(exclude=["tests*"]),
install_requires=install_requires,
entry_points={
"console_scripts": [
"sak_infer=ssak.infer.transformers_infer:cli",
"sak_infer_speechbrain=ssak.infer.speechbrain_infer:cli",
],
},
include_package_data=True,
# extras_require={
# "full": [
# "soxbindings",
# "pypi-kenlm",
# "PyAudio",
# ],
# },
)