New package: python3-lsp-server-1.4.1

Substitute for python3-language-server

Fixes #34192
This commit is contained in:
Cameron Nemo 2022-04-02 11:53:38 -07:00 committed by Leah Neukirchen
parent d180ad387a
commit 3144418dea
4 changed files with 41 additions and 67 deletions

View file

@ -0,0 +1 @@
python3-lsp-server

View file

@ -1,37 +0,0 @@
https://github.com/palantir/python-language-server/pull/901
From: bnavigator <code@bnavigator.de>
Date: Tue, 5 Jan 2021 01:17:33 +0100
Subject: [PATCH] bump jedi compatibility: compare to Path-like object
---
pyls/plugins/symbols.py | 2 +-
setup.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyls/plugins/symbols.py b/pyls/plugins/symbols.py
index 6468dd83..69a09fe9 100644
--- a/pyls/plugins/symbols.py
+++ b/pyls/plugins/symbols.py
@@ -37,7 +37,7 @@ def pyls_document_symbols(config, document):
not sym_full_name.startswith('__main__')):
continue
- if _include_def(d) and document.path == d.module_path:
+ if _include_def(d) and os.path.samefile(document.path, d.module_path):
tuple_range = _tuple_range(d)
if tuple_range in exclude:
continue
diff --git a/setup.py b/setup.py
index 12782990..99d2b312 100755
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@
'configparser; python_version<"3.0"',
'future>=0.14.0; python_version<"3"',
'backports.functools_lru_cache; python_version<"3.2"',
- 'jedi>=0.17.2,<0.18.0',
+ 'jedi>=0.17.2,<0.19.0',
'python-jsonrpc-server>=0.4.0',
'pluggy',
'ujson<=2.0.3 ; platform_system!="Windows" and python_version<"3.0"',

View file

@ -1,30 +0,0 @@
# Template file for 'python3-language-server'
pkgname=python3-language-server
version=0.36.2
revision=1
wrksrc="${pkgname/3}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-jedi python3-pluggy python3-jsonrpc-server python3-ultrajson
python3-setuptools"
checkdepends="${depends} autopep8 python3-coverage python3-flaky python3-matplotlib
python3-mccabe python3-mock python3-numpy python3-pandas python3-pycodestyle
python3-PyQt5 python3-pyflakes python3-pylint python3-pytest python3-pytest-cov
python3-yapf"
short_desc="Python implementation of the Language Server Protocol"
maintainer="k4leg <d0xi@inbox.ru>"
license="MIT"
homepage="https://github.com/palantir/python-language-server"
distfiles="${PYPI_SITE}/p/${pkgname/3}/${pkgname/3}-${version}.tar.gz"
checksum=9984c84a67ee2c5102c8e703215f407fcfa5e62b0ae86c9572d0ada8c4b417b0
# Needs unpackaged rope and versioneer
# https://github.com/palantir/python-language-server/blob/develop/setup.py#L51
make_check=no
post_patch() {
vsed -i setup.py -e 's/\bujson<=1.35\b/ujson/'
}
post_install() {
vlicense LICENSE
}

View file

@ -0,0 +1,40 @@
# Template file for 'python3-lsp-server'
pkgname=python3-lsp-server
version=1.4.1
revision=1
wrksrc="${pkgname/3}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel"
depends="python3-jedi python3-pluggy python3-lsp-jsonrpc python3-ultrajson
python3-setuptools"
checkdepends="${depends} autopep8 python3-coverage python3-flaky python3-matplotlib
python3-mccabe python3-mock python3-numpy python3-pandas python3-pycodestyle
python3-PyQt5 python3-pyflakes python3-pylint python3-pytest python3-pytest-cov
python3-yapf flake8"
short_desc="Python implementation of the Language Server Protocol"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="MIT"
homepage="https://github.com/python-lsp/python-lsp-server"
distfiles="${PYPI_SITE}/p/${pkgname/3}/${pkgname/3}-${version}.tar.gz"
checksum=be7f83298af9f0951a93972cafc9db04fd7cf5c05f20812515275f0ba70e342f
do_check() {
python3 -m pytest \
--ignore=test/plugins/test_completion.py \
--ignore=test/plugins/test_pydocstyle_lint.py \
--ignore=test/plugins/test_rope_rename.py
}
post_install() {
vlicense LICENSE
ln -s pylsp "${DESTDIR}/usr/bin/pyls"
}
python3-language-server_package() {
build_style=meta
depends="python3-lsp-server>=${version}_${revision}"
short_desc+=" (transitional dummy package)"
pkg_install() {
vmove usr/bin/pyls
}
}