From 4325c0d7a0c9da9127a91f3c54283c0179c0e85b Mon Sep 17 00:00:00 2001 From: Ed Velez Date: Thu, 11 Apr 2024 15:04:01 -0500 Subject: [PATCH] Silence pkg_resources deprecation warning --- holland/commands/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/holland/commands/__init__.py b/holland/commands/__init__.py index 8c4e550a..9af5870b 100644 --- a/holland/commands/__init__.py +++ b/holland/commands/__init__.py @@ -2,4 +2,12 @@ Define command plugins """ +import warnings + +warnings.filterwarnings( + "ignore", + category=DeprecationWarning, + message="pkg_resources is deprecated as an API.*", +) + __import__("pkg_resources").declare_namespace(__name__)