I both migrate plugin keeping qgis2 compatibility ( https://github.com/enricofer/attributepainter) or branching to qgis3 only ( https://github.com/enricofer/go2streetview) 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. You will get a more readable and efficient code, and you'll get the opportunity to understand and exploit the api breaks benefits. Regards Enrico Ferreguti
2018-01-17 8:27 GMT+01:00 Javier Becerra Elcinto <[email protected]>: > Hi Simon, > > 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. > > However the wiki (https://github.com/qgis/QGIS/ > wiki/Plugin-migration-to-QGIS-3) 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. > > Regards, > > Javier > > > > El 16/01/2018 a las 14:53, Simon Gröchenig escribió: > >> Hi, >> 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? >> Simon >> _______________________________________________ >> QGIS-Developer mailing list >> [email protected] >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> > > _______________________________________________ > QGIS-Developer mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
