[Qgis-psc] QGIS grant report: PyQGIS linter warnings
Matthias Kuhn
matthias at opengis.ch
Tue Dec 17 02:16:36 PST 2024
Thanks Julien,
Great work, this will help to improve plugins and a quicker adoption of
newer QGIS API's!
Matthias
On Tue, Dec 17, 2024 at 11:09 AM Julien Cabieces via QGIS-PSC <
qgis-psc at lists.osgeo.org> wrote:
>
> Hi PSC,
>
> Here is the report for the grant regarding the QEP #287 [0]
>
> Contrary to what was initially proposed, I didn't modify *.pyi files at
> build time using python scripts. I tried it and it was perfecly working
> but it was making the whole building process a bit more complex and
> fragile and brought more dependencies to install.
>
> So, I went the hardway and contribute to SIP [1] [2] so it could
> generate the *.pyi file directly. In addition to static linter message
> initially planned, I also added the support of deprecated messages when
> the deprecation warning is raised at runtime.
>
> And so the deprecated annotation with message is now used in QGIS since
> #59834 [3].
>
> Be aware that you need a Python-SIP 6.9.0 or more to have your
> deprecated message fully working (if not, you would have the same
> behavior than before).
>
> I couldn't make the proposed modifications on the plugin platform
> because of 2 reasons:
> - Python-SIP 6.9.0 and the associated PyQt built with it are not yet
> included in any linux distribution (it just appeared in fedora rawhide
> but I would prefer use a "stable" distribution)
> - I completely exceeded the allocated budget, specially in my way to
> contribute to SIP.
>
> I'll try to secure funding to implement the plateform plugin part next
> year.
>
> Thanks again for funding this work.
>
> Regards,
> Julien
>
> [0] https://github.com/qgis/QGIS-Enhancement-Proposals/issues/287
> [1] https://github.com/Python-SIP/sip/pull/46
> [2] https://github.com/Python-SIP/sip/pull/51
> [3] https://github.com/qgis/QGIS/pull/59834
>
>
>
> --
>
> Julien Cabieces
> Senior Developer at Oslandia
> julien.cabieces at oslandia.com
> _______________________________________________
> QGIS-PSC mailing list
> QGIS-PSC at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-psc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-psc/attachments/20241217/8b0cd15f/attachment.htm>
More information about the QGIS-PSC
mailing list