-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
86 lines (74 loc) · 2.32 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
80
81
82
83
84
85
86
import os
from setuptools import find_packages
from setuptools import setup
##################################################
# Dependencies
##################################################
PYTEST_VERSION_ = '5.2.3'
# Packages required in 'production'
REQUIRED = [
'tqdm==4.39.0',
'num2words==0.5.10',
]
# Packages required for dev/ci enrionment
EXTRAS = {
'dev': [
'click==7.0',
'pytest==%s' % (PYTEST_VERSION_,),
'pytest-runner==5.2',
'pytest-cov==2.8.1',
'pytest-benchmark==3.2.2',
'bump2version'
],
'ci': [
'flake8==3.7.9',
'flake8-quotes==2.1.1'
],
}
# Packages required for testing
TESTS = [
'pytest==%s' % (PYTEST_VERSION_,),
'requests_mock==1.7.0'
]
##################################################
# Description
##################################################
DESCRIPTION = 'spoteno is a library for spoken text normalization for ASR'
root = os.path.abspath(os.path.dirname(__file__))
readme_path = os.path.join(root, 'README.md')
# Import the README and use it as the long-description.
try:
with open(readme_path, encoding='utf-8') as f:
long_description = '\n' + f.read()
except FileNotFoundError:
long_description = DESCRIPTION
##################################################
# SETUP
##################################################
setup(name='spoteno',
version='0.1.1',
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/ynop/spoteno',
download_url='https://github.com/ynop/spoteno/releases',
author='Matthias Buechi',
author_email='[email protected]',
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering :: Human Machine Interfaces'
],
keywords='ASR speech recognition spoken text normalization transcripts',
license='MIT',
packages=find_packages(exclude=['tests']),
install_requires=REQUIRED,
include_package_data=True,
zip_safe=False,
test_suite='tests',
extras_require=EXTRAS,
setup_requires=['pytest-runner'],
tests_require=TESTS,
entry_points={}
)