<div dir="ltr"><div dir="ltr">Hi Richard, <br></div><div dir="ltr"><div><br></div><div><br></div><div>see the first part of the answer to "Using QGIS plugin from another plugin" at <a href="http://GIS.SE">GIS.SE</a> [1]</div><div><br></div></div><div>In short, you need to use the independent plugin's name from metadata.txt (i.e., "name" field) in your dependent plugin's "<span style="color:rgb(0,0,0)">plugin_dependencies</span>" field.</div><div><br></div><div><br></div><div>For instance, the plugin "LADM-COL add-on Ambiente" depends on "Asistente LADM-COL" (see name field of the latter in [2]). So I need to use "Asistete LADM-COL" in the plugin_dependecies field of "LADM-COL add-on Ambiente", like this [3].</div><div><br></div><div><br></div><div>Note you may declare a specific version in plugin_dependencies, but keep in mind that so far this only works if the specified version is the latest stable or the latest experimental one. Older versions won't be installed by plugin installer.</div><div><br></div><div><br></div><div>Let me know if it's still unclear.</div><div><br></div><div><br></div><div>Regards, </div><div><br></div><div>Germán </div><div>--------</div><div>[1] <a href="https://gis.stackexchange.com/questions/403501/using-qgis-plugin-from-another-plugin">https://gis.stackexchange.com/questions/403501/using-qgis-plugin-from-another-plugin</a></div><div>[2] <a href="https://github.com/SwissTierrasColombia/Asistente-LADM-COL/blob/master/asistente_ladm_col/metadata.txt#L2">https://github.com/SwissTierrasColombia/Asistente-LADM-COL/blob/master/asistente_ladm_col/metadata.txt#L2</a></div><div>[3] <a href="https://github.com/SwissTierrasColombia/LADM-COL-Add-on-Ambiente/blob/master/metadata.txt#L11">https://github.com/SwissTierrasColombia/LADM-COL-Add-on-Ambiente/blob/master/metadata.txt#L11</a></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar, 29 mar 2022 a las 2:19, Alessandro Pasotti via QGIS-Developer (<<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Richard,</div><div><br></div><div>it is (was?) enforced by the installer, AFAIK there are no checks on the plugins website.</div><div><br></div><div>See: <a href="https://github.com/qgis/QGIS/blob/master/python/pyplugin_installer/plugindependencies.py" target="_blank">https://github.com/qgis/QGIS/blob/master/python/pyplugin_installer/plugindependencies.py</a></div><div><br></div><div>Cheers<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 29, 2022 at 9:02 AM Richard Duivenvoorde via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Devs,<br>
<br>
Reading <br>
<a href="https://docs.qgis.org/3.22/en/docs/pyqgis_developer_cookbook/plugins/plugins.html#plugin-metadata" rel="noreferrer" target="_blank">https://docs.qgis.org/3.22/en/docs/pyqgis_developer_cookbook/plugins/plugins.html#plugin-metadata</a><br>
<br>
about 'plugin_dependencies' and trying it out in a plugin locally, it <br>
does not seem to be enforced or so? I added another plugin in metadata <br>
(it's not clear from docs what name you need to use: plugin name or <br>
module name) thinking I would see some message somewhere.<br>
<br>
Is there some message on <a href="http://plugins.qgis.org" rel="noreferrer" target="_blank">plugins.qgis.org</a>?<br>
<br>
Or is it just a 'memo' for users who happen to see it in the metadata of <br>
a plugin, then a dev should notify the user theirselves?<br>
<br>
Thanks for any info,<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div>Alessandro Pasotti</div><div>QCooperative:  <a href="https://www.qcooperative.net" target="_blank">www.qcooperative.net</a><br></div>ItOpen:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br clear="all"><div>--<br></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>-----------<br></div><div>   |\__  <br>(:>__)(<br>   |/    <br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/" target="_blank">http://geotux.tuxfamily.org/</a><br><a href="http://twitter.com/GeoTux2" target="_blank">https://twitter.com/GeoTux2</a></div><div><br></div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div></div></div></div></div></div><div><div><br></div><div><a href="http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo" target="_blank"><img src="http://gis.stackexchange.com/users/flair/4972.png"></a></div></div></div></div></div></div></div></div>