Skip to content

Commit aab1520

Browse files
author
Eric Snow
authored
Upgrade Jedi to version 0.13.3. (#6317)
(for #6013) Note that the update to the change log is a one-off for the sake of whoever does the July release. They will adjust as needed. :)
1 parent 54f2e98 commit aab1520

File tree

6 files changed

+75
-15
lines changed

6 files changed

+75
-15
lines changed

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,62 @@
11
# Changelog
22

3+
4+
## master
5+
6+
\<TBD>
7+
8+
### Thanks
9+
10+
Thanks to the following projects which we fully rely on to provide some of
11+
our features:
12+
- [isort](https://pypi.org/project/isort/)
13+
- [jedi](https://pypi.org/project/jedi/)
14+
and [parso](https://pypi.org/project/parso/)
15+
- [Microsoft Python Language Server](https://github.com/microsoft/python-language-server)
16+
- [ptvsd](https://pypi.org/project/ptvsd/)
17+
- [exuberant ctags](http://ctags.sourceforge.net/) (user-installed)
18+
- [rope](https://pypi.org/project/rope/) (user-installed)
19+
20+
Also thanks to the various projects we provide integrations with which help
21+
make this extension useful:
22+
- Debugging support:
23+
[Django](https://pypi.org/project/Django/),
24+
[Flask](https://pypi.org/project/Flask/),
25+
[gevent](https://pypi.org/project/gevent/),
26+
[Jinja](https://pypi.org/project/Jinja/),
27+
[Pyramid](https://pypi.org/project/pyramid/),
28+
[PySpark](https://pypi.org/project/pyspark/),
29+
[Scrapy](https://pypi.org/project/Scrapy/),
30+
[Watson](https://pypi.org/project/Watson/)
31+
- Formatting:
32+
[autopep8](https://pypi.org/project/autopep8/),
33+
[black](https://pypi.org/project/black/),
34+
[yapf](https://pypi.org/project/yapf/)
35+
- Interpreter support:
36+
[conda](https://conda.io/),
37+
[direnv](https://direnv.net/),
38+
[pipenv](https://pypi.org/project/pipenv/),
39+
[pyenv](https://github.com/pyenv/pyenv),
40+
[venv](https://docs.python.org/3/library/venv.html#module-venv),
41+
[virtualenv](https://pypi.org/project/virtualenv/)
42+
- Linting:
43+
[bandit](https://pypi.org/project/bandit/),
44+
[flake8](https://pypi.org/project/flake8/),
45+
[mypy](https://pypi.org/project/mypy/),
46+
[prospector](https://pypi.org/project/prospector/),
47+
[pylint](https://pypi.org/project/pylint/),
48+
[pydocstyle](https://pypi.org/project/pydocstyle/),
49+
[pylama](https://pypi.org/project/pylama/)
50+
- Testing:
51+
[nose](https://pypi.org/project/nose/),
52+
[pytest](https://pypi.org/project/pytest/),
53+
[unittest](https://docs.python.org/3/library/unittest.html#module-unittest)
54+
55+
And finally thanks to the [Python](https://www.python.org/) development team and
56+
community for creating a fantastic programming language and community to be a
57+
part of!
58+
59+
360
## 2019.6.0-rc (19 June 2019)
461

562
### Enhancements

ThirdPartyNotices-Distribution.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Microsoft Python extension for Visual Studio Code incorporates third party mater
198198
191. isarray 1.0.0 (https://github.com/juliangruber/isarray/blob/v1.0.0)
199199
192. isort 4.3.4 (https://github.com/timothycrosley/isort/tree/4.3.4)
200200
193. isstream 0.1.2 (https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz)
201-
194. Jedi 0.12.0 (https://github.com/davidhalter/jedi/tree/v0.12.0)
201+
194. Jedi 0.13.3 (https://github.com/davidhalter/jedi/tree/v0.13.3)
202202
195. jquery 3.4.1 (https://registry.npmjs.org/jquery/-/jquery-3.4.1.tgz)
203203
196. jquery-ui 1.12.1 (https://registry.npmjs.org/jquery-ui/-/jquery-ui-1.12.1.tgz)
204204
197. js-tokens 3.0.2 (https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz)
@@ -267,7 +267,7 @@ Microsoft Python extension for Visual Studio Code incorporates third party mater
267267
260. os-browserify 0.3.0 (https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz)
268268
261. os-tmpdir 1.0.2 (https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz)
269269
262. parse-entities 1.2.0 (https://registry.npmjs.org/parse-entities/-/parse-entities-1.2.0.tgz)
270-
263. parso 0.2.1 (https://github.com/davidhalter/parso/tree/v0.2.1)
270+
263. parso 0.5.0 (https://github.com/davidhalter/parso/tree/v0.5.0)
271271
264. path-browserify 0.0.0 (https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz)
272272
265. path-is-absolute 1.0.1 (https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz)
273273
266. path-parse 1.0.5 (https://github.com/jbgutierrez/path-parse)
@@ -6111,7 +6111,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
61116111
=========================================
61126112
END OF isstream NOTICES AND INFORMATION
61136113

6114-
%% Jedi 0.12.0 NOTICES AND INFORMATION BEGIN HERE (https://github.com/davidhalter/jedi/tree/v0.12.0)
6114+
%% Jedi 0.13.3 NOTICES AND INFORMATION BEGIN HERE (https://github.com/davidhalter/jedi/tree/v0.13.3)
61156115
=========================================
61166116
All contributions towards Jedi are MIT licensed.
61176117

@@ -8335,7 +8335,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
83358335
=========================================
83368336
END OF parse-entities NOTICES AND INFORMATION
83378337

8338-
%% parso 0.2.1 NOTICES AND INFORMATION BEGIN HERE (https://github.com/davidhalter/parso/tree/v0.2.1)
8338+
%% parso 0.5.0 NOTICES AND INFORMATION BEGIN HERE (https://github.com/davidhalter/parso/tree/v0.5.0)
83398339
=========================================
83408340
All contributions towards parso are MIT licensed.
83418341

news/3 Code Health/6013.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade Jedi to version 0.13.3.

pythonFiles/completion.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class JediCompletion(object):
3434

3535
def __init__(self):
3636
self.default_sys_path = sys.path
37-
self.environment = jedi.api.environment.Environment(sys.prefix, sys.executable)
3837
self._input = io.open(sys.stdin.fileno(), encoding='utf-8')
3938
if (os.path.sep == '/') and (platform.uname()[2].find('Microsoft') > -1):
4039
# WSL; does not support UNC paths
@@ -563,13 +562,16 @@ def _process_request(self, request):
563562
source=request.get('source', None),
564563
path=request.get('path', ''),
565564
all_scopes=True,
566-
environment=self.environment),
565+
),
567566
request['id'])
568567

569568
script = jedi.Script(
570-
source=request.get('source', None), line=request['line'] + 1,
571-
column=request['column'], path=request.get('path', ''),
572-
sys_path=sys.path, environment=self.environment)
569+
source=request.get('source', None),
570+
line=request['line'] + 1,
571+
column=request['column'],
572+
path=request.get('path', ''),
573+
sys_path=sys.path,
574+
)
573575

574576
if lookup == 'definitions':
575577
defs = self._get_definitionsx(script.goto_assignments(follow_imports=True), request['id'])

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
jedi==0.12.0
2-
parso==0.2.1
1+
jedi==0.13.3
2+
parso==0.5.0
33
isort==4.3.20
44
ptvsd==4.2.10

tpn/distribution.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
384384

385385
[[project]]
386386
name = "Jedi"
387-
version = "0.12.0"
388-
url = "https://github.com/davidhalter/jedi/tree/v0.12.0"
387+
version = "0.13.3"
388+
url = "https://github.com/davidhalter/jedi/tree/v0.13.3"
389389
purpose = "PyPI"
390390
license = """
391391
All contributions towards Jedi are MIT licensed.
@@ -1234,8 +1234,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12341234

12351235
[[project]]
12361236
name = "parso"
1237-
version = "0.2.1"
1238-
url = "https://github.com/davidhalter/parso/tree/v0.2.1"
1237+
version = "0.5.0"
1238+
url = "https://github.com/davidhalter/parso/tree/v0.5.0"
12391239
purpose = "PyPI"
12401240
license = """
12411241
All contributions towards parso are MIT licensed.

0 commit comments

Comments
 (0)