From c9b1249ee80d846a8bd4c268cd50481c0ac6fa12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Trimaille?= Date: Wed, 11 Sep 2019 15:37:42 +0200 Subject: [PATCH] Updated Plugin migration to QGIS 3 (markdown) --- Plugin-migration-to-QGIS-3.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Plugin-migration-to-QGIS-3.md b/Plugin-migration-to-QGIS-3.md index 7655c5c..b27d5e2 100644 --- a/Plugin-migration-to-QGIS-3.md +++ b/Plugin-migration-to-QGIS-3.md @@ -22,6 +22,7 @@ While in QGIS 2, plugins were located in your home directory in the `.qgis2/pyth - This command will print the diff. If you want to write these changes to files, use `-w` - The script will automatically update from Py2 to Py3, from Qt4 to the correct PyQt version. For instance `from PyQt4.QtGui import QMainWindow` will become `from qgis.PyQt.QtWidgets import QMainWindow`. - The command will update some QGIS API changes. +- without `qgis2to3`, using `2to3` from QGIS source tree, located in `path/to/QGIS/scripts/2to3`. Follow instructions from `qgis2to3` - `qgis2apifinder /path/to/my/plugin` - This will show you potential api v2 only usages (as listed on https://qgis.org/api/api_break.html) - set `qgisMinimumVersion=3.0` in metadata.txt