File tree Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Original file line number Diff line number Diff line change 1
- import sys
2
-
3
1
from setuptools import setup , find_packages
4
- from setuptools .command .test import test as TestCommand
5
-
6
-
7
- class PyTest (TestCommand ):
8
- user_options = [('pytest-args=' , 'a' , "Arguments to pass to py.test" )]
9
-
10
- def initialize_options (self ):
11
- TestCommand .initialize_options (self )
12
- self .pytest_args = []
13
-
14
- def finalize_options (self ):
15
- TestCommand .finalize_options (self )
16
- self .test_args = []
17
- self .test_suite = True
18
-
19
- def run_tests (self ):
20
- # import here, cause outside the eggs aren't loaded
21
- import pytest
22
- errno = pytest .main (self .pytest_args )
23
- sys .exit (errno )
24
-
25
2
26
3
setup (
27
4
name = 'graphql-core' ,
@@ -50,14 +27,13 @@ def run_tests(self):
50
27
51
28
keywords = 'api graphql protocol rest' ,
52
29
53
- packages = find_packages (exclude = ['tests' ]),
30
+ packages = find_packages (exclude = ['tests' , 'tests_py35' ]),
54
31
55
32
install_requires = ['six>=1.10.0' ],
56
33
tests_require = ['pytest>=2.7.3' , 'gevent==1.1b5' , 'six>=1.10.0' ],
57
34
extras_require = {
58
35
'gevent' : [
59
36
'gevent==1.1b5'
60
37
]
61
- },
62
- cmdclass = {'test' : PyTest },
38
+ }
63
39
)
You can’t perform that action at this time.
0 commit comments