Skip to content

Commit

Permalink
[settings] use builtin importlib.metadata #2612
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Nov 22, 2024
1 parent 6f68b52 commit 7e75dee
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down
2 changes: 1 addition & 1 deletion visidata/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
Expand Down

0 comments on commit 7e75dee

Please sign in to comment.