--- a/src/eric7/Plugins/WizardPlugins/EricPluginWizard/Templates.py Mon Jun 24 13:35:01 2024 +0200 +++ b/src/eric7/Plugins/WizardPlugins/EricPluginWizard/Templates.py Mon Jun 24 14:40:06 2024 +0200 @@ -79,7 +79,8 @@ Public method to deactivate this plug-in. """ pass -{config3}''' +{config3}\ +{installDependencies}''' configTemplate0 = """from eric7 import Preferences @@ -87,7 +88,7 @@ configTemplate1 = '''def getConfigData(): """ - Module function returning data as required by the configuration dialog. + Function returning data as required by the configuration dialog. @return dictionary containing the relevant data @rtype dict @@ -105,7 +106,7 @@ def prepareUninstall(): """ - Module function to prepare for an un-installation. + Function to prepare for an un-installation. """ Preferences.getSettings().remove({className}.PreferencesKey) @@ -146,7 +147,7 @@ previewPixmapTemplate = '''def previewPix(): """ - Module function to return a preview pixmap. + Function to return a preview pixmap. @return preview pixmap @rtype QPixmap @@ -161,7 +162,7 @@ exeDisplayDataListTemplate = '''def exeDisplayDataList(): """ - Module function to support the display of some executable info. + Function to support the display of some executable info. @return list of dictionaries containing the data to query the presence of the executable @@ -191,7 +192,7 @@ exeDisplayDataTemplate = '''def exeDisplayData(): """ - Module function to support the display of some executable info. + Function to support the display of some executable info. @return dictionary containing the data to query the presence of the executable @@ -217,7 +218,7 @@ exeDisplayDataInfoTemplate = '''def exeDisplayData(): """ - Module function to support the display of some executable info. + Function to support the display of some executable info. @return dictionary containing the data to be shown @rtype dict @@ -236,7 +237,7 @@ moduleSetupTemplate = '''def moduleSetup(): """ - Module function to perform module level setup. + Function to perform module level setup. """ pass @@ -245,7 +246,7 @@ apiFilesTemplate = '''def apiFiles(language): """ - Module function to return the API files made available by this plug-in. + Function to return the API files made available by this plug-in. @param language language to get APIs for @type str @@ -264,5 +265,17 @@ ''' +installDependenciesTemplate = ''' + +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 + """ + pass +''' + # # eflag: noqa = M841