Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 896654

Summary: app-vim/jedi: needs upgrade to Python 3.11 (PythonCompatUpdate)
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Vim Maintainers <vim>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://github.com/gentoo/gentoo/pull/32538
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 913350    
Bug Blocks: 896398    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-25 09:35:37 UTC
This package does not support Python 3.11.  Please test it with Python 3.11 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://archives.gentoo.org/gentoo-dev/message/abb5788ea81c7bbf4d40a2995b682eb9.  Please check the information provided in the tracker.  Ask in #gentoo-python on IRC if need any help.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-03 05:25:07 UTC
Ping. Python 3.11 is now default.
Comment 2 Eli Schwartz 2023-08-30 17:05:50 UTC
This was fixed upstream in jedi 0.19.0, via:
- bumping an internal variable that says what versions of python jedi promises to support
- bumping a lower bounds on parso, which has all the actual python support inside of it

parso 0.8.3 is the only current version packaged by gentoo, so that's good.

The appropriate jedi version is also packaged, it just isn't stable yet.
Comment 3 Eli Schwartz 2023-08-30 17:08:43 UTC
There's an incredibly weird app-vim/jedi issue where it passes the tests iff either one of:
- dev-python/jedi-0.19.0 is installed, which supports python3_11
- you have dev-lang/python-3.10.* installed

Because depending on your python-jedi version, the choose-venv.vim test case will only try to report a python 3.10 as a choosable environment, and if it cannot find one, it fails due to getting an empty list "no envs supported? something must be wrong".
Comment 4 Larry the Git Cow gentoo-dev 2023-08-31 04:09:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06e74cf585f68018aee321ef74dee8fe1310bd53

commit 06e74cf585f68018aee321ef74dee8fe1310bd53
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2023-08-31 02:50:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-31 04:06:38 +0000

    app-vim/jedi: add 0.11.2
    
    Adds python3_11 support. In order to pass tests on python 3.11, the
    minimum version of dev-python/jedi must be bumped to 0.19.
    
    Due to mysterious reasons, the upstream version tag is now prefixed with
    a "v", so the download url must adapt. While we are at it, naming the
    distfile as "jedi" is simply wrong, since that could clash with
    dev-python/jedi's distfiles if the version numbers ever collided. Use
    MY_PN instead.
    
    Closes: https://bugs.gentoo.org/882821
    Closes: https://bugs.gentoo.org/896654
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/32538
    Signed-off-by: Sam James <sam@gentoo.org>

 app-vim/jedi/Manifest           |  1 +
 app-vim/jedi/jedi-0.11.2.ebuild | 80 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)