forked from mmcauliffe/Conch-sounds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
60 lines (53 loc) · 1.9 KB
/
setup.py
File metadata and controls
60 lines (53 loc) · 1.9 KB
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
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
import multiprocessing
import acousticsim
def readme():
with open('README.md') as f:
return f.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['--strict', '--verbose', '--tb=long', 'tests']
self.test_suite = True
def run_tests(self):
if __name__ == '__main__': #Fix for multiprocessing infinite recursion on Windows
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(name='acousticsim',
version=acousticsim.__version__,
description = 'Analyze acoustic similarity in Python',
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering',
'Topic :: Text Processing :: Linguistic',
],
keywords='phonetics acoustics similarity',
url='https://github.com/mmcauliffe/python-acoustic-similarity',
download_url = 'https://github.com/mmcauliffe/python-acoustic-similarity/tarball/{}'.format(acousticsim.__version__),
author='Michael McAuliffe',
author_email='michael.e.mcauliffe@gmail.com',
packages=['acousticsim',
'acousticsim.distance',
'acousticsim.representations',
'acousticsim.processing',
'acousticsim.praat',
'acousticsim.clustering'],
package_data={'acousticsim.praat': ['*.praat']},
install_requires=[
'numpy',
'scipy',
'scikit-learn',
'networkx',
'textgrid',
],
cmdclass={'test': PyTest},
extras_require={
'testing': ['pytest'],
}
)