Skip to content

Commit

Permalink
Silence setuptools deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Jan 8, 2024
1 parent 63a89ef commit 550644f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pip_deepfreeze/env-info-json.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import json
import os
import sys
import warnings

try:
from typing import Dict, Optional, Union
Expand All @@ -25,7 +26,9 @@


try:
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
import pkg_resources # noqa
warnings.resetwarnings()
except ImportError:
pkg_resources = None

Expand Down

0 comments on commit 550644f

Please sign in to comment.