From f11b87f894ae8ced8a91f57ac42f0195d7e515f1 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 7 Sep 2021 19:46:39 -0400 Subject: [PATCH] Make warning a DistDeprecationWarning Co-authored-by: Sviatoslav Sydorenko --- setuptools/dist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setuptools/dist.py b/setuptools/dist.py index 3fa3048547..5f114d4c02 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -291,7 +291,7 @@ def assert_bool(dist, attr, value): def invalid_ignored_if_false(dist, attr, value): if not value: - warnings.warn("{attr} is ignored") + warnings.warn("{attr} is ignored", DistDeprecationWarning) return raise DistutilsSetupError(f"{attr} is invalid if it is set to a true value.")