Skip to content

[FR] More gradual breakage of setuptools.command.test #4520

Closed
@hauntsaninja

Description

@hauntsaninja

What's the problem this feature will solve?

First, let me just say that I do not envy the position of maintaining setuptools, and if this issue is at all burdensome, please ignore it :-)

Regarding #4519, in the event that setuptools chooses to revert something (looks like issue is already top ten all time by emoji count), I'm wondering if there are creative ways to introduce this breakage more slowly

Describe the solution you'd like

Currently, anyone trying to install a package that has a test command breaks. This is unfortunate, because people may not even be using that test command (in fact, hopefully not, since that's been messaged for years), and so no one may even have have seen the warning.

Instead, we could maybe follow something like the following sequence of steps:

  1. Add a deprecation warning in setuptools.command.test.__getattr__
  2. Make run in setuptools.command.test.test raise an error

This would greatly increase the number of people to whom the warning is visible.
It would also accomplish the goal of killing python setup.py test, while not yet breaking installs from those package versions.

Code of Conduct

  • I agree to follow the PSF Code of Conduct

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions