From 092d982259e61ac04f7928cab32a906c9b0013c3 Mon Sep 17 00:00:00 2001 From: Ameya Vikram Singh Date: Thu, 21 Mar 2024 09:54:45 +0530 Subject: [PATCH] Add dependency on packaging for Plugin Versioning Fix Attribute Error for importlib.util for standalone instllation of Yapsy --- package/setup.py | 3 +++ package/yapsy/PluginManager.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package/setup.py b/package/setup.py index 58705e1..b654b79 100644 --- a/package/setup.py +++ b/package/setup.py @@ -62,6 +62,9 @@ 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries :: Python Modules'], platforms='All', + install_requires = [ + "packaging" + ] ) finally: diff --git a/package/yapsy/PluginManager.py b/package/yapsy/PluginManager.py index 55ec649..c861e93 100644 --- a/package/yapsy/PluginManager.py +++ b/package/yapsy/PluginManager.py @@ -128,7 +128,7 @@ import sys import os -import importlib +import importlib.util from yapsy import log from yapsy import NormalizePluginNameForModuleName