Skip to content

Commit

Permalink
Remove pytest command magic from setup.py
Browse files Browse the repository at this point in the history
To keep things everyone should just run `py.test` directly instead
of via `setup.py`.
  • Loading branch information
wichert committed Nov 10, 2019
1 parent 93eaa05 commit 0604a50
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys

version = '4.14'
Expand All @@ -17,19 +16,6 @@
]


class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tests']
self.test_suite = True

def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)


setup(name='lingua',
version=version,
description='Translation toolset',
Expand Down Expand Up @@ -64,7 +50,6 @@ def run_tests(self):
'tests': tests_require,
'chameleonextractor': ['Chameleon'],
},
cmdclass={'test': PyTest},
entry_points='''
[console_scripts]
polint = lingua.polint:main
Expand Down

0 comments on commit 0604a50

Please sign in to comment.