forked from ebu/benchmarkstt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
79 lines (71 loc) · 2.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import os
import sys
from setuptools import setup, find_packages
if sys.version_info < (3, 5):
sys.exit('Sorry, Python < 3.5 is not supported')
def from_file(filename):
with open(filename) as f:
result = f.read()
return result.strip()
dirname = os.path.dirname(__file__)
__version__ = from_file('VERSION')
__author__ = 'EBU'
__name__ = 'benchmarkstt'
# Auto save to __meta__
meta_location = os.path.join(dirname, 'src', __name__, '__meta__.py')
with open(meta_location, 'w') as f:
f.write('''# Automatically created. DO NOT EDIT
__version__ = %s
__author__ = %s
''' % (repr(__version__), repr(__author__)))
long_description = from_file('README.rst')
setup(
name=__name__,
url='https://github.com/ebu/benchmarkstt/',
license='MIT',
version=__version__,
author=__author__,
author_email='[email protected]',
maintainer=__author__,
maintainer_email='[email protected]',
description='A library for benchmarking AI/ML applications.',
long_description=long_description,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: MIT License',
],
python_requires='>=3.5',
packages=find_packages("src"),
package_dir={"": "src"},
package_data={'benchmarkstt': ['api/templates/*.html']},
include_package_data=True,
install_requires=[
'MarkupSafe>=1.0',
'Unidecode>=1.1.0',
'langcodes>=1.4.1',
'Flask>=1.0.2',
'jsonrpcserver>=4.0.1',
'gunicorn>=19.9.0',
'docutils>=0.14',
'editdistance>=0.5.3',
],
extras_require={
'test': [
"pytest==4.2.0",
"pycodestyle==2.5.0",
"pytest-cov==2.5.1",
"attrs==19.1.0"
]
},
platforms='any',
entry_points={
'console_scripts': [
"%s=%s.cli:main" % (__name__, __name__),
"%s-tools=%s.cli:tools" % (__name__, __name__)
],
}
)