diff --git a/setup.py b/setup.py index 8e988ccb..a0e3c8e3 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,6 @@ import sys from setuptools import setup -from setuptools.command.test import test as TestCommand about = {} with open("unihan_etl/__about__.py") as fp: @@ -25,20 +24,6 @@ history = open('CHANGES').read().replace('.. :changelog:', '') -class PyTest(TestCommand): - user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] - - def initialize_options(self): - TestCommand.initialize_options(self) - self.pytest_args = [] - - def run_tests(self): - import pytest - - errno = pytest.main(self.pytest_args) - sys.exit(errno) - - setup( name=about['__title__'], version=about['__version__'], @@ -57,7 +42,6 @@ def run_tests(self): include_package_data=True, install_requires=install_reqs, tests_require=tests_reqs, - cmdclass={'test': PyTest}, zip_safe=False, keywords=about['__title__'], packages=['unihan_etl'],