From 7e75dee682b81e7e9206a9b8d0ab4e695cdff8bd Mon Sep 17 00:00:00 2001 From: anjakefala Date: Thu, 21 Nov 2024 23:01:38 -0800 Subject: [PATCH] [settings] use builtin importlib.metadata #2612 --- requirements.txt | 1 - setup.py | 1 - visidata/settings.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index f0d99f305..e796a1c04 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ python-dateutil # date type -importlib_metadata>=3.6 # plugin groups backported for python <3.8 # optional dependencies pandas>=1.5.3; python_version >= '3.11' # dta (Stata) diff --git a/setup.py b/setup.py index 392047542..98f472c70 100755 --- a/setup.py +++ b/setup.py @@ -25,7 +25,6 @@ install_requires=[ "python-dateutil", 'windows-curses >= 2.4; platform_system == "Windows"', # 2119 - "importlib-metadata >= 3.6", 'importlib_resources; python_version<"3.9"', ], packages=[ diff --git a/visidata/settings.py b/visidata/settings.py index b91364081..544a54b7d 100644 --- a/visidata/settings.py +++ b/visidata/settings.py @@ -446,7 +446,7 @@ def loadConfigAndPlugins(vd, args=AttrDict()): # autoload installed plugins first args_plugins_autoload = args.plugins_autoload if 'plugins_autoload' in args else True if not args.nothing and args_plugins_autoload and vd.options.plugins_autoload: - from importlib_metadata import entry_points # a backport which supports < 3.8 https://github.com/pypa/twine/pull/732 + from importlib.metadata import entry_points try: eps = entry_points() eps_visidata = eps.select(group='visidata.plugins') if 'visidata.plugins' in eps.groups else []