Hi Andrea,
Yes, I understood, but we ourselves have created this issue by telling plugin
devs to set the max to 3.99 (and make the min/max range NOT including the
max).... Which is the proper way, I think.
But, contrary to your fixes, in my view this would have been much easier
fixable by calling current master version just 3.45 (and release it as 4.0.0)
(and add 3.45 as a proper QGIS version in the Django plugins app).
To be honest, to make my local Qt5 build usable again, I just set the
https://github.com/qgis/QGIS/blob/master/CMakeLists.txt#L64
to 44 so my (own) 3.44 (actually master) version will work as expected (to me).
Regards,
Richard
On 27-06-2025 17:39, Andrea Giudiceandrea wrote:
Hi Richard,
have you received my previous message in this thread?
As explained, QGIS 3.99.0-Master behaves like it was already QGIS 4.0.0 when dealing with
plugins due to PR "Make QGIS 2.99 compatible with 3.0 plugins by introducing PyQGIS
API version", so all the external plugins having max version tag set to 3.99 (like
99% of the currently available plugins) and the core ones are rejected. Moreover, the
plugins.xml for qgis=4.0 is not available, so the official plugin repository doesn't
currently work in QGIS 3.99.0-Master.
In order to restore the capability of your local build of QGIS 3.99.0-Master to
use and install any external plugin having the max version tag set to 3.99.0
and the core ones, as it should normally be, I think you could make the
following changes that actually revert such PR:
- remove the following lines from src/app/qgspluginregistry.cpp#L258-L265:
```
if ( qgisMinor == 99 )
{
// we want the API version, so for x.99 bump it up to the next major
release: e.g. 2.99 to 3.0.0
qgisMajor++;
qgisMinor = 0;
qgisBugfix = 0;
};
```
- remove the following lines from
python/pyplugin_installer/version_compare.py#L165-L167:
```
if y == "99":
x = str(int(x) + 1)
y = z = "0"
```
Regards.
Andrea
Il 27/06/2025 14:59, Richard Duivenvoorde via QGIS-Developer ha scritto:
On 25-06-2025 11:41, Richard Duivenvoorde via QGIS-Developer wrote:
So maybe best that I make a local edit?
https://github.com/qgis/QGIS/blob/master/CMakeLists.txt#L64
Argh that did not work, because the QGIS version is used to retrieve the
plugins, and between 3.44 and 3.99 there is nothing available :-(
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer