From e3a7c89d4c16c304160c1c897d7134a5a5cd8535 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Thu, 16 Jan 2020 14:26:34 +0200 Subject: [PATCH] Remove test bits from setup.py See https://github.com/pytest-dev/pytest/issues/5534 --- setup.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/setup.py b/setup.py index b613cd0..9dbb097 100644 --- a/setup.py +++ b/setup.py @@ -14,19 +14,6 @@ def read(fname): README = read('README.rst') -class PyTest(TestCommand): - def finalize_options(self): - TestCommand.finalize_options(self) - self.test_args = ['tests', '-s'] - self.test_suite = True - - def run_tests(self): - import pytest - os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' - errno = pytest.main(self.test_args) - sys.exit(errno) - - setup( name='django-enumfields', version='1.0.0', @@ -56,13 +43,7 @@ def run_tests(self): 'Programming Language :: Python :: 3.6', 'Topic :: Internet :: WWW/HTTP', ], - tests_require=[ - 'pytest-django', - 'Django', - 'djangorestframework' - ], extras_require={ ":python_version<'3.4'": ['enum34'], }, - cmdclass={'test': PyTest}, )