/
setup.py
71 lines (66 loc) · 2.53 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
#Setuptools is a collection of enhancements to the Python distutils that allow developers to more easily build and distribute Python packages, especially ones that have dependencies on other packages.
from setuptools import setup, find_packages
# The sys module provides information about constants, functions and methods of the Python interpreter.
import sys
from importlib.machinery import SourceFileLoader
version = SourceFileLoader('librosa.version',
'librosa/version.py').load_module()
#here r function is used to read the file named as README.md
with open('README.md', 'r') as fdesc:
long_description = fdesc.read()
setup(
name='librosa',
version=version.version,
description='Python module for audio and music processing',
author='Brian McFee',
author_email='brian.mcfee@nyu.edu',
url='https://librosa.org',
download_url='https://github.com/librosa/librosa/releases',
packages=find_packages(),
package_data={'': ['example_data/*']},
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
"License :: OSI Approved :: ISC License (ISCL)",
"Programming Language :: Python",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
"Framework :: Matplotlib",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='audio music sound',
license='ISC',
install_requires=[
'audioread >= 2.0.0',
'numpy >= 1.15.0',
'scipy >= 1.0.0',
'scikit-learn >= 0.14.0, != 0.19.0',
'joblib >= 0.14',
'decorator >= 3.0.0',
'resampy >= 0.2.2',
'numba >= 0.43.0',
'soundfile >= 0.9.0',
'pooch >= 1.0'
],
python_requires='>=3.6',
extras_require={
'docs': ['numpydoc', 'sphinx!=1.3.1', 'sphinx_rtd_theme==0.5.*',
'numba < 0.50',
'matplotlib >= 2.0.0, < 3.3',
'sphinx-multiversion==0.2.3',
'sphinx-gallery>=0.7',
'sphinxcontrib-svg2pdfconverter',
'presets'],
'tests': ['matplotlib >= 2.1',
'pytest-mpl',
'pytest-cov',
'pytest',
'contextlib2',
'samplerate'],
'display': ['matplotlib >= 1.5'],
}
)