- Update to version v0.16.0+git54.0888dd46:
* Fix partialmethod issues * Make sure partialmethod tests are only executed for Python 3 * Refactor stdlib PartialObject * Fix PartialMethodObject (WIP) * Changed semantics of ClassVar attributes in classes, fixes #1502 * Avoid duplicate definitions for goto, fixes #1514 * Merge _remove_statements and infer_expr_stmt, fixes #1504 * Add partialmethod, fixes #1519 * Attempt at a test of completion of filepath after ~. * Complete path after ~. - Remove patches from git in preparation to switch to git service: * delete.patch * typing.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=58
This commit is contained in:
parent
f11d7b283a
commit
5fd953c67c
15
_service
Normal file
15
_service
Normal file
@ -0,0 +1,15 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="disabled">
|
||||
<param name="url">https://github.com/davidhalter/jedi.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">master</param>
|
||||
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@.%h</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled" />
|
||||
<service name="tar" mode="buildtime" />
|
||||
<service name="recompress" mode="buildtime">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
</services>
|
43
delete.patch
43
delete.patch
@ -1,43 +0,0 @@
|
||||
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:d5c871cb9360b414f981e7072c52c33258d598305280fef91c6cae34739d65d5
|
||||
size 931401
|
3
jedi-v0.16.0+git54.0888dd46.obscpio
Normal file
3
jedi-v0.16.0+git54.0888dd46.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:41e06beb489c86b8aca9c7ab16b5f79698cd9b3f72956227d3524a87732bce18
|
||||
size 4232716
|
5
jedi.obsinfo
Normal file
5
jedi.obsinfo
Normal file
@ -0,0 +1,5 @@
|
||||
name: jedi
|
||||
version: v0.16.0+git54.0888dd46
|
||||
mtime: 1584145366
|
||||
commit: 0888dd468fb28b8ca17404cfde739650b9ce1d6d
|
||||
|
@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 14 10:22:47 UTC 2020 - tchvatal@suse.com
|
||||
|
||||
- Update to version v0.16.0+git54.0888dd46:
|
||||
* Fix partialmethod issues
|
||||
* Make sure partialmethod tests are only executed for Python 3
|
||||
* Refactor stdlib PartialObject
|
||||
* Fix PartialMethodObject (WIP)
|
||||
* Changed semantics of ClassVar attributes in classes, fixes #1502
|
||||
* Avoid duplicate definitions for goto, fixes #1514
|
||||
* Merge _remove_statements and infer_expr_stmt, fixes #1504
|
||||
* Add partialmethod, fixes #1519
|
||||
* Attempt at a test of completion of filepath after ~.
|
||||
* Complete path after ~.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 14 10:16:25 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Remove patches from git in preparation to switch to git service:
|
||||
* delete.patch
|
||||
* typing.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 6 11:55:48 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
|
@ -18,16 +18,14 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-jedi
|
||||
Version: 0.16.0
|
||||
Version: v0.16.0+git54.0888dd46
|
||||
Release: 0
|
||||
Summary: An autocompletion tool for Python
|
||||
License: MIT AND Python-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/davidhalter/jedi
|
||||
Source0: https://files.pythonhosted.org/packages/source/j/jedi/jedi-%{version}.tar.gz
|
||||
Source0: jedi-%{version}.tar.xz
|
||||
Patch0: unbundle.patch
|
||||
Patch1: delete.patch
|
||||
Patch2: typing.patch
|
||||
BuildRequires: %{python_module parso >= 0.5.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@ -56,8 +54,6 @@ implementation as a VIM plugin which uses Jedi's autocompletion.
|
||||
%prep
|
||||
%setup -q -n jedi-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
rm -Rf jedi/third_party
|
||||
|
||||
%build
|
||||
|
17
typing.patch
17
typing.patch
@ -1,17 +0,0 @@
|
||||
Index: jedi-0.16.0/test/test_inference/test_gradual/test_typeshed.py
|
||||
===================================================================
|
||||
--- jedi-0.16.0.orig/test/test_inference/test_gradual/test_typeshed.py
|
||||
+++ jedi-0.16.0/test/test_inference/test_gradual/test_typeshed.py
|
||||
@@ -116,10 +116,10 @@ def test_sys_getwindowsversion(Script, e
|
||||
# This should only exist on Windows, but type inference should happen
|
||||
# everywhere.
|
||||
definitions = Script('import sys; sys.getwindowsversion().major').infer()
|
||||
+ def_, = definitions
|
||||
if environment.version_info.major == 2:
|
||||
- assert not definitions
|
||||
+ assert def_.name == 'Any'
|
||||
else:
|
||||
- def_, = definitions
|
||||
assert def_.name == 'int'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user