import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand


install_require = [
    'Logbook',
    'SQLAlchemy',
    'jsonschema',
    'pyzmq',
]

tests_require = [
    'cov-core',
    'coverage',
    'mock',
    'py',
    'pytest',
    'pytest-cov',
]


class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = ['test', '--cov=kitten']
        self.test_suite = True

    def run_tests(self):
        import pytest
        errno = pytest.main(self.test_args)
        sys.exit(errno)


setup(
    name='kitten',
    version='0.2.1',
    url='https://github.com/thiderman/kitten',
    author='Lowe Thiderman',
    author_email='lowe.thiderman@gmail.com',
    description=('A decentralized minimalist build system'),
    license='MIT',
    packages=['kitten'],
    install_requires=install_require,
    tests_require=tests_require,
    entry_points={
        'console_scripts': [
            'kitten = kitten:main',
        ],
    },
    cmdclass={'test': PyTest},
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Console',
        'Operating System :: Unix',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 2',
        'Topic :: Software Development :: Build Tools',
        'Topic :: System :: Clustering',
        'Topic :: System :: Networking',
    ],
)

@@ -200,62 +200,8 @@
 = %5B%0A
-    'cov-core',%0A    'coverage',%0A    'mock',%0A    'py',%0A
     
@@ -228,16 +228,28 @@
 t-cov',%0A
+    'mock',%0A
 %5D%0A%0A%0Aclas

Rewrite test_requires in setup.py