[QGIS-Developer] QGIS plugin qgisMinimumVersion
Nyall Dawson
nyall.dawson at gmail.com
Mon Mar 11 16:29:55 PDT 2019
On Tue, 12 Mar 2019 at 00:07, Borys Jurgiel <lists at borysjurgiel.pl> wrote:
>
> The reason the plugin manager sends just "?qgis=3.4" was because the point
> releases ("micro" versions) are expected to only provide bugfixes and not new
> features. After some thinking, I guess this approach is wrong and a bug is
> also a reason to prevent the plugin from installing.
There's also often API backported to stable releases, which impacts
this. (E.g. when an existing class or method has not been exposed to
the Python bindings, or when a cleaner API for achieving something is
added in a later release it's sometimes backported too)
Nyall
>
> Another place to change would be the repository, as it also cuts off the point
> release part. For example, the OpenLayers Plugin has minimumQgisVersion=3.0.1
> and is visible here:
> http://plugins.qgis.org/plugins/plugins.xml?qgis=3.1
> but not here:
> http://plugins.qgis.org/plugins/plugins.xml?qgis=3.0.2
>
> Regards,
> Borys
>
> Dnia poniedziałek, 11 marca 2019 13:02:19 CET Havard Tveite pisze:
> > 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
>
>
>
> _______________________________________________
> 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
More information about the QGIS-Developer
mailing list