From 8b873b8a261572fe696fc08ccee1c67c7a72b45b Mon Sep 17 00:00:00 2001 From: Tomasz Nowak Date: Mon, 12 Apr 2021 20:28:02 +0200 Subject: [PATCH] Cosmetic clean up in setup.py --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'