forked from speechbrain/speechbrain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (44 loc) · 1.46 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
#!/usr/bin/env python3
import os
import site
import sys
from distutils.core import setup
import setuptools
# Editable install in user site directory can be allowed with this hack:
# https://github.com/pypa/pip/issues/7953.
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
with open(os.path.join("speechbrain", "version.txt"), encoding="utf-8") as f:
version = f.read().strip()
setup(
name="speechbrain",
version=version,
description="All-in-one speech toolkit in pure Python and Pytorch",
long_description=long_description,
long_description_content_type="text/markdown",
author="Mirco Ravanelli & Others",
author_email="[email protected]",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
],
# we don't want to ship the tests package. for future proofing, also
# exclude any tests subpackage (if we ever define __init__.py there)
packages=setuptools.find_packages(exclude=["tests", "tests.*"]),
package_data={"speechbrain": ["version.txt", "log-config.yaml"]},
install_requires=[
"hyperpyyaml",
"joblib",
"numpy",
"packaging",
"scipy",
"sentencepiece",
"torch>=1.9",
"torchaudio",
"tqdm",
"huggingface_hub",
],
python_requires=">=3.8",
url="https://speechbrain.github.io/",
)