PluginVulture.py

changeset 76
69f611e5efbb
parent 74
8bcdbec157d3
child 79
47e46cd3bb23
diff -r 0d3dce3c192a -r 69f611e5efbb PluginVulture.py
--- a/PluginVulture.py	Mon Apr 26 17:16:17 2021 +0200
+++ b/PluginVulture.py	Thu May 13 18:00:15 2021 +0200
@@ -22,7 +22,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "4.0.1"
+version = "5.0.0"
 className = "VulturePlugin"
 packageName = "VultureChecker"
 shortDescription = "Plug-in to detect unused code using the vulture library"
@@ -305,5 +305,18 @@
         if self.__projectVultureCheckerDialog:
             self.__projectVultureCheckerDialog.clear()
 
+
+def installDependencies(pipInstall):
+    """
+    Function to install dependencies of this plug-in.
+    
+    @param pipInstall function to be called with a list of package names.
+    @type function
+    """
+    try:
+        import vulture         # __IGNORE_WARNING__
+    except ImportError:
+        pipInstall(["vulture>=2.3"])
+
 #
 # eflag: noqa = M801

eric ide

mercurial