1import os 2 3from setuptools import find_packages 4from setuptools import setup 5 6################################################## 7# Dependencies 8################################################## 910PYTEST_VERSION_ = '5.3.5'1112# Packages required in 'production'13REQUIRED = [14 'audioread == 2.1.8',15 'numpy == 1.18.1',16 'scipy == 1.4.1',17 'librosa == 0.7.2',18 'h5py == 2.10.0',19 'networkx == 2.4',20 'requests == 2.23.0',21 'intervaltree == 3.0.2',22 'sox == 1.3.7',23 'PGet == 0.5.0',24 'numba == 0.49.1'25]2627# Packages required for dev/ci enrionment28EXTRAS = {29 'dev': [30 'click==7.0',31 'pytest==%s' % (PYTEST_VERSION_,),32 'pytest-runner==5.2',33 'pytest-cov==2.8.1',34 'requests_mock==1.7.0',35 'Sphinx==2.4.4',36 'sphinx-rtd-theme==0.4.3',37 'pytest-benchmark==3.2.3',38 ],39 'ci': [40 'flake8==3.7.9',41 'flake8-quotes==2.1.1'42 ],43}4445# Packages required for testing46TESTS = [47 'pytest==%s' % (PYTEST_VERSION_,),48 'requests_mock==1.7.0'49]5051##################################################52# Description53##################################################5455DESCRIPTION = 'Audiomate is a library for working with audio datasets.'5657root = os.path.abspath(os.path.dirname(__file__))58readme_path = os.path.join(root, 'README.md')5960# Import the README and use it as the long-description.61try:62 with open(readme_path, encoding='utf-8') as f:63 long_description = '\n' + f.read()64except FileNotFoundError:65 long_description = DESCRIPTION6667##################################################68# SETUP69##################################################7071setup(name='audiomate',72 version='6.0.0',
73 description=DESCRIPTION,
74 long_description=long_description,
54 return
55
56 def _check_for_missing_files(self, path):
57 return []58
59 return MockCorpusReader()
60
51 return 'mock'
52
53 def _load(self, path):
54 return55
56 def _check_for_missing_files(self, path):
57 return []
11
12 @classmethod
13 def type(cls):
14 return 'mock'15
16 def _download(self, target_path):
17 os.makedirs(os.path.join(target_path, 'subfolder', 'a.txt'))
209 corpus (Corpus): Corpus to write to disk
210 path (str): Path of the target directory
211 """
212 raise NotImplementedError()
A source line is considered covered when at least one instruction that is assigned to this line has been executed by a test case. These lines were not executed during any of the test cases.