[QGIS-Developer] New tool for porting plugins to QGIS 3

Marco Bernasocchi marco at opengis.ch
Fri Apr 13 05:07:46 PDT 2018


Hi all I'd like to share a new tool we created to help plugin developers
porting their plugins to QGIS3.

we called it (with a lot of fantasy) qgis2to3 and you can install it with

pip install qgis2to3

the package includes two commands:
- qgis2to3 (a copy of the files found in
https://github.com/qgis/QGIS/tree/master/scripts to allow for quick
downloading and simple installation)

- qgis2apifinder (a tool based on qgis.org/api/api_break.html that helps
you find usages of the QGIS API version 2 and gives hint on how to adapt
the code for API version 3)

Documentation and source code are at https://github.com/opengisch/qgis2to3
a blog post with more suggestions on how to port can be found here:
http://www.opengis.ch/2018/04/13/porting-qgis-plugins-to-api-v3-strategy-and-tools/


Have a good weekend porting your plugins ;)
cheers
Marco

-- 
Marco Bernasocchi
QGIS.org Co-chair
marco at opengis.ch <mailto:marco at opengis.ch>
+41 (0)79 467 24 70 <tel:+41794672470>

OPENGIS.ch Logo <https://www.opengis.ch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180413/6baac988/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 6671 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180413/6baac988/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180413/6baac988/attachment.sig>


More information about the QGIS-Developer mailing list