-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
57 lines (50 loc) · 1.63 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
import os
from setuptools import setup, find_packages
from arizona.version import __version__
try:
# pip >=20
from pip._internal.network.session import PipSession
from pip._internal.req import parse_requirements
except ImportError:
try:
# 10.0.0 <= pip <= 19.3.1
from pip._internal.download import PipSession
from pip._internal.req import parse_requirements
except ImportError:
# pip <= 9.0.3
from pip.download import PipSession
from pip.req import parse_requirements
long_description = ''
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements('requirements.txt', session=False)
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
try:
reqs = [str(ir.req) for ir in install_reqs]
except:
reqs = [str(ir.requirement) for ir in install_reqs]
VERSION = os.getenv('PACKAGE_VERSION', __version__)[1:]
setup(
name='arizona',
version=VERSION,
description='Arizona-ASR is a toolbox for Automatic speech recognition.',
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
url='',
packages=find_packages(),
include_package_data=True,
author='Phanxuan Phuc',
author_email='phanxuanphucnd@gmail.com',
classifiers=[
'Programming Language :: Python :: 3.x',
],
install_requires=reqs,
keywords='arizona_asr',
python_requires='>=3.6',
py_modules=['arizona_asr'],
entry_points={
'console_scripts': [
'arizona = arizona.run_cli:entry_point'
]
},
)