Re: kdev-python: plans to add support for PyQt6 & PySide2/6 ?

Björn Strömberg <[email protected]> Tue, 2 Jan 2024 09:33:55 +0100
Newsgroups gmane.comp.kde.devel.kdevelop
Message-ID <CAHo5mS3ze0xrORMmRMKjfbVCc+Q9B29DLJ4Kmb9HZwdSNxL_6A@mail.gmail.com>
--00000000000095534d060df25c8c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

the process as i see it (for KF5/KF6 in case they do not have python
wrappers like pyside) we got the qt tools to generate pyside2/6

   - shiboken2 https://doc.qt.io/qtforpython-5/shiboken2/index.html
   - shiboken6 https://doc.qt.io/qtforpython-6/shiboken6/index.html

to generate the python interfaces, then what we need is something to read
those interfaces to create the manuals,
which since its made with shiboken tool it should be pretty straigt forward
to translate directly from the doxygen output, atleast in theory..

any input on this idea, maybe someone already tried it?

On Tue, Jan 2, 2024 at 8:50=E2=80=AFAM Bj=C3=B6rn Str=C3=B6mberg <bjorn.str=
[email protected]>
wrote:

> is there any planned support for some newer documentation_files?
>
> i see that in 23.08.4 there is:
>
>    - kdevpythonsupport/documentation_files/PyKDE4
>    - kdevpythonsupport/documentation_files/PyQt4
>    - kdevpythonsupport/documentation_files/PyQt5
>
>
> actually expected that atleast KF5 & PySide2 (Qt5 with lgpl linking) woul=
d
> be supported by the plugin out of the box by v23.08?
>
> these python support things are something i expect that is not
> handwritten, and should likely be possible to autogenerate during
> compilation (if it finds KF5 / KF6 / Qt5 / Qt6 it should just generate th=
e
> correct stuff with what is available at build time or have a tool to
> generate the output so support can be packaged separately
>
> from the few files i looked at for PyQt5 (QtCore.py etc) they look pretty
> much like a c++ header has been automatically translated..
>
> we maybe have a tool to do this translation already?
>
> /Bj=C3=B6rn
>
>

--00000000000095534d060df25c8c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">the process as i see it (for KF5/KF6 in case they do not h=
ave python wrappers like pyside) we got the qt tools to generate pyside2/6=
=C2=A0<div><ul><li>shiboken2=C2=A0<a href=3D"https://doc.qt.io/qtforpython-=
5/shiboken2/index.html">https://doc.qt.io/qtforpython-5/shiboken2/index.htm=
l</a>=C2=A0</li><li><span style=3D"color:rgb(0,0,0)">shiboken6=C2=A0</span>=
<a href=3D"https://doc.qt.io/qtforpython-6/shiboken6/index.html">https://do=
c.qt.io/qtforpython-6/shiboken6/index.html</a>=C2=A0</li></ul>to generate t=
he python interfaces, then what we need is something to read those interfac=
es to create the manuals,=C2=A0</div><div>which since its made with shiboke=
n tool it should be pretty straigt forward to translate directly from the d=
oxygen output, atleast in theory..<br></div><div><br></div><div>any input o=
n this idea, maybe someone already tried it?</div></div><br><div class=3D"g=
mail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Jan 2, 2024 at 8:=
50=E2=80=AFAM Bj=C3=B6rn Str=C3=B6mberg &lt;<a href=3D"mailto:bjorn.strombe=
[email protected]">[email protected]</a>&gt; wrote:<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">is there any pl=
anned support for some newer documentation_files?<div><br></div><div>i see =
that in 23.08.4 there is:</div><div><ul><li><span style=3D"font-family:mono=
space"><span style=3D"color:rgb(0,0,0)">kdevpythonsupport/documentation_fil=
es/PyKDE4</span></span></li><li><span style=3D"font-family:monospace"><span=
 style=3D"color:rgb(0,0,0)">kdevpythonsupport/documentation_files/PyQt4<br>=
</span></span></li><li><span style=3D"font-family:monospace"><span style=3D=
"color:rgb(0,0,0)">kdevpythonsupport/documentation_files/PyQt5<br></span></=
span></li></ul><div><font color=3D"#000000" face=3D"monospace"><br></font><=
/div></div><div><font color=3D"#000000" face=3D"monospace">actually expecte=
d that atleast KF5 &amp; PySide2 (Qt5 with lgpl linking) would be supported=
 by the plugin out of the box by v23.08?</font></div><div><font color=3D"#0=
00000" face=3D"monospace"><br></font></div><div><font color=3D"#000000" fac=
e=3D"monospace">these python support things are something i expect that is =
not handwritten, and should likely be possible to autogenerate during compi=
lation (if it finds KF5 / KF6 / Qt5 / Qt6 it should just generate the corre=
ct stuff with what is available at build time or have a tool to generate th=
e output so support can be packaged separately</font></div><div><font color=
=3D"#000000" face=3D"monospace"><br></font></div><div><font color=3D"#00000=
0" face=3D"monospace">from the few files i looked at for PyQt5 (QtCore.py e=
tc) they look pretty much like a c++ header has been automatically translat=
ed..</font></div><div><font color=3D"#000000" face=3D"monospace"><br></font=
></div><div><font color=3D"#000000" face=3D"monospace">we maybe have a tool=
 to do this translation already?</font></div><div><font color=3D"#000000" f=
ace=3D"monospace"><br></font></div><div><font color=3D"#000000" face=3D"mon=
ospace">/Bj=C3=B6rn</font></div><div><font color=3D"#000000" face=3D"monosp=
ace"><br></font></div></div>
</blockquote></div>

--00000000000095534d060df25c8c--