#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages

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 transcoding graph plot HTML5 player metadata'

setup(
  name = "TimeSide",
  url='https://github.com/yomguy/TimeSide/',
  description = "open web audio processing framework",
  long_description = open('README.rst').read(),
  author = "Guillaume Pellerin, Paul Brossier, Thomas Fillon, Riccardo Zaccarelli, Olivier Guilyardi",
  author_email = "yomguy@parisson.com, piem@piem.org, thomas@parisson.com, riccardo.zaccarelli@gmail.com, olivier@samalyse.com",
  version = '0.5.5',
  install_requires = [
        'setuptools',
        'numpy',
        'mutagen',
        'pillow',
        'h5py',
        'pyyaml',
        'simplejson',
        'scipy',
        ],
  platforms=['OS Independent'],
  license='Gnu Public License V2',
  classifiers = CLASSIFIERS,
  keywords = KEYWORDS,
  packages = find_packages(),
  include_package_data = True,
  zip_safe = False,
  scripts=['scripts/timeside-waveforms', 'scripts/timeside-launch'],
)

@@ -83,16 +83,467 @@
 ackages%0A
+import sys%0Afrom setuptools.command.test import test as TestCommand%0A%0A# Pytest%0Aclass PyTest(TestCommand):%0A    def finalize_options(self):%0A        TestCommand.finalize_options(self)%0A        self.test_args = %5B'tests', '--ignore', 'tests/sandbox'%5D%0A        self.test_suite = True%0A%0A    def run_tests(self):%0A        #import here, cause outside the eggs aren't loaded%0A        import pytest%0A        errno = pytest.main(self.test_args)%0A        sys.exit(errno)%0A%0A%0A
 %0ACLASSIF
@@ -2140,10 +2140,73 @@
 unch'%5D,%0A
+  tests_require=%5B'pytest'%5D,%0A  cmdclass = %7B'test': PyTest%7D,%0A    
 )%0A

Add a test section (pytest) for setuptools setup.py