forked from BingLingGroup/autosub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (39 loc) · 1.12 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
#!/usr/bin/env python3
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
metadata = {}
here = os.path.abspath(os.path.dirname(__file__))
NAME = "autosub"
with open(os.path.join(here, NAME, "metadata.py")) as metafile:
exec(metafile.read(), metadata)
setup(
name=metadata['NAME'],
version=metadata['VERSION'],
description=metadata['DESCRIPTION'],
long_description=metadata['LONG_DESCRIPTION'],
author=metadata['AUTHOR'],
author_email=metadata['AUTHOR_EMAIL'],
url=metadata['HOMEPAGE'],
packages=[str('autosub')],
entry_points={
'console_scripts': [
'autosub = autosub:main',
]
},
package_data={str('autosub'): [str('data/locale/zh_CN/LC_MESSAGES/*mo')]},
install_requires=[
'requests>=2.3.0',
'pysubs2>=0.2.4',
'progressbar2>=3.34.3',
'auditok>=0.1.5',
'googletrans>=2.4.0',
'langcodes>=1.2.0',
'wcwidth>=0.1.7',
'google-cloud-speech>=1.3.1',
'websocket-client>=0.56.0'
],
license=open(os.path.join(here, "LICENSE")).read()
)