forked from RaphaelOlivier/robust_speech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (35 loc) · 1.2 KB
/
setup.py
File metadata and controls
40 lines (35 loc) · 1.2 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
#!/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") as f:
long_description = f.read()
with open(os.path.join("robust_speech", "version.txt")) as f:
version = f.read().strip()
setup(
name="robust_speech",
version=version,
description="Adversarially Robust Speech Recognition toolkit built over SpeechBrain",
long_description=long_description,
long_description_content_type="text/markdown",
author="Raphael Olivier",
author_email="[email protected]",
packages=setuptools.find_packages(),
package_data={"robust_speech": ["version.txt", "log-config.yaml"]},
install_requires=[
"audlib",
"adversarial-robustness-toolbox==1.10.0",
"tensorflow==2.8.0",
"torch>=1.7,<=1.11",
"speechbrain @ git+https://github.com/RaphaelOlivier/speechbrain.git",
"transformers>=4.15.0",
"torchvision",
],
python_requires=">=3.7",
url="https://github.com/RaphaelOlivier/robust_speech",
)