Skip to content

Commit 33e3c44

Browse files
committed
1 parent 936f195 commit 33e3c44

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

setup.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
43
import os
54
import sys
65

7-
from setuptools.command.test import test as TestCommand
8-
96
try:
107
from setuptools import setup
118
except ImportError:
@@ -31,20 +28,6 @@
3128
sys.exit()
3229

3330

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-
4831
readme = open('README.rst').read()
4932

5033
setup(
@@ -58,7 +41,6 @@ def run_tests(self):
5841
include_package_data=True,
5942
install_requires=install_reqs,
6043
tests_require=tests_reqs,
61-
cmdclass={'test': PyTest},
6244
license="MIT",
6345
zip_safe=False,
6446
keywords=[

0 commit comments

Comments
 (0)