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

matteo matteo.ghetta at gmail.com
Fri Apr 13 05:24:30 PDT 2018


Hey Marco,

> 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 ;)

thanks for this, really useful! One side note (maybe it depends on my
local machine): I had to install it with sudo privileges, else the tool
was not found on the system.

Thanks again for this!

Cheers

Matteo


More information about the QGIS-Developer mailing list