Skip to content

Commit f1f2dfd

Browse files
authored
Update to Jedi 0.17 (#11252)
* Unify line endings in requirements.txt lf chosen to match package{,-lock}.json * Update requirements to jedi 0.17 This includes updating to the latest parso too. * Update jedi API usage to work around upstream issue davidhalter/jedi#1548 is actually fixed upstream, but as-yet unreleased. * Add news entry
1 parent 9af9956 commit f1f2dfd

File tree

6 files changed

+22
-19
lines changed

6 files changed

+22
-19
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
package.json text eol=lf
22
package-lock.json text eol=lf
3+
requirements.txt text eol=lf

news/3 Code Health/11221.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update to the latest version of [`jedi`](https://github.com/davidhalter/jedi) (`0.17`). Note that this may be the last version of Jedi to support Python 2 and Python 3.5. (#11221; thanks Peter Law)

pythonFiles/completion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ def _process_request(self, request):
596596
line=request["line"] + 1,
597597
column=request["column"],
598598
path=request.get("path", ""),
599+
project=jedi.get_default_project(os.path.dirname(path)),
599600
sys_path=sys.path,
600601
)
601602

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# IntelliSense
2-
jedi==0.16.0
2+
jedi==0.17.0
33
# Sort Imports
44
isort==4.3.21
55
# DS Python daemon

requirements.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
#
2-
# This file is autogenerated by pip-compile
3-
# To update, run:
4-
#
5-
# pip-compile --generate-hashes
6-
#
1+
#
2+
# This file is autogenerated by pip-compile
3+
# To update, run:
4+
#
5+
# pip-compile --generate-hashes
6+
#
77
future==0.18.2 \
88
--hash=sha256:b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d \
9-
# via python-jsonrpc-server
9+
# via python-jsonrpc-server
1010
isort==4.3.21 \
1111
--hash=sha256:54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1 \
12-
--hash=sha256:6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd
13-
jedi==0.16.0 \
14-
--hash=sha256:b4f4052551025c6b0b0b193b29a6ff7bdb74c52450631206c262aef9f7159ad2 \
15-
--hash=sha256:d5c871cb9360b414f981e7072c52c33258d598305280fef91c6cae34739d65d5
16-
parso==0.5.2 \
17-
--hash=sha256:55cf25df1a35fd88b878715874d2c4dc1ad3f0eebd1e0266a67e1f55efccfbe1 \
18-
--hash=sha256:5c1f7791de6bd5dbbeac8db0ef5594b36799de198b3f7f7014643b0c5536b9d3 \
19-
# via jedi
12+
--hash=sha256:6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd
13+
jedi==0.17.0 \
14+
--hash=sha256:cd60c93b71944d628ccac47df9a60fec53150de53d42dc10a7fc4b5ba6aae798 \
15+
--hash=sha256:df40c97641cb943661d2db4c33c2e1ff75d491189423249e989bcea4464f3030
16+
parso==0.7.0 \
17+
--hash=sha256:158c140fc04112dc45bca311633ae5033c2c2a7b732fa33d0955bad8152a8dd0 \
18+
--hash=sha256:908e9fae2144a076d72ae4e25539143d40b8e3eafbaeae03c1bfe226f4cdf12c \
19+
# via jedi
2020
python-jsonrpc-server==0.2.0 \
21-
--hash=sha256:59ce9c9523c14c493a327b3a27ee37464a36dc2b9d8ab485ecbcedd38840380a
21+
--hash=sha256:59ce9c9523c14c493a327b3a27ee37464a36dc2b9d8ab485ecbcedd38840380a

tpn/distribution.toml

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

347347
[[project]]
348348
name = "Jedi"
349-
version = "0.13.3"
350-
url = "https://github.com/davidhalter/jedi/tree/v0.13.3"
349+
version = "0.17.0"
350+
url = "https://github.com/davidhalter/jedi/tree/v0.17.0"
351351
purpose = "PyPI"
352352
license = """
353353
All contributions towards Jedi are MIT licensed.

0 commit comments

Comments
 (0)