Skip to content

Commit

Permalink
Remove test bits from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jan 16, 2020
1 parent 70a2f2c commit e3a7c89
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions setup.py
Expand Up @@ -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',
Expand Down Expand Up @@ -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},
)

0 comments on commit e3a7c89

Please sign in to comment.