From 550644fcdeafc4ddf63d60f0657916179538ab2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Mon, 8 Jan 2024 18:55:57 +0100 Subject: [PATCH] Silence setuptools deprecation warning --- src/pip_deepfreeze/env-info-json.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pip_deepfreeze/env-info-json.py b/src/pip_deepfreeze/env-info-json.py index f0ec6a1..2f9f69e 100755 --- a/src/pip_deepfreeze/env-info-json.py +++ b/src/pip_deepfreeze/env-info-json.py @@ -17,6 +17,7 @@ import json import os import sys +import warnings try: from typing import Dict, Optional, Union @@ -25,7 +26,9 @@ try: + warnings.filterwarnings(action="ignore", category=DeprecationWarning) import pkg_resources # noqa + warnings.resetwarnings() except ImportError: pkg_resources = None