PluginMetricsRadon.py

changeset 80
a4f2000c6687
parent 77
7e1793d03381
child 83
d3490ea9facc
equal deleted inserted replaced
79:66820b6b2a8a 80:a4f2000c6687
25 # Start-Of-Header 25 # Start-Of-Header
26 name = "Radon Metrics Plugin" 26 name = "Radon Metrics Plugin"
27 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 27 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
28 autoactivate = True 28 autoactivate = True
29 deactivateable = True 29 deactivateable = True
30 version = "3.1.0" 30 version = "4.0.0"
31 className = "RadonMetricsPlugin" 31 className = "RadonMetricsPlugin"
32 packageName = "RadonMetrics" 32 packageName = "RadonMetrics"
33 shortDescription = "Code metrics plugin using radon package" 33 shortDescription = "Code metrics plugin using radon package"
34 longDescription = ( 34 longDescription = (
35 """This plug-in implements dialogs to show various code metrics. These""" 35 """This plug-in implements dialogs to show various code metrics. These"""
982 self.__projectCCDialog and self.__projectCCDialog.clear() 982 self.__projectCCDialog and self.__projectCCDialog.clear()
983 self.__projectMIDialog and self.__projectMIDialog.clear() 983 self.__projectMIDialog and self.__projectMIDialog.clear()
984 if self.__projectRawMetricsDialog: 984 if self.__projectRawMetricsDialog:
985 self.__projectRawMetricsDialog.clear() 985 self.__projectRawMetricsDialog.clear()
986 986
987
988 def installDependencies(pipInstall):
989 """
990 Function to install dependencies of this plug-in.
991
992 @param pipInstall function to be called with a list of package names.
993 @type function
994 """
995 try:
996 from radon import __version__ as radon_version
997 import Globals
998 if Globals.versionToTuple(radon_version) < (4, 5, 0):
999 # force an upgrade
1000 pipInstall(["radon>=4.5.0"])
1001 except ImportError:
1002 pipInstall(["radon>=4.5.0"])
1003
987 # 1004 #
988 # eflag: noqa = M801 1005 # eflag: noqa = M801

eric ide

mercurial