Added py.test to setup.py

This commit is contained in:
Ilan Steemers
2015-06-21 20:58:23 +02:00
parent 54e518151e
commit 8bf25299a9
2 changed files with 3144 additions and 0 deletions

3127
runtests.py Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -6,6 +6,22 @@ with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
from distutils.core import setup, Command
# you can also import from setuptools
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
setup(
name='django-q',
@@ -20,6 +36,7 @@ setup(
include_package_data=True,
install_requires=['django>=1.7', 'redis', 'coloredlogs', 'django-picklefield', 'jsonpickle'],
test_suite='django_q.tests',
cmdclass = {'test': PyTest},
classifiers=[
'Development Status :: 2 - PreAlpha',
'Environment :: Web Environment',