This package does not support Python 3.12. Please test it with Python 3.12 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg99104.html. Please check the information provided in the tracker. Ask in #gentoo-python on IRC if need any help.
Unlikely to happen before 24.05.0, while current dev-util/kdevelop-24.02.2 is still depending on dev-qt/qtwebengine:5 which is a much bigger package not having python3_12 support as well.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=177509c9474b191ae907e44259f37bd6cabd6d9d commit 177509c9474b191ae907e44259f37bd6cabd6d9d Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-05-30 20:32:15 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-05-31 05:46:33 +0000 profiles: base: kdevelop-python, falkon-23.08.5 don't support >=py3_12 Bug: https://bugs.gentoo.org/929546 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> profiles/base/package.use | 5 +++++ 1 file changed, 5 insertions(+)
FYI: I created an upstream merge-request to add initial python 3.12 support -> https://invent.kde.org/kdevelop/kdev-python/-/merge_requests/29
And... it was merged, so technically kdevelop-python-9999 does support Python 3.12 :)
No longer dependent on bug 925719, as qtwebengine:5 was ported to py3.12. "Nothing is handled correctly" though ...?
(In reply to Andreas Sturmlechner from comment #5) > No longer dependent on bug 925719, as qtwebengine:5 was ported to py3.12. > > "Nothing is handled correctly" though ...? Based on https://invent.kde.org/kdevelop/kdev-python/-/merge_requests/29#note_961519, I think the issue is no special handling was added for new syntax in Python 3.12. So, it'll parse, but not necessarily e.g. give useful type suggestions or whatever.
Yes this was referring to new syntax features. It will parse, will not throw an error. FTR: The python 3.11 support was added exactly the same.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=1f0c1e26a740bfb079a9f6bd1ee65a047f29a4f7 commit 1f0c1e26a740bfb079a9f6bd1ee65a047f29a4f7 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-06-12 15:14:14 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-06-12 15:14:14 +0000 dev-util/kdevelop-python: enable py3.12 Closes: https://bugs.gentoo.org/929546 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../files/kdevelop-python-24.05.1-python3.12.patch | 190 +++++++++++++++++++++ .../kdevelop-python/kdevelop-python-24.05.1.ebuild | 4 +- .../kdevelop-python-24.05.49.9999.ebuild | 4 +- .../kdevelop-python/kdevelop-python-9999.ebuild | 2 +- 4 files changed, 197 insertions(+), 3 deletions(-)
Thanks Bernd, I've pushed this to kde overlay for now. Could you please test this with kdevelop-python-24.05.49.9999?
Works fine. However, I can not do # emerge -av kdevelop =kdevelop-python-24.05.49.9999 These are the packages that would be merged, in order: Calculating dependencies | !!! Problem resolving dependencies for =dev-util/kdevelop-python-24.05.49.9999 ... done! Dependency resolution took 1.08 s (backtrack: 0/20). !!! The ebuild selected to satisfy "=kdevelop-python-24.05.49.9999" has unmet requirements. - dev-util/kdevelop-python-24.05.49.9999::kde USE="debug -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_11 python3_12 -python3_10" The following REQUIRED_USE flag constraints are unsatisfied: exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 python_single_target_python3_12 ) as it wants to select python3_11 and _12. But PYTHON_SINGLE_TARGET="python3_12" emerge -av kdevelop =kdevelop-python-24.05.49.9999 works fine. Don't know whats wrong with the other command.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2778d58af8600e325185f2618b8c82d9bc09d433 commit 2778d58af8600e325185f2618b8c82d9bc09d433 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-06-13 15:50:14 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-06-13 16:50:46 +0000 dev-util/kdevelop-python: add 24.05.1, adjust py3_11 package.use Closes: https://bugs.gentoo.org/929546 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> dev-util/kdevelop-python/Manifest | 1 + .../files/kdevelop-python-24.05.1-python3.12.patch | 190 +++++++++++++++++++++ .../kdevelop-python/kdevelop-python-24.05.1.ebuild | 53 ++++++ profiles/base/package.use | 2 +- 4 files changed, 245 insertions(+), 1 deletion(-)