forked from JuergenFleiss/aTrain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (40 loc) · 1.04 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
from setuptools import setup, find_packages
from distutils.util import convert_path
import platform
system = platform.system()
if system in ["Windows", "Linux"]:
torch = "torch==2.0.0+cu118"
if system == "Darwin":
torch = "torch==2.0.0"
main_ns = {}
ver_path = convert_path('aTrain/version.py')
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)
setup(
name='aTrain',
version=main_ns['__version__'],
readme="README.md",
license="LICENSE",
python_requires=">=3.10",
install_requires=[
torch,
"torchaudio==2.0.1",
"faster-whisper>=0.8,<=0.9",
"transformers",
"ffmpeg-python>=0.2",
"pandas",
"pyannote.audio==3.0.0",
"Flask==2.3.2",
"pywebview==4.2.2",
"flaskwebgui",
"screeninfo==0.8.1",
"wakepy==0.7.2",
"show-in-file-manager==1.1.4",
"numpy==1.26.4"
],
packages=find_packages(),
include_package_data=True,
entry_points={
'console_scripts': ['aTrain = aTrain:cli',]
}
)