Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2196d75

Browse files
authored
Merge pull request #21059 from timhoffm/cleanup-setup_py
Remove dummy test command from setup.py
2 parents 076ac39 + a4c68bb commit 2196d75

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

setup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from setuptools import setup, find_packages, Extension
3333
import setuptools.command.build_ext
3434
import setuptools.command.build_py
35-
import setuptools.command.test
3635
import setuptools.command.sdist
3736

3837
from distutils.errors import CompileError
@@ -67,12 +66,6 @@ def has_flag(self, flagname):
6766
return True
6867

6968

70-
class NoopTestCommand(setuptools.command.test.test):
71-
def __init__(self, dist):
72-
print("Matplotlib does not support running tests with "
73-
"'python setup.py test'. Please run 'pytest'.")
74-
75-
7669
class BuildExtraLibraries(setuptools.command.build_ext.build_ext):
7770
def finalize_options(self):
7871
self.distribution.ext_modules[:] = [
@@ -341,7 +334,6 @@ def make_release_tree(self, base_dir, files):
341334
"fallback_version": "0.0+UNKNOWN",
342335
},
343336
cmdclass={
344-
"test": NoopTestCommand,
345337
"build_ext": BuildExtraLibraries,
346338
"build_py": BuildPy,
347339
"sdist": Sdist,

0 commit comments

Comments
 (0)