Hello community,
here is the log from the commit of package python-python-language-server for
openSUSE:Factory checked in at 2020-05-03 22:46:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-language-server (Old)
and /work/SRC/openSUSE:Factory/.python-python-language-server.new.2738
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-language-server"
Sun May 3 22:46:54 2020 rev:8 rq:799809 version:0.31.10
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-python-language-server/python-python-language-server.changes
2020-04-19 21:50:22.196189131 +0200
+++
/work/SRC/openSUSE:Factory/.python-python-language-server.new.2738/python-python-language-server.changes
2020-05-03 22:46:57.511120995 +0200
@@ -1,0 +2,19 @@
+Fri May 1 13:11:54 UTC 2020 - Benjamin Greiner <[email protected]>
+
+- Update to Version 0.31.10
+ * README: Add pointer to list of configuration options
+ (gh#palantir/python-language-server#774)
+ * ~Require pyflakes<2.2.0~
+ (fix gh#palantir/python-language-server#782)
+ (gh#palantir/python-language-server#784)
+ not applied in OpenSUSE package. See comment in PR
+ * Allow more references returned in test_references_builtin
+ (gh#palantir/python-language-server#778)
+ * PR: Fix hover request for numpy alias (np) and ufuncs
+ (gh#palantir/python-language-server#768)
+- Update pyls-pr781-jedi016-017.patch to pyls-pr781-jedi-017.patch
+ gh#palantir/python-language-server#781
+ Patch also means python-jedi >= 0.17
+- Drop pyls-pr778-multiplerefs.patch merged upstream
+
+-------------------------------------------------------------------
Old:
----
pyls-pr778-multiplerefs.patch
pyls-pr781-jedi016-017.patch
python-language-server-0.31.9.tar.gz
New:
----
pyls-pr781-jedi-017.patch
python-language-server-0.31.10.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-language-server.spec ++++++
--- /var/tmp/diff_new_pack.bspz24/_old 2020-05-03 22:46:58.171122338 +0200
+++ /var/tmp/diff_new_pack.bspz24/_new 2020-05-03 22:46:58.175122346 +0200
@@ -22,16 +22,14 @@
%define skip_python2 1
%endif
Name: python-python-language-server
-Version: 0.31.9
+Version: 0.31.10
Release: 0
Summary: Python Language Server for the Language Server Protocol
License: MIT
URL: https://github.com/palantir/python-language-server
Source:
https://files.pythonhosted.org/packages/source/p/python-language-server/python-language-server-%{version}.tar.gz
-# gh#palantir/python-language-server#778
-Patch0: pyls-pr778-multiplerefs.patch
# gh#palantir/python-language-server#781
-Patch1: pyls-pr781-jedi016-017.patch
+Patch0: pyls-pr781-jedi-017.patch
BuildRequires: %{python_module PyQt5}
BuildRequires: %{python_module autopep8}
BuildRequires: %{python_module flake8}
@@ -50,7 +48,7 @@
BuildRequires: %{python_module yapf}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: python-jedi >= 0.16
+Requires: python-jedi >= 0.17
Requires: python-pluggy
Requires: python-python-jsonrpc-server >= 0.3.2
Requires: python-setuptools
@@ -64,7 +62,7 @@
Recommends: python-rope >= 0.10.5
BuildArch: noarch
# SECTION test requirements
-BuildRequires: %{python_module jedi >= 0.16}
+BuildRequires: %{python_module jedi >= 0.17}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pluggy}
BuildRequires: %{python_module pytest}
@@ -98,8 +96,9 @@
%prep
%setup -q -n python-language-server-%{version}
%autopatch -p1
-# Use system python3-ujson without regards which version it is
+# Unpin software that has newer versions on Tumbleweed
sed -i "s/'ujson<=.*'/'ujson'/" setup.py
+sed -i "s/'\(pyflakes.*\),<.*'/'\1'/" setup.py
%build
%python_build
@@ -113,13 +112,13 @@
rm setup.cfg
# unclean tear down
skip_tests="test_missing_message"
-# Test failure on Leap 15.1 due to different pylint version
+# flake8>=2.2.0 produces E908 instead of empty list
+skip_tests+=" or test_flake8_no_checked_file"
%if 0%{?sle_version} == 150100 && 0%{?is_opensuse}
+ # Test failure on Leap 15.1 due to different pylint version
skip_tests+=" or test_syntax_error_pylint_py"
-%endif
-# unknown encoding utd-8 on python2
-%ifpython2
- skip_tests+=" or test_references_builtin"
+ # Test failure on Leap 15.1 due to mock hiccup
+ skip_tests+=" or test_flake8_config_param"
%endif
%pytest -k "not ( $skip_tests )"
++++++ pyls-pr781-jedi-017.patch ++++++
++++ 793 lines (skipped)
++++++ python-language-server-0.31.9.tar.gz ->
python-language-server-0.31.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-language-server-0.31.9/PKG-INFO
new/python-language-server-0.31.10/PKG-INFO
--- old/python-language-server-0.31.9/PKG-INFO 2020-03-18 22:31:15.000000000
+0100
+++ new/python-language-server-0.31.10/PKG-INFO 2020-04-19 01:04:22.000000000
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: python-language-server
-Version: 0.31.9
+Version: 0.31.10
Summary: Python Language Server for the Language Server Protocol
Home-page: https://github.com/palantir/python-language-server
Author: Palantir Technologies, Inc.
@@ -168,14 +168,14 @@
.. _Black: https://github.com/ambv/black
Platform: UNKNOWN
-Provides-Extra: all
-Provides-Extra: mccabe
Provides-Extra: pylint
+Provides-Extra: autopep8
+Provides-Extra: mccabe
Provides-Extra: pycodestyle
-Provides-Extra: flake8
+Provides-Extra: all
Provides-Extra: test
+Provides-Extra: pydocstyle
+Provides-Extra: flake8
+Provides-Extra: rope
Provides-Extra: pyflakes
Provides-Extra: yapf
-Provides-Extra: autopep8
-Provides-Extra: rope
-Provides-Extra: pydocstyle
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-language-server-0.31.9/pyls/_version.py
new/python-language-server-0.31.10/pyls/_version.py
--- old/python-language-server-0.31.9/pyls/_version.py 2020-03-18
22:31:15.000000000 +0100
+++ new/python-language-server-0.31.10/pyls/_version.py 2020-04-19
01:04:22.000000000 +0200
@@ -8,11 +8,11 @@
version_json = '''
{
- "date": "2020-03-18T16:25:57-0500",
+ "date": "2020-04-18T17:54:31-0500",
"dirty": false,
"error": null,
- "full-revisionid": "21833eafd4e254a79d35ca539967f3a010e8c2a1",
- "version": "0.31.9"
+ "full-revisionid": "fdb8b3dbc5df7d12729d135932bf2264e0883061",
+ "version": "0.31.10"
}
''' # END VERSION_JSON
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-language-server-0.31.9/pyls/plugins/hover.py
new/python-language-server-0.31.10/pyls/plugins/hover.py
--- old/python-language-server-0.31.9/pyls/plugins/hover.py 2020-03-18
22:31:14.000000000 +0100
+++ new/python-language-server-0.31.10/pyls/plugins/hover.py 2020-04-19
01:04:20.000000000 +0200
@@ -16,6 +16,12 @@
# Find first exact matching definition
definition = next((x for x in definitions if x.name == word), None)
+ # Ensure a definition is used if only one is available
+ # even if the word doesn't match. An example of this case is 'np'
+ # where 'numpy' doesn't match with 'np'. Same for NumPy ufuncs
+ if len(definitions) == 1:
+ definition = definitions[0]
+
if not definition:
return {'contents': ''}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-language-server-0.31.9/python_language_server.egg-info/PKG-INFO
new/python-language-server-0.31.10/python_language_server.egg-info/PKG-INFO
--- old/python-language-server-0.31.9/python_language_server.egg-info/PKG-INFO
2020-03-18 22:31:15.000000000 +0100
+++ new/python-language-server-0.31.10/python_language_server.egg-info/PKG-INFO
2020-04-19 01:04:22.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: python-language-server
-Version: 0.31.9
+Version: 0.31.10
Summary: Python Language Server for the Language Server Protocol
Home-page: https://github.com/palantir/python-language-server
Author: Palantir Technologies, Inc.
@@ -168,14 +168,14 @@
.. _Black: https://github.com/ambv/black
Platform: UNKNOWN
-Provides-Extra: all
-Provides-Extra: mccabe
Provides-Extra: pylint
+Provides-Extra: autopep8
+Provides-Extra: mccabe
Provides-Extra: pycodestyle
-Provides-Extra: flake8
+Provides-Extra: all
Provides-Extra: test
+Provides-Extra: pydocstyle
+Provides-Extra: flake8
+Provides-Extra: rope
Provides-Extra: pyflakes
Provides-Extra: yapf
-Provides-Extra: autopep8
-Provides-Extra: rope
-Provides-Extra: pydocstyle
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-language-server-0.31.9/python_language_server.egg-info/requires.txt
new/python-language-server-0.31.10/python_language_server.egg-info/requires.txt
---
old/python-language-server-0.31.9/python_language_server.egg-info/requires.txt
2020-03-18 22:31:15.000000000 +0100
+++
new/python-language-server-0.31.10/python_language_server.egg-info/requires.txt
2020-04-19 01:04:22.000000000 +0200
@@ -20,7 +20,7 @@
mccabe
pycodestyle
pydocstyle>=2.0.0
-pyflakes>=1.6.0
+pyflakes<2.2.0,>=1.6.0
pylint
rope>=0.10.5
yapf
@@ -41,7 +41,7 @@
pydocstyle>=2.0.0
[pyflakes]
-pyflakes>=1.6.0
+pyflakes<2.2.0,>=1.6.0
[pylint]
pylint
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-language-server-0.31.9/setup.py
new/python-language-server-0.31.10/setup.py
--- old/python-language-server-0.31.9/setup.py 2020-03-18 22:31:14.000000000
+0100
+++ new/python-language-server-0.31.10/setup.py 2020-04-19 01:04:20.000000000
+0200
@@ -52,7 +52,7 @@
'mccabe',
'pycodestyle',
'pydocstyle>=2.0.0',
- 'pyflakes>=1.6.0',
+ 'pyflakes>=1.6.0,<2.2.0',
'pylint',
'rope>=0.10.5',
'yapf',
@@ -62,7 +62,7 @@
'mccabe': ['mccabe'],
'pycodestyle': ['pycodestyle'],
'pydocstyle': ['pydocstyle>=2.0.0'],
- 'pyflakes': ['pyflakes>=1.6.0'],
+ 'pyflakes': ['pyflakes>=1.6.0,<2.2.0'],
'pylint': ['pylint'],
'rope': ['rope>0.10.5'],
'yapf': ['yapf'],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-language-server-0.31.9/test/plugins/test_hover.py
new/python-language-server-0.31.10/test/plugins/test_hover.py
--- old/python-language-server-0.31.9/test/plugins/test_hover.py
2020-03-18 22:31:14.000000000 +0100
+++ new/python-language-server-0.31.10/test/plugins/test_hover.py
2020-04-19 01:04:20.000000000 +0200
@@ -13,6 +13,45 @@
pass
"""
+NUMPY_DOC = """
+
+import numpy as np
+np.sin
+
+"""
+
+
+def test_numpy_hover():
+ # Over the blank line
+ no_hov_position = {'line': 1, 'character': 0}
+ # Over 'numpy' in import numpy as np
+ numpy_hov_position_1 = {'line': 2, 'character': 8}
+ # Over 'np' in import numpy as np
+ numpy_hov_position_2 = {'line': 2, 'character': 17}
+ # Over 'np' in np.sin
+ numpy_hov_position_3 = {'line': 3, 'character': 1}
+ # Over 'sin' in np.sin
+ numpy_sin_hov_position = {'line': 3, 'character': 4}
+
+ doc = Document(DOC_URI, NUMPY_DOC)
+
+ if LooseVersion(_utils.JEDI_VERSION) >= LooseVersion('0.15.0'):
+ contents = ''
+ assert contents in pyls_hover(doc, no_hov_position)['contents']
+
+ contents = 'NumPy\n=====\n\nProvides\n'
+ assert contents in pyls_hover(doc, numpy_hov_position_1)['contents'][0]
+
+ contents = 'NumPy\n=====\n\nProvides\n'
+ assert contents in pyls_hover(doc, numpy_hov_position_2)['contents'][0]
+
+ contents = 'NumPy\n=====\n\nProvides\n'
+ assert contents in pyls_hover(doc, numpy_hov_position_3)['contents'][0]
+
+ contents = 'Trigonometric sine, element-wise.\n\n'
+ assert contents in pyls_hover(
+ doc, numpy_sin_hov_position)['contents'][0]
+
def test_hover():
# Over 'main' in def main():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-language-server-0.31.9/test/plugins/test_references.py
new/python-language-server-0.31.10/test/plugins/test_references.py
--- old/python-language-server-0.31.9/test/plugins/test_references.py
2020-03-18 22:31:14.000000000 +0100
+++ new/python-language-server-0.31.10/test/plugins/test_references.py
2020-04-19 01:04:20.000000000 +0200
@@ -73,7 +73,7 @@
doc2 = Document(doc2_uri)
refs = pyls_references(doc2, position)
- assert len(refs) == 1
+ assert len(refs) >= 1
assert refs[0]['range']['start'] == {'line': 4, 'character': 7}
assert refs[0]['range']['end'] == {'line': 4, 'character': 19}