Skip to content

Commit

Permalink
[importlib] rely on importlib-metadata 3.6 for simplicity
Browse files Browse the repository at this point in the history
Following twine's decision: pypa/twine#732
  • Loading branch information
anjakefala committed Jul 31, 2022
1 parent b108f99 commit 3a43e23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -24,7 +24,7 @@
install_requires=[
'python-dateutil',
'windows-curses; platform_system == "Windows"',
'importlib-metadata >= 4.4; python_version < "3.8"',
'importlib-metadata >= 3.6',
],
packages=['visidata', 'visidata.loaders', 'visidata.vendor', 'visidata.tests'],
include_package_data=True,
Expand Down
5 changes: 1 addition & 4 deletions visidata/settings.py
Expand Up @@ -373,10 +373,7 @@ def loadConfigAndPlugins(vd, args=AttrDict()):

# autoload installed plugins first
if vd.options.plugins_autoload:
try:
from importlib.metadata import entry_points
except ModuleNotFoundError:
from importlib_metadata import entry_points # for python <3.8
from importlib_metadata import entry_points # a backport which supports < 3.8 https://github.com/pypa/twine/pull/732

for ep in entry_points().get('visidata.plugins', []):
plug = ep.load()
Expand Down

0 comments on commit 3a43e23

Please sign in to comment.