Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 929546 - dev-util/kdevelop-python: needs upgrade to Python 3.12 (PythonCompatUpdate)
Summary: dev-util/kdevelop-python: needs upgrade to Python 3.12 (PythonCompatUpdate)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: InOverlay, UPSTREAM
Depends on:
Blocks: 921826 934201
  Show dependency tree
 
Reported: 2024-04-13 08:44 UTC by Michał Górny
Modified: 2024-06-13 16:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-04-13 08:44:13 UTC
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.
Comment 1 Andreas Sturmlechner gentoo-dev 2024-04-16 03:57:58 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2024-05-31 05:47:00 UTC
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(+)
Comment 3 Bernd Buschinski 2024-06-08 15:00:33 UTC
FYI: I created an upstream merge-request to add initial python 3.12 support -> https://invent.kde.org/kdevelop/kdev-python/-/merge_requests/29
Comment 4 Bernd Buschinski 2024-06-09 17:18:33 UTC
And... it was merged, so technically kdevelop-python-9999 does support Python 3.12 :)
Comment 5 Andreas Sturmlechner gentoo-dev 2024-06-11 20:53:43 UTC
No longer dependent on bug 925719, as qtwebengine:5 was ported to py3.12.

"Nothing is handled correctly" though ...?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-11 20:55:33 UTC
(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.
Comment 7 Bernd Buschinski 2024-06-12 14:57:53 UTC
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.
Comment 8 Larry the Git Cow gentoo-dev 2024-06-12 15:16:48 UTC
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(-)
Comment 9 Andreas Sturmlechner gentoo-dev 2024-06-12 15:17:46 UTC
Thanks Bernd, I've pushed this to kde overlay for now.

Could you please test this with kdevelop-python-24.05.49.9999?
Comment 10 Bernd Buschinski 2024-06-13 15:40:11 UTC
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.
Comment 11 Larry the Git Cow gentoo-dev 2024-06-13 16:54:51 UTC
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(-)