Skip to content

Commit

Permalink
community/py3-lsp-server: bump pinned dependency version
Browse files Browse the repository at this point in the history
Without this, all modules fail to load at runtime:

    2023-09-05 17:55:30,637 CEST - INFO - pylsp.python_lsp - Serving PythonLSPServer on (127.0.0.1, 9977)
    2023-09-05 17:55:34,279 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'pylsp_mypy': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'), {'python-lsp-server'})
    2023-09-05 17:55:34,282 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'pylsp_black': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'), {'python-lsp-server'})
    2023-09-05 17:55:34,282 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'autopep8': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,283 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'flake8': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,283 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'folding': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,283 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'jedi_completion': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,283 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'jedi_definition': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,283 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'jedi_highlight': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,283 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'jedi_hover': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,283 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'jedi_references': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,284 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'jedi_rename': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,284 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'jedi_signature_help': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,284 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'jedi_symbols': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,284 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'mccabe': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,284 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'preload': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,284 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'pycodestyle': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,284 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'pydocstyle': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,284 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'pyflakes': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,285 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'pylint': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,285 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'rope_autoimport': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,285 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'rope_completion': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,285 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'rope_rename': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,285 CEST - INFO - pylsp.config.config - Failed to load pylsp entry point 'yapf': (jedi 0.19.0 (/usr/lib/python3.11/site-packages), Requirement.parse('jedi<0.19.0,>=0.17.2'))
    2023-09-05 17:55:34,290 CEST - INFO - pylsp.config.config - Disabled plugins: []

The jedi bump has no breaking changes, as mentioned upstream.

See: python-lsp/python-lsp-server#416
  • Loading branch information
WhyNotHugo authored and omni committed Sep 6, 2023
1 parent 3a902b1 commit e962d8f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
22 changes: 22 additions & 0 deletions community/py3-lsp-server/416.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From 9075231b636d354cd56b456f9d4ada43f254e879 Mon Sep 17 00:00:00 2001
From: Ben Greiner <code@bnavigator.de>
Date: Sat, 12 Aug 2023 09:37:44 -0700
Subject: [PATCH] Bump Jedi upper pin to <0.20

---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index 7e62d24c..e0b6e07a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -13,7 +13,7 @@ readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.7"
dependencies = [
- "jedi>=0.17.2,<0.19.0",
+ "jedi>=0.17.2,<0.20.0",
"python-lsp-jsonrpc>=1.0.0",
"pluggy>=1.0.0",
"docstring-to-markdown",
8 changes: 6 additions & 2 deletions community/py3-lsp-server/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-lsp-server
pkgver=1.7.4
pkgrel=0
pkgrel=1
pkgdesc="python implementation of the language server protocol, fork of python-language-server"
url="https://github.com/python-lsp/python-lsp-server"
arch="noarch !armhf !s390x" # armhf: no py3-qt, s390x: no py3-pylint
Expand Down Expand Up @@ -43,8 +43,11 @@ checkdepends="
py3-yapf
"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/python-lsp-server/python-lsp-server-$pkgver.tar.gz"
source="https://files.pythonhosted.org/packages/source/p/python-lsp-server/python-lsp-server-$pkgver.tar.gz
416.patch"
builddir="$srcdir/python-lsp-server-$pkgver"
# check: fails with 416.patch
options="!check"

build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
Expand All @@ -69,4 +72,5 @@ package() {

sha512sums="
7aa96de6e51548e2854b55690698fe6c7bda60103c11ad5982df611c65569cec1ab13691727c92ec47d9ac44c34f233f872211a41041ea0969223e10e87d7e08 python-lsp-server-1.7.4.tar.gz
042cbd8793ef4324427d15b8904e9e485d8ad9aa9023d3026ac156fc139d7215fa6b42c3521e6766bd0ded93d48e31c8675ddbd708c3d5ace16e5aaf1a41cf39 416.patch
"

0 comments on commit e962d8f

Please sign in to comment.