From fe1d35d61e30c8890c9c4fe18782e65cb8e8a41d Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Mon, 29 Jul 2024 09:08:08 +0200 Subject: [PATCH] Fix compatibility with setuptools 72 --- setup.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/setup.py b/setup.py index 02eec918..94a22532 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,6 @@ from setuptools import setup from setuptools import Extension from setuptools.command.build_ext import build_ext as BuildExt -from setuptools.command.test import test as TestCommand from subprocess import Popen, PIPE DIR = os.path.abspath(os.path.dirname(__file__)) @@ -52,14 +51,6 @@ def run(self): BuildExt.run(self) - -class NoopTestCommand(TestCommand): - def __init__(self, dist): - print( - "_gojsonnet does not support running tests with 'python setup.py test'. Please run 'pytest'." - ) - - jsonnet_ext = Extension( "_gojsonnet", sources=MODULE_SOURCES, @@ -79,7 +70,6 @@ def __init__(self, dist): version=get_version(), cmdclass={ "build_ext": BuildJsonnetExt, - "test": NoopTestCommand, }, ext_modules=[jsonnet_ext], )