-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·80 lines (69 loc) · 2.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages, Extension
import sys
from setuptools.command.test import test as TestCommand
#try:
# import multiprocessing # Workaround for http://bugs.python.org/issue15881
#except ImportError:
# pass
# Pytest
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tests', '--verbose']
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
CLASSIFIERS = [
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Programming Language :: Python',
'Programming Language :: JavaScript',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Multimedia :: Sound/Audio',
'Topic :: Multimedia :: Sound/Audio :: Analysis',
'Topic :: Multimedia :: Sound/Audio :: Players',
'Topic :: Multimedia :: Sound/Audio :: Conversion',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
]
KEYWORDS = 'audio analysis features extraction MIR transcoding graph visualize plot HTML5 interactive metadata player'
setup(
# Package
name='TimeSide-Diadems',
install_requires=[
'timeside',
# Dependencies for limsi_diarization
'py_sonicvisualiser',
'pyannote.core==0.13.1',
'pyannote.features',
'pyannote.algorithms',
'pyannote.metrics==0.12.1'
],
url='https://github.com/ANR-DIADEMS/timeside-diadems',
description="TimeSide extensions developped during the Diadems project",
long_description=open('README.rst').read(),
author="Guillaume Pellerin, Thomas Fillon",
author_email="yomguy@parisson.com, thomas@parisson.com",
version='0.1',
platforms=['OS Independent'],
license='Gnu Public License V2',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
include_package_data=True,
zip_safe=False,
# Tests
tests_require=['pytest'],
cmdclass={'test': PyTest},
ext_modules=[Extension('timeside.plugins.diadems.yin',
['timeside/plugins/diadems/yin/pitch_yin.c',
'timeside/plugins/diadems/yin/pitchyin.c']),
Extension('timeside.plugins.diadems.diverg',
['timeside/plugins/diadems/diverg/diverg.c',
'timeside/plugins/diadems/diverg/subdiv.c'])],
)