forked from pool/python-jedi
Accepting request 769953 from devel:languages:python
- 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.
OBS-URL: https://build.opensuse.org/request/show/769953
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=19
This commit is contained in:
43
delete.patch
Normal file
43
delete.patch
Normal file
@@ -0,0 +1,43 @@
|
||||
From bec87f7ff82b0731713c6520a14c213341b4cecf Mon Sep 17 00:00:00 2001
|
||||
From: Dave Halter <davidhalter88@gmail.com>
|
||||
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):
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e909527104a903606dd63bea6e8e888833f0ef087057829b89a18364a856f807
|
||||
size 913832
|
||||
3
jedi-0.16.0.tar.gz
Normal file
3
jedi-0.16.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d5c871cb9360b414f981e7072c52c33258d598305280fef91c6cae34739d65d5
|
||||
size 931401
|
||||
@@ -1,3 +1,28 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 4 09:38:03 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 28 15:02:12 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
|
||||
@@ -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 @@ Group: Development/Languages/Python
|
||||
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 @@ implementation as a VIM plugin which uses Jedi's autocompletion.
|
||||
%prep
|
||||
%setup -q -n jedi-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
rm -Rf jedi/third_party
|
||||
|
||||
%build
|
||||
|
||||
Reference in New Issue
Block a user