Skip to content

Upgrade to Jedi 17 to support Python 3.8/3.9 - #446

Merged
metalogical merged 10 commits into
autocomplete-python:masterfrom
jantrienes:jedi-17
Jan 19, 2021
Merged

metalogical merged 10 commits into
autocomplete-python:masterfrom
jantrienes:jedi-17

Conversation

@jantrienes

@jantrienes jantrienes commented Dec 3, 2020 •

Copy link
Copy Markdown
Contributor

This PR adds compatibility with newer versions of Jedi (namely 0.17.x) which supports Python >=3.6.

Aside from aligning the API, I removed the bundled Jedi in favor of a system-wide (or environment wide) installation of Jedi. This should simplify the maintenance of this package. Jedi 0.11 started to add an external dependency (parso) which would make it difficult to upgrade the bundled Jedi.

Is this change welcome?

Testing Done

jedi version: 0.17.2

(py39) jan.trienes@nvc3827:~/Documents/github/autocomplete-python
> git status
On branch jedi-17
Your branch is up to date with 'origin/jedi-17'.

nothing to commit, working tree clean
(py39) jan.trienes@nvc3827:~/Documents/github/autocomplete-python
> python --version
Python 3.9.0
(py39) jan.trienes@nvc3827:~/Documents/github/autocomplete-python
> atom --test spec
...........

Finished in 5.888 seconds
11 tests, 27 assertions, 0 failures, 0 skipped

Given function `def foo(x: str = 'foo')`, `jedi.api.classes.ParamName.description` would return `param x: str = 'foo'`.
Otherwise module_name is __main__.
Newer versions of jedi support Python 3.8 and Python 3.9. Updating the bundled Jedi is not trivial as, starting from jedi 0.11, they had an external dependency (parso) which we would also have to bundle.
@sadovnychyi

Copy link
Copy Markdown
Member

Hey, thank you!

Unfortunately I'm not maintaining this anymore so won't be able to test and/or publish this. @its-dhung might be able to.

@metalogical
metalogical self-requested a review January 19, 2021 23:32
@metalogical

Copy link
Copy Markdown
Contributor

Thanks, this looks fine. Will publish shortly

@metalogical
metalogical merged commit 19c7bef into autocomplete-python:master Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants