[QGIS-Developer] QGIS plugin qgisMinimumVersion

Havard Tveite havard.tveite at nmbu.no
Mon Mar 11 05:02:19 PDT 2019


I just experienced a problem with a plugin.
The plugin uses the optional "is_child_algorithm" parameter of
the processing.run function.  That parameter was introduced in
3.4.5 (LTR).

I therefore set "qgisMinimumVersion=3.4.5" in the plugin's
metadata.txt.
It turned out that this caused the plugin not to be available for
the current LTR, probably because "Parameters" is set to
"?qgis=3.4" in the Plugin manager in 3.4.5.

Changing to "qgisMinimumVersion=3.4", makes the plugin show in
the plugin manager, but that also makes it available in 3.4.4
and earlier 3.4 versions (where it will fail with an unexpected
keyword argument for processing.run...).

Could "micro" version be included in the Plugin manager
"Parameters", or is this something that will have to be handled
in the plugin code?

Håvard
-- 
Håvard Tveite
Faculty of Science and Technology, NMBU
Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 67231548   Web: http://www.nmbu.no


More information about the QGIS-Developer mailing list