Skip to content

Commit cb5e13d

Browse files
committed
Remove deprecated setup.py test invocation for pytest
See also: - http://doc.pytest.org/en/5.3.2/changelog.html#pytest-3-6-2-2018-06-20 - pytest-dev/pytest#3552
1 parent de5f6dc commit cb5e13d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

setup.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22

33
from setuptools import setup
4-
from setuptools.command.test import test as TestCommand
54

65
about = {}
76
with open("django_slugify_processor/__about__.py") as fp:
@@ -21,20 +20,6 @@
2120
history = open('CHANGES').read().replace('.. :changelog:', '')
2221

2322

24-
class PyTest(TestCommand):
25-
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
26-
27-
def initialize_options(self):
28-
TestCommand.initialize_options(self)
29-
self.pytest_args = []
30-
31-
def run_tests(self):
32-
import pytest
33-
34-
errno = pytest.main(self.pytest_args)
35-
sys.exit(errno)
36-
37-
3823
setup(
3924
name=about['__title__'],
4025
version=about['__version__'],
@@ -49,7 +34,6 @@ def run_tests(self):
4934
include_package_data=True,
5035
install_requires=install_reqs,
5136
tests_require=tests_reqs,
52-
cmdclass={'test': PyTest},
5337
zip_safe=False,
5438
keywords=about['__title__'],
5539
classifiers=[

0 commit comments

Comments
 (0)