Skip to content

Commit f6791b0

Browse files
committed
Remove setup.py test instead, use tox for testing.
1 parent ee65a31 commit f6791b0

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

setup.py

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,4 @@
1-
import sys
2-
31
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-
252

263
setup(
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
)

0 commit comments

Comments
 (0)