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

Marco Bernasocchi marco at opengis.ch
Fri Apr 13 05:34:16 PDT 2018


Hey Matteo


On 13.04.2018 14:24, matteo wrote:
> 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, it is written on the post, but I orgot to put it in the docs and
email.

Cheers
Marco
>
> Thanks again for this!
>
> Cheers
>
> Matteo
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>

-- 
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/dd7c87eb/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/dd7c87eb/attachment.png>


More information about the QGIS-Developer mailing list