From: Thomas Fillon Date: Tue, 29 Apr 2014 08:27:09 +0000 (+0200) Subject: Merge branch 'dev' into server X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6d84cae332ed243f66ee665f591254a5d12225ae;p=timeside-diadems.git Merge branch 'dev' into server --- 6d84cae332ed243f66ee665f591254a5d12225ae diff --cc setup.py index 760a8ae,11140d6..9699e9d --- a/setup.py +++ b/setup.py @@@ -1,7 -1,23 +1,24 @@@ #!/usr/bin/env python # -*- coding: utf-8 -*- + from setuptools import setup, find_packages + import sys + from setuptools.command.test import test as TestCommand + + # Pytest + class PyTest(TestCommand): + def finalize_options(self): + TestCommand.finalize_options(self) + self.test_args = ['tests', '--ignore', 'tests/sandbox'] + self.test_suite = True + + def run_tests(self): + #import here, cause outside the eggs aren't loaded + import pytest + errno = pytest.main(self.test_args) + sys.exit(errno) + + CLASSIFIERS = [ 'Intended Audience :: Science/Research',