From c6fa514724da569dbc40c29fc1072f39d9303ae6 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 11 Mar 2020 11:56:09 -0400 Subject: [PATCH] Drop setup.py test, fixes #291 --- setup.cfg | 3 --- setup.py | 7 ------- 2 files changed, 10 deletions(-) diff --git a/setup.cfg b/setup.cfg index ccdd6836e..d8835c707 100644 --- a/setup.cfg +++ b/setup.cfg @@ -46,9 +46,6 @@ exclude = tests extern -[aliases] -test = pytest - [tool:pytest] addopts = --benchmark-disable testpaths = diff --git a/setup.py b/setup.py index 4605a466a..1b5e3c5f6 100644 --- a/setup.py +++ b/setup.py @@ -7,10 +7,6 @@ import os -# Official trick to avoid pytest-runner as requirement if not needed -needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv) -pytest_runner = ["pytest-runner"] if needs_pytest else [] - # Use -j N or set the environment variable NPY_NUM_BUILD_JOBS try: from numpy.distutils.ccompiler import CCompiler_compile @@ -114,9 +110,6 @@ def build_extensions(self): setup( ext_modules=ext_modules, cmdclass={"build_ext": BuildExt}, - test_suite="tests", install_requires=["numpy"], - tests_require=extras["test"], - setup_requires=[] + pytest_runner, extras_require=extras, )