From 4c40ab6ea306d8b54c74c8255a085678c76d051a Mon Sep 17 00:00:00 2001 From: Matthias Volk Date: Fri, 27 Apr 2018 14:27:18 +0200 Subject: [PATCH] Use pytest-runner --- setup.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/setup.py b/setup.py index ec81e39..ef1227c 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,6 @@ import datetime from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext -from setuptools.command.test import test from distutils.version import StrictVersion import setup.helper as setup_helper @@ -197,14 +196,6 @@ class CMakeBuild(build_ext): subprocess.check_call(['cmake', '--build', '.', '--target', ext.name] + build_args, cwd=self.build_temp) -class PyTest(test): - def run_tests(self): - # import here, cause outside the eggs aren't loaded - import pytest - errno = pytest.main(['tests']) - sys.exit(errno) - - setup( name="stormpy", version=setup_helper.obtain_version(), @@ -240,7 +231,7 @@ setup( CMakeExtension('dft', subdir='dft'), CMakeExtension('pars', subdir='pars')], - cmdclass={'build_ext': CMakeBuild, 'test': PyTest}, + cmdclass={'build_ext': CMakeBuild}, zip_safe=False, install_requires=['pycarl>=2.0.2'], setup_requires=['pytest-runner'],