From 383b9c316173eff355e9b0ecd1b18664a13cf32ce17a1b3771f60395f449609c Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sun, 19 Dec 2021 18:49:34 +0000 Subject: [PATCH] Accepting request 941531 from home:bnavigator:branches:devel:languages:python:numeric - Update to 1.3.3 * Fix error when resolving completion items for Rope - Drop python-lsp-server-pr133-pylint-python310.patch merged OBS-URL: https://build.opensuse.org/request/show/941531 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-server?expand=0&rev=14 --- python-lsp-server-1.3.2.tar.gz | 3 --- python-lsp-server-1.3.3.tar.gz | 3 +++ ...on-lsp-server-pr133-pylint-python310.patch | 26 ------------------- python-python-lsp-server.changes | 7 +++++ python-python-lsp-server.spec | 3 +-- 5 files changed, 11 insertions(+), 31 deletions(-) delete mode 100644 python-lsp-server-1.3.2.tar.gz create mode 100644 python-lsp-server-1.3.3.tar.gz delete mode 100644 python-lsp-server-pr133-pylint-python310.patch diff --git a/python-lsp-server-1.3.2.tar.gz b/python-lsp-server-1.3.2.tar.gz deleted file mode 100644 index d645617..0000000 --- a/python-lsp-server-1.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:342b94402d1fdff68ad5bb7c2b51dc9effac89183a0b80b13b3ee2f67544a670 -size 62480 diff --git a/python-lsp-server-1.3.3.tar.gz b/python-lsp-server-1.3.3.tar.gz new file mode 100644 index 0000000..e8f6521 --- /dev/null +++ b/python-lsp-server-1.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b48ccd8b70103522e8a8b9cb9ae1be2b27a5db0dfd661e7e44e6253ebefdc40 +size 62604 diff --git a/python-lsp-server-pr133-pylint-python310.patch b/python-lsp-server-pr133-pylint-python310.patch deleted file mode 100644 index 3ac5e42..0000000 --- a/python-lsp-server-pr133-pylint-python310.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 5ec13561e762db1b333950326672c5bc972a4078 Mon Sep 17 00:00:00 2001 -From: Bruno Pagani -Date: Sun, 5 Dec 2021 19:17:35 +0400 -Subject: [PATCH] Fix test_syntax_error_pylint_py3 for Python 3.10 - -Only the first assert was modified in 2e062830fa45fc849a62e7eef10187e9141f7a00. ---- - test/plugins/test_pylint_lint.py | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/test/plugins/test_pylint_lint.py b/test/plugins/test_pylint_lint.py -index f6fcda8..4e6ed06 100644 ---- a/test/plugins/test_pylint_lint.py -+++ b/test/plugins/test_pylint_lint.py -@@ -84,7 +84,10 @@ def test_syntax_error_pylint_py3(config, workspace): - config.plugin_settings('pylint')['executable'] = 'pylint' - diag = pylint_lint.pylsp_lint(config, doc, True)[0] - -- assert diag['message'].startswith('invalid syntax') -+ if sys.version_info[:2] >= (3, 10): -+ assert diag['message'].count("expected ':'") -+ else: -+ assert diag['message'].startswith('invalid syntax') - # Pylint doesn't give column numbers for invalid syntax. - assert diag['range']['start'] == {'line': 0, 'character': 12} - assert diag['severity'] == lsp.DiagnosticSeverity.Error diff --git a/python-python-lsp-server.changes b/python-python-lsp-server.changes index d29795a..c94b0d8 100644 --- a/python-python-lsp-server.changes +++ b/python-python-lsp-server.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Dec 19 18:29:50 UTC 2021 - Ben Greiner + +- Update to 1.3.3 + * Fix error when resolving completion items for Rope +- Drop python-lsp-server-pr133-pylint-python310.patch merged + ------------------------------------------------------------------- Sat Dec 11 14:46:41 UTC 2021 - Ben Greiner diff --git a/python-python-lsp-server.spec b/python-python-lsp-server.spec index 77861e0..ddc9290 100644 --- a/python-python-lsp-server.spec +++ b/python-python-lsp-server.spec @@ -19,13 +19,12 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-python-lsp-server -Version: 1.3.2 +Version: 1.3.3 Release: 0 Summary: Python Language Server for the Language Server Protocol License: MIT URL: https://github.com/python-lsp/python-lsp-server Source: https://files.pythonhosted.org/packages/source/p/python-lsp-server/python-lsp-server-%{version}.tar.gz -Patch0: https://github.com/python-lsp/python-lsp-server/pull/133.patch#/python-lsp-server-pr133-pylint-python310.patch BuildRequires: %{python_module setuptools >= 39.0.0} BuildRequires: python-rpm-macros >= 20210628 # SECTION test requirements