Skip to content

Setuptools test command was deprecated and has been removed #40

@sevdog

Description

@sevdog

The test command of setuptools has long being deprecated and it was removed from version 72.0.0 which was released this night pypa/setuptools#4519

from setuptools.command.test import test as TestCommand

class Tox(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = None
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import tox
import shlex
args = self.tox_args
if args:
args = shlex.split(self.tox_args)
errno = tox.cmdline(args=args)
sys.exit(errno)

This now prevents from installing this package since it relies on such feature.

Since the tox configuration does not use setup.py test it should be simple to remove such element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions