Hello community,

here is the log from the commit of package python-jedi for openSUSE:Factory 
checked in at 2019-01-08 12:29:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jedi (Old)
 and      /work/SRC/openSUSE:Factory/.python-jedi.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jedi"

Tue Jan  8 12:29:02 2019 rev:11 rq:663291 version:0.13.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jedi/python-jedi.changes  2018-10-15 
10:48:59.471034412 +0200
+++ /work/SRC/openSUSE:Factory/.python-jedi.new.28833/python-jedi.changes       
2019-01-08 12:31:20.344085149 +0100
@@ -1,0 +2,9 @@
+Sun Jan  6 22:27:01 UTC 2019 - Arun Persaud <[email protected]>
+
+- specfile:
+  * update copyright year
+
+- update to version 0.13.2:
+  * Fixed a bug that led to Jedi spawning a lot of subprocesses.
+
+-------------------------------------------------------------------

Old:
----
  jedi-0.13.1.tar.gz

New:
----
  jedi-0.13.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-jedi.spec ++++++
--- /var/tmp/diff_new_pack.V2s7ts/_old  2019-01-08 12:31:20.812084640 +0100
+++ /var/tmp/diff_new_pack.V2s7ts/_new  2019-01-08 12:31:20.812084640 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-jedi
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -20,7 +20,7 @@
 # Compiled file tests only work on particular architectures and only run on 
python 3.4
 %bcond_with tests
 Name:           python-jedi
-Version:        0.13.1
+Version:        0.13.2
 Release:        0
 Summary:        An autocompletion tool for Python
 License:        MIT AND Python-2.0

++++++ jedi-0.13.1.tar.gz -> jedi-0.13.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/CHANGELOG.rst 
new/jedi-0.13.2/CHANGELOG.rst
--- old/jedi-0.13.1/CHANGELOG.rst       2018-10-02 22:48:29.000000000 +0200
+++ new/jedi-0.13.2/CHANGELOG.rst       2018-12-15 20:10:18.000000000 +0100
@@ -3,6 +3,11 @@
 Changelog
 ---------
 
+0.13.2 (2018-12-15)
++++++++++++++++++++
+
+- Fixed a bug that led to Jedi spawning a lot of subprocesses.
+
 0.13.1 (2018-10-02)
 +++++++++++++++++++
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/PKG-INFO new/jedi-0.13.2/PKG-INFO
--- old/jedi-0.13.1/PKG-INFO    2018-10-02 22:52:54.000000000 +0200
+++ new/jedi-0.13.2/PKG-INFO    2018-12-15 20:16:08.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: jedi
-Version: 0.13.1
+Version: 0.13.2
 Summary: An autocompletion tool for Python that can be used for text editors.
 Home-page: https://github.com/davidhalter/jedi
 Author: David Halter
@@ -246,6 +246,11 @@
         Changelog
         ---------
         
