Hello community, here is the log from the commit of package python-jedi for openSUSE:Factory checked in at 2020-02-06 13:19:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jedi (Old) and /work/SRC/openSUSE:Factory/.python-jedi.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jedi" Thu Feb 6 13:19:28 2020 rev:19 rq:769953 version:0.16.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jedi/python-jedi.changes 2019-12-29 15:49:32.683172054 +0100 +++ /work/SRC/openSUSE:Factory/.python-jedi.new.26092/python-jedi.changes 2020-02-06 13:19:33.680682128 +0100 @@ -1,0 +2,25 @@ +Tue Feb 4 09:38:03 UTC 2020 - Ondřej Súkup <[email protected]> + +- update to 0.16.0 +- add delete.patch + * Added Script.get_context to get information where you currently are. + * Completions/type inference of Pytest fixtures. + * Tensorflow, Numpy and Pandas completions should now be about 4-10x faster after the first time they are used. + * Dict key completions are working now. e.g. d = {1000: 3}; d[10 will expand to 1000. + * Completion for “proxies” works now. These are classes that have a __getattr__(self, name) method that does a return getattr(x, name). after loading them initially. + * Goto on a function/attribute in a class now goes to the definition in its super class. + * Big Script API Changes: + + The line and column parameters of jedi.Script are now deprecated + + completions deprecated, use complete instead + + goto_assignments deprecated, use goto instead + + goto_definitions deprecated, use infer instead + + call_signatures deprecated, use get_signatures instead + + usages deprecated, use get_references instead + + jedi.names deprecated, use jedi.Script(...).get_names() + * BaseDefinition.goto_assignments renamed to BaseDefinition.goto + * Add follow_imports to Definition.goto. Now its signature matches Script.goto. + * Python 2 support deprecated. For this release it is best effort. Python 2 has reached the end of its life and now it’s just about a smooth transition. Bugs for Python 2 will not be fixed anymore and a third of the tests are already skipped. + * Removed settings.no_completion_duplicates. It wasn’t tested and nobody was probably using it anyway. + * Removed settings.use_filesystem_cache and settings.additional_dynamic_modules, they have no usage anymore. Pretty much nobody was probably using them. + +------------------------------------------------------------------- Old: ---- jedi-0.15.2.tar.gz New: ---- delete.patch jedi-0.16.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jedi.spec ++++++ --- /var/tmp/diff_new_pack.rQmELu/_old 2020-02-06 13:19:34.572682565 +0100 +++ /var/tmp/diff_new_pack.rQmELu/_new 2020-02-06 13:19:34.576682567 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-jedi # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jedi -Version: 0.15.2 +Version: 0.16.0 Release: 0 Summary: An autocompletion tool for Python License: MIT AND Python-2.0 @@ -26,6 +26,7 @@ URL: https://github.com/davidhalter/jedi Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{version}.tar.gz Patch0: unbundle.patch +Patch1: delete.patch BuildRequires: %{python_module parso >= 0.5.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -54,6 +55,7 @@ %prep %setup -q -n jedi-%{version} %patch0 -p1 +%patch1 -p1 rm -Rf jedi/third_party %build ++++++ delete.patch ++++++ >From bec87f7ff82b0731713c6520a14c213341b4cecf Mon Sep 17 00:00:00 2001 From: Dave Halter <[email protected]> Date: Sun, 26 Jan 2020 20:07:25 +0100 Subject: [PATCH] Jedi understand now when you use del, fixes #313 --- test/completion/basic.py | 6 +++--- test/test_api/test_full_name.py | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/completion/basic.py b/test/completion/basic.py index b40068179..3ff919ca6 100644 --- a/test/completion/basic.py +++ b/test/completion/basic.py @@ -209,11 +209,11 @@ def global_as_import(): deleted_var = 3 del deleted_var -#? int() +#? deleted_var -#? ['deleted_var'] +#? [] deleted_var -#! ['deleted_var = 3'] +#! [] deleted_var # ----------------- diff --git a/test/test_api/test_full_name.py b/test/test_api/test_full_name.py index 4fdb861b0..6858b6ca8 100644 --- a/test/test_api/test_full_name.py +++ b/test/test_api/test_full_name.py @@ -112,7 +112,8 @@ def test_os_path(Script): def test_os_issues(Script): """Issue #873""" - assert [c.name for c in Script('import os\nos.nt''').complete()] == ['nt'] + # nt is not found, because it's deleted + assert [c.name for c in Script('import os\nos.nt''').complete()] == [] def test_param_name(Script): ++++++ jedi-0.15.2.tar.gz -> jedi-0.16.0.tar.gz ++++++ ++++ 13959 lines of diff (skipped)
