<div dir="ltr"><div><div><div>Hello,<br><br></div>And we can use entrypoints to load the plugin:<br><br><span class="">from</span> pkg_resources <span class="">import</span> working_set<br><br>def register_plugins():<br>    for entry_point in working_set.iter_entry_points('qgis.plugins'):<br>        plugin = entry_point.load(require=True)<br>        if not issubclass(plugin, Plugin):<br>            raise ValueError(<br>                'Registered plugin '%s' must derive from ``Plugin``' % <a href="http://entry_point.name">entry_point.name</a>)<br><br>         ...<br><br></div>CU<br></div>Stéphane<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-07 18:48 GMT+01:00 Stéphane Brunner <span dir="ltr"><<a href="mailto:stephane.brunner@camptocamp.com" target="_blank">stephane.brunner@camptocamp.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello,<br><br></div>To get all the qgis plugin hosted on pypi we should be able to use a keywords.<br><br></div>An to get the list of plugin that have some keywords:<br><br>from xmlrpclib import ServerProxy<br>pypi = ServerProxy("<a href="http://pypi.python.org/pypi" target="_blank">http://pypi.python.org/pypi</a>", allow_none=True)<br><div>sp.search({"keywords": ["gdal", "dap"]})<br><br></div><div>returns:<br>[{'_pypi_ordering': False,<br>  'name': 'dap.plugins.gdal',<br>  'summary': 'GDAL plugin for pydap server',<br>  'version': '0.1.1'}]<br><br></div><div>CU<br></div><div>Stéphane<br></div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2015-11-06 16:03 GMT+01:00 Hugo Mercier <span dir="ltr"><<a href="mailto:hugo.mercier@oslandia.com" target="_blank">hugo.mercier@oslandia.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A summary about our other discussion of the morning on Python plugin<br>
dependencies and the opportunity to now use pip rather than our custom<br>
system.<br>
<br>
For plugins with external dependencies, we can :<br>
- add fields in metadata.txt to declare the dependencies (a pip install<br>
string)<br>
- for Windows and Mac users, ask package managers to include pip in them.<br>
<br>
This way, we will have a simple way to gently warn the user a dependency<br>
is missing. And the missing dependencies will be easily installable from<br>
osgeo4w (or the mac equivalent).<br>
<br>
This is the very first step and solves an important issue.<br>
<br>
Alessandro is working on the metadata update. And two issues have been<br>
added for the installers:<br>
<a href="http://hub.qgis.org/issues/13775" rel="noreferrer" target="_blank">http://hub.qgis.org/issues/13775</a><br>
<a href="http://hub.qgis.org/issues/13777" rel="noreferrer" target="_blank">http://hub.qgis.org/issues/13777</a><br>
<br>
About using setuptools for Python plugins and/or the pypi infrastructure<br>
for our plugins, no decision yet.<br>
<br>
We did not talk about the common framework of python functions. But I<br>
think things are already going well on this side.<br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><a href="http://camptocamp.com/" target="_blank">camptocamp.com</a><br><a href="http://mapfish.org" target="_blank">mapfish.org</a><br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><a href="http://camptocamp.com/" target="_blank">camptocamp.com</a><br><a href="http://mapfish.org" target="_blank">mapfish.org</a><br></div>
</div>