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 11#!/usr/bin/env python
22# -*- coding: utf-8 -*-
3-
43import os
54import sys
65
7- from setuptools .command .test import test as TestCommand
8-
96try :
107 from setuptools import setup
118except ImportError :
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-
4831readme = open ('README.rst' ).read ()
4932
5033setup (
@@ -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 = [
You can’t perform that action at this time.
0 commit comments