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 11from setuptools import setup , find_packages
2- from setuptools .command .test import test as TestCommand
3- import sys
4-
5-
6- class PyTest (TestCommand ):
7- def finalize_options (self ):
8- TestCommand .finalize_options (self )
9- self .test_args = []
10- self .test_suite = True
11-
12- def run_tests (self ):
13- #import here, cause outside the eggs aren't loaded
14- import pytest
15- errno = pytest .main (self .test_args )
16- sys .exit (errno )
172
183setup (
194 name = 'skeleton_for_pytest' ,
@@ -25,7 +10,6 @@ def run_tests(self):
2510 license = 'MIT' ,
2611 packages = find_packages (exclude = ['tests' ]),
2712 tests_require = ['pytest' ],
28- cmdclass = {'test' : PyTest },
2913 classifiers = [
3014 'Intended Audience :: Developers' ,
3115 'License :: OSI Approved :: MIT License' ,
You can’t perform that action at this time.
0 commit comments