diff --git a/setup.py b/setup.py index 80db3f8..6678068 100644 --- a/setup.py +++ b/setup.py @@ -6,14 +6,15 @@ import batch_requests -from setuptools import setup from setuptools import setup, Command + class PyTest(Command): ''' A command handler for setup.py test. ''' user_options = [] + def initialize_options(self): pass @@ -22,10 +23,10 @@ def finalize_options(self): def run(self): import subprocess - import sys errno = subprocess.call('py.test --cov-report html --cov batch_requests tests/', shell=True) raise SystemExit(errno) + name = 'django-batch-requests' version = batch_requests.__version__ package = 'batch_requests'