Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a warning for the deprecated test_suit #74

Merged
merged 1 commit into from
Mar 28, 2022
Merged

Conversation

regebro
Copy link
Owner

@regebro regebro commented Mar 28, 2022

No description provided.

return "test_suite" not in data

def message(self):
return "The `setup.py test` command and accompanying `test_suit` field has been deprecated."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this typo is everywhere, but the term and corresponding option is test_suite, not test_suit 😆

Copy link
Owner Author

@regebro regebro Mar 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

facepalm

Edit: phew I only made that mistake there. So I won't fix it, as the test is pointless in the 4x branch anyway. :-)

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phew I only made that mistake there. It gets to stay, as the test in pointless in the 4x branch...

weight = 50

def test(self, data):
return "test_suite" not in data
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, this check doesn't actually work, since as mentioned on #72 , this is a Setuptools-specific option (under the [options] section in setup.cfg, or the [tool.setuptools] table in pyproject.toml), not anything in the standardized core metadata like everything else you check here.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, right, it only works when the metadata is fetched by patching setuptools. So it's useful in Pyroma 3 (which this was) but for Pyroma 4 it's pointless, true. So I can already remove it again. :-)

@hugovk hugovk deleted the deprecate-test branch December 5, 2022 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants