-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
99 lines (87 loc) · 2.69 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
87
88
89
90
91
92
93
94
95
96
97
98
99
import os
from setuptools import find_packages
from setuptools import setup
##################################################
# Dependencies
##################################################
PYTEST_VERSION_ = '5.3.5'
# Packages required in 'production'
REQUIRED = [
'audioread == 2.1.8',
'numpy == 1.18.1',
'scipy == 1.4.1',
'librosa == 0.7.2',
'h5py == 2.10.0',
'networkx == 2.4',
'requests == 2.23.0',
'intervaltree == 3.0.2',
'sox == 1.3.7',
'PGet == 0.5.0',
'numba == 0.49.1'
]
# Packages required for dev/ci enrionment
EXTRAS = {
'dev': [
'click==7.0',
'pytest==%s' % (PYTEST_VERSION_,),
'pytest-runner==5.2',
'pytest-cov==2.8.1',
'requests_mock==1.7.0',
'Sphinx==2.4.4',
'sphinx-rtd-theme==0.4.3',
'pytest-benchmark==3.2.3',
],
'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 = 'Audiomate is a library for working with audio datasets.'
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='audiomate',
version='6.0.0',
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/ynop/audiomate',
download_url='https://github.com/ynop/audiomate/releases',
author='Matthias Buechi, Andreas Ahlenstorf',
author_email='[email protected]',
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering :: Human Machine Interfaces'
],
keywords='audio music sound corpus dataset',
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={}
)