File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
# -*- coding: utf-8 -*-
3
-
4
3
import os
5
4
import sys
6
5
7
- from setuptools .command .test import test as TestCommand
8
-
9
6
try :
10
7
from setuptools import setup
11
8
except ImportError :
31
28
sys .exit ()
32
29
33
30
34
- class PyTest (TestCommand ):
35
- user_options = [('pytest-args=' , 'a' , "Arguments to pass to py.test" )]
36
-
37
- def initialize_options (self ):
38
- TestCommand .initialize_options (self )
39
- self .pytest_args = []
40
-
41
- def run_tests (self ):
42
- import pytest
43
-
44
- errno = pytest .main (self .pytest_args )
45
- sys .exit (errno )
46
-
47
-
48
31
readme = open ('README.rst' ).read ()
49
32
50
33
setup (
@@ -58,7 +41,6 @@ def run_tests(self):
58
41
include_package_data = True ,
59
42
install_requires = install_reqs ,
60
43
tests_require = tests_reqs ,
61
- cmdclass = {'test' : PyTest },
62
44
license = "MIT" ,
63
45
zip_safe = False ,
64
46
keywords = [
You can’t perform that action at this time.
0 commit comments