File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 11import sys
22
33from setuptools import setup
4- from setuptools .command .test import test as TestCommand
54
65about = {}
76with open ("django_slugify_processor/__about__.py" ) as fp :
2120history = 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-
3823setup (
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 = [
You can’t perform that action at this time.
0 commit comments