+        0.13.2 (2018-12-15)
+        +++++++++++++++++++
+        
+        - Fixed a bug that led to Jedi spawning a lot of subprocesses.
+        
         0.13.1 (2018-10-02)
         +++++++++++++++++++
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/jedi/__init__.py 
new/jedi-0.13.2/jedi/__init__.py
--- old/jedi-0.13.1/jedi/__init__.py    2018-10-02 22:48:29.000000000 +0200
+++ new/jedi-0.13.2/jedi/__init__.py    2018-12-15 20:10:18.000000000 +0100
@@ -36,7 +36,7 @@
 good text editor, while still having very good IDE features for Python.
 """
 
-__version__ = '0.13.1'
+__version__ = '0.13.2'
 
 from jedi.api import Script, Interpreter, set_debug_function, \
     preload_module, names
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/jedi/api/environment.py 
new/jedi-0.13.2/jedi/api/environment.py
--- old/jedi-0.13.1/jedi/api/environment.py     2018-10-02 22:48:29.000000000 
+0200
+++ new/jedi-0.13.2/jedi/api/environment.py     2018-12-15 20:10:18.000000000 
+0100
@@ -190,8 +190,9 @@
 
 
 def get_cached_default_environment():
+    var = os.environ.get('VIRTUAL_ENV')
     environment = _get_cached_default_environment()
-    if environment.path != os.environ.get('VIRTUAL_ENV'):
+    if var and var != environment.path:
         _get_cached_default_environment.clear_cache()
         return _get_cached_default_environment()
     return environment
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/jedi/evaluate/context/iterable.py 
new/jedi-0.13.2/jedi/evaluate/context/iterable.py
--- old/jedi-0.13.1/jedi/evaluate/context/iterable.py   2018-10-02 
22:48:29.000000000 +0200
+++ new/jedi-0.13.2/jedi/evaluate/context/iterable.py   2018-12-15 
20:10:18.000000000 +0100
@@ -267,6 +267,11 @@
 
         return ContextSet(FakeSequence(self.evaluator, u'list', lazy_contexts))
 
+    def exact_key_items(self):
+        # NOTE: A smarter thing can probably done here to achieve better
+        # completions, but at least like this jedi doesn't crash
+        return []
+
 
 class GeneratorComprehension(ComprehensionMixin, GeneratorBase):
     pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/jedi/parser_utils.py 
new/jedi-0.13.2/jedi/parser_utils.py
--- old/jedi-0.13.1/jedi/parser_utils.py        2018-10-02 22:48:29.000000000 
+0200
+++ new/jedi-0.13.2/jedi/parser_utils.py        2018-12-15 20:10:18.000000000 
+0100
@@ -1,3 +1,4 @@
+import re
 import textwrap
 from inspect import cleandoc
 
@@ -158,6 +159,7 @@
         p = '(' + ''.join(param.get_code() for param in 
funcdef.get_params()).strip() + ')'
     else:
         p = funcdef.children[2].get_code()
+    p = re.sub(r'\s+', ' ', p)
     if funcdef.annotation:
         rtype = " ->" + funcdef.annotation.get_code()
     else:
@@ -183,6 +185,8 @@
     doc = clean_scope_docstring(scope_node)
     if call_signature is None:
         return doc
+    if not doc:
+        return call_signature
     return '%s\n\n%s' % (call_signature, doc)
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/jedi.egg-info/PKG-INFO 
new/jedi-0.13.2/jedi.egg-info/PKG-INFO
--- old/jedi-0.13.1/jedi.egg-info/PKG-INFO      2018-10-02 22:52:54.000000000 
+0200
+++ new/jedi-0.13.2/jedi.egg-info/PKG-INFO      2018-12-15 20:16:08.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: jedi
-Version: 0.13.1
+Version: 0.13.2
 Summary: An autocompletion tool for Python that can be used for text editors.
 Home-page: https://github.com/davidhalter/jedi
 Author: David Halter
@@ -246,6 +246,11 @@
         Changelog
         ---------
         
+        0.13.2 (2018-12-15)
+        +++++++++++++++++++
+        
+        - Fixed a bug that led to Jedi spawning a lot of subprocesses.
+        
         0.13.1 (2018-10-02)
         +++++++++++++++++++
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/jedi.egg-info/requires.txt 
new/jedi-0.13.2/jedi.egg-info/requires.txt
--- old/jedi-0.13.1/jedi.egg-info/requires.txt  2018-10-02 22:52:54.000000000 
+0200
+++ new/jedi-0.13.2/jedi.egg-info/requires.txt  2018-12-15 20:16:08.000000000 
+0100
@@ -1,6 +1,6 @@
 parso>=0.3.0
 
 [testing]
-pytest>=2.3.5
+pytest>=3.1.0
 docopt
 colorama
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/setup.py new/jedi-0.13.2/setup.py
--- old/jedi-0.13.1/setup.py    2018-10-02 22:48:29.000000000 +0200
+++ new/jedi-0.13.2/setup.py    2018-12-15 20:10:18.000000000 +0100
@@ -33,7 +33,7 @@
       install_requires=install_requires,
       extras_require={
           'testing': [
-              'pytest>=2.3.5',
+              'pytest>=3.1.0',
               # docopt for sith doctests
               'docopt',
               # coloroma for colored debug output
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/test/completion/functions.py 
new/jedi-0.13.2/test/completion/functions.py
--- old/jedi-0.13.1/test/completion/functions.py        2018-10-02 
22:48:29.000000000 +0200
+++ new/jedi-0.13.2/test/completion/functions.py        2018-12-15 
20:10:18.000000000 +0100
@@ -319,6 +319,7 @@
 a = 'a'
 exe2 = kwargs_func(**{a:3,
                       'b':4.0})
+
 #? int()
 exe2['a']
 #? float()
@@ -326,6 +327,19 @@
 #? int() float()
 exe2['c']
 
+exe3 = kwargs_func(**{k: v for k, v in [(a, 3), ('b', 4.0)]})
+
+# Should resolve to the same as 2 but jedi is not smart enough yet
+# Here to make sure it doesn't result in crash though
+#? 
+exe3['a']
+
+#? 
+exe3['b']
+
+#? 
+exe3['c']
+
 # -----------------
 # *args / ** kwargs
 # -----------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/test/completion/types.py 
new/jedi-0.13.2/test/completion/types.py
--- old/jedi-0.13.1/test/completion/types.py    2018-10-02 22:48:29.000000000 
+0200
+++ new/jedi-0.13.2/test/completion/types.py    2018-12-15 20:10:18.000000000 
+0100
@@ -138,18 +138,30 @@
 # python >= 3.5
 
 d = {'a': 3}
+dc = {v: 3 for v in ['a']}
 
 #? dict()
 {**d}
 
+#? dict()
+{**dc}
+
 #? str()
 {**d, "b": "b"}["b"]
 
+#? str()
+{**dc, "b": "b"}["b"]
+
 # Should resolve to int() but jedi is not smart enough yet
 # Here to make sure it doesn't result in crash though
 #? 
 {**d}["a"]
 
+# Should resolve to int() but jedi is not smart enough yet
+# Here to make sure it doesn't result in crash though
+#? 
+{**dc}["a"]
+
 s = {1, 2, 3}
 
 #? set()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/test/test_evaluate/test_docstring.py 
new/jedi-0.13.2/test/test_evaluate/test_docstring.py
--- old/jedi-0.13.1/test/test_evaluate/test_docstring.py        2018-10-02 
22:48:29.000000000 +0200
+++ new/jedi-0.13.2/test/test_evaluate/test_docstring.py        2018-12-15 
20:10:18.000000000 +0100
@@ -142,6 +142,16 @@
     assert 'assert' in completions[0].docstring()
 
 
+def test_docstring_params_formatting(Script):
+    defs = Script("""
+    def func(param1,
+             param2,
+             param3):
+        pass
+    func""").goto_definitions()
+    assert defs[0].docstring() == 'func(param1, param2, param3)'
+
+
 # ---- Numpy Style Tests ---
 
 @pytest.mark.skipif(numpydoc_unavailable,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jedi-0.13.1/test/test_evaluate/test_imports.py 
new/jedi-0.13.2/test/test_evaluate/test_imports.py
--- old/jedi-0.13.1/test/test_evaluate/test_imports.py  2018-10-02 
22:48:29.000000000 +0200
+++ new/jedi-0.13.2/test/test_evaluate/test_imports.py  2018-12-15 
20:10:18.000000000 +0100
@@ -87,10 +87,10 @@
     ("from flask.ext.", "bar"),
     ("from flask.ext.", "baz"),
     ("from flask.ext.", "moo"),
-    pytest.mark.xfail(("import flask.ext.foo; flask.ext.foo.", "Foo")),
-    pytest.mark.xfail(("import flask.ext.bar; flask.ext.bar.", "Foo")),
-    pytest.mark.xfail(("import flask.ext.baz; flask.ext.baz.", "Foo")),
-    pytest.mark.xfail(("import flask.ext.moo; flask.ext.moo.", "Foo")),
+    pytest.param("import flask.ext.foo; flask.ext.foo.", "Foo", 
marks=pytest.mark.xfail),
+    pytest.param("import flask.ext.bar; flask.ext.bar.", "Foo", 
marks=pytest.mark.xfail),
+    pytest.param("import flask.ext.baz; flask.ext.baz.", "Foo", 
marks=pytest.mark.xfail),
+    pytest.param("import flask.ext.moo; flask.ext.moo.", "Foo", 
marks=pytest.mark.xfail),
 ])
 def test_flask_ext(Script, code, name):
     """flask.ext.foo is really imported from flaskext.foo or flask_foo.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jedi-0.13.1/test/test_parso_integration/test_parser_utils.py 
new/jedi-0.13.2/test/test_parso_integration/test_parser_utils.py
--- old/jedi-0.13.1/test/test_parso_integration/test_parser_utils.py    
2018-10-02 22:48:29.000000000 +0200
+++ new/jedi-0.13.2/test/test_parso_integration/test_parser_utils.py    
2018-12-15 20:10:18.000000000 +0100
@@ -85,4 +85,4 @@
         node = node.children[0]
     assert parser_utils.get_call_signature(node) == call_signature
 
-    assert parser_utils.get_doc_with_call_signature(node) == (call_signature + 
'\n\n')
+    assert parser_utils.get_doc_with_call_signature(node) == call_signature


Reply via email to