Skip to content

Commit

Permalink
Update to Jedi 0.17 (#11252)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
PeterJCLaw authored Apr 21, 2020
1 parent 9af9956 commit f1f2dfd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
package.json text eol=lf
package-lock.json text eol=lf
requirements.txt text eol=lf
1 change: 1 addition & 0 deletions news/3 Code Health/11221.md
Original file line number Diff line number Diff line change
@@ -0,0 +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)
1 change: 1 addition & 0 deletions pythonFiles/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ def _process_request(self, request):
line=request["line"] + 1,
column=request["column"],
path=request.get("path", ""),
project=jedi.get_default_project(os.path.dirname(path)),
sys_path=sys.path,
)

Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# IntelliSense
jedi==0.16.0
jedi==0.17.0
# Sort Imports
isort==4.3.21
# DS Python daemon
Expand Down
32 changes: 16 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --generate-hashes
#
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --generate-hashes
#
future==0.18.2 \
--hash=sha256:b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d \
# via python-jsonrpc-server
# via python-jsonrpc-server
isort==4.3.21 \
--hash=sha256:54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1 \
--hash=sha256:6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd
jedi==0.16.0 \
--hash=sha256:b4f4052551025c6b0b0b193b29a6ff7bdb74c52450631206c262aef9f7159ad2 \
--hash=sha256:d5c871cb9360b414f981e7072c52c33258d598305280fef91c6cae34739d65d5
parso==0.5.2 \
--hash=sha256:55cf25df1a35fd88b878715874d2c4dc1ad3f0eebd1e0266a67e1f55efccfbe1 \
--hash=sha256:5c1f7791de6bd5dbbeac8db0ef5594b36799de198b3f7f7014643b0c5536b9d3 \
# via jedi
--hash=sha256:6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd
jedi==0.17.0 \
--hash=sha256:cd60c93b71944d628ccac47df9a60fec53150de53d42dc10a7fc4b5ba6aae798 \
--hash=sha256:df40c97641cb943661d2db4c33c2e1ff75d491189423249e989bcea4464f3030
parso==0.7.0 \
--hash=sha256:158c140fc04112dc45bca311633ae5033c2c2a7b732fa33d0955bad8152a8dd0 \
--hash=sha256:908e9fae2144a076d72ae4e25539143d40b8e3eafbaeae03c1bfe226f4cdf12c \
# via jedi
python-jsonrpc-server==0.2.0 \
--hash=sha256:59ce9c9523c14c493a327b3a27ee37464a36dc2b9d8ab485ecbcedd38840380a
--hash=sha256:59ce9c9523c14c493a327b3a27ee37464a36dc2b9d8ab485ecbcedd38840380a
4 changes: 2 additions & 2 deletions tpn/distribution.toml
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

[[project]]
name = "Jedi"
version = "0.13.3"
url = "https://github.com/davidhalter/jedi/tree/v0.13.3"
version = "0.17.0"
url = "https://github.com/davidhalter/jedi/tree/v0.17.0"
purpose = "PyPI"
license = """
All contributions towards Jedi are MIT licensed.
Expand Down

0 comments on commit f1f2dfd

Please sign in to comment.