<div dir="ltr"><div><div><div><div>I both migrate plugin keeping qgis2 compatibility (<a href="https://github.com/enricofer/attributepainter">https://github.com/enricofer/attributepainter</a>) or branching to qgis3 only (<a href="https://github.com/enricofer/go2streetview">https://github.com/enricofer/go2streetview</a>)<br></div>Having to carry out 3 migrations in one: python2 to python3, QT4 to QT5, PyQt2 to PyQt3, in my experience I strongly suggest you to branch to Qgis3 only, leaving the qgis2 compatibility to simpler plugins.<br></div>You will get a more readable and efficient code, and you'll get the opportunity to understand and exploit the api breaks benefits. <br></div>Regards<br></div>Enrico Ferreguti<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-17 8:27 GMT+01:00 Javier Becerra Elcinto <span dir="ltr"><<a href="mailto:javier@panoimagen.com" target="_blank">javier@panoimagen.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Simon,<br>
<br>
We have used the approach of qgis2compat: we get our code running on QGis3 with new API calls, and use a small compatibility layer to get that same code running on QGis2. It is a bit of work, but seems to be working fine.<br>
<br>
However the wiki (<a href="https://github.com/qgis/QGIS/wiki/Plugin-migration-to-QGIS-3" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/<wbr>wiki/Plugin-migration-to-QGIS-<wbr>3</a>) now says that qgis2compat has been deprecated; I do not know if it is because that route is a dead-end, if other people are just making two different versions of the plugin.<br>
<br>
Regards,<br>
<br>
Javier<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
El 16/01/2018 a las 14:53, Simon Gröchenig escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I aim to release a QGIS3-version of my QGIS plugin "GPX Segment Importer". I would like to ask you if there exists a common approach for releasing versions for both QGIS2 and QGIS3? Should I create a new plugin for QGIS3 or can I somehow use the existing plugin for both?<br>
Simon<br>
______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
</blockquote>
<br>
______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a></div></div></blockquote></div><br></div>