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-
31from 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-
252
263setup (
274 name = 'graphql-core' ,
@@ -50,14 +27,13 @@ def run_tests(self):
5027
5128 keywords = 'api graphql protocol rest' ,
5229
53- packages = find_packages (exclude = ['tests' ]),
30+ packages = find_packages (exclude = ['tests' , 'tests_py35' ]),
5431
5532 install_requires = ['six>=1.10.0' ],
5633 tests_require = ['pytest>=2.7.3' , 'gevent==1.1b5' , 'six>=1.10.0' ],
5734 extras_require = {
5835 'gevent' : [
5936 'gevent==1.1b5'
6037 ]
61- },
62- cmdclass = {'test' : PyTest },
38+ }
6339)
You can’t perform that action at this time.
0 commit comments