aboutsummaryrefslogtreecommitdiff
path: root/python/python3-lsp-server
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-lsp-server')
-rw-r--r--python/python3-lsp-server/README5
-rw-r--r--python/python3-lsp-server/python3-lsp-server.SlackBuild24
-rw-r--r--python/python3-lsp-server/python3-lsp-server.info6
3 files changed, 20 insertions, 15 deletions
diff --git a/python/python3-lsp-server/README b/python/python3-lsp-server/README
index 39062d7127..1980ac946e 100644
--- a/python/python3-lsp-server/README
+++ b/python/python3-lsp-server/README
@@ -1,5 +1,6 @@
Python LSP Server is a Python 3.7+ implementation of the Language
Server Protocol.
-python3-lsp-server 1.6.0 is the last available version for Slackware
-15.0. Newer versions require python3-rope > 1.2.0.
+python3-lsp-server 1.9.0 is the last available version for Slackware
+15.0. Newer versions require spyder >= 5.5.1, which in return requires
+python3-lsp-black >= 2.0.0.
diff --git a/python/python3-lsp-server/python3-lsp-server.SlackBuild b/python/python3-lsp-server/python3-lsp-server.SlackBuild
index 66d3f22736..132424d63a 100644
--- a/python/python3-lsp-server/python3-lsp-server.SlackBuild
+++ b/python/python3-lsp-server/python3-lsp-server.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python3-lsp-server
-# Copyright 2023-2024 Isaac Yu <isaacyu@protonmail.com>
+# Copyright 2023-2025 Isaac Yu <isaacyu@protonmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-lsp-server
-VERSION=${VERSION:-1.6.0}
+VERSION=${VERSION:-1.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -65,14 +65,18 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Workarounds for spyder
-sed -i "s|autopep8>=1.6.0,<1.7.0|autopep8>=1.6.0|" -i pyproject.toml
-sed -i "s|flake8>=5.0.0,<5.1.0|flake8>=5.1.0|" -i pyproject.toml
-sed -i "s|jedi>=0.17.2,<0.19.0|jedi>=0.17.2|" -i pyproject.toml
-sed -i "s|pycodestyle>=2.9.0,<2.10.0|pycodestyle>=2.9.0|" -i pyproject.toml
-sed -i "s|pyflakes>=2.5.0,<2.6.0|pyflakes>=2.5.0|" -i pyproject.toml
-sed -i "s|pylint>=2.5.0,<3|pylint>=2.5.0|" -i pyproject.toml
-
-# Use newer, non-stock setuptools due to package requirements
+sed -i "s|autopep8>=2.0.4,<2.1.0|autopep8>=2.0.4|" -i pyproject.toml
+sed -i "s|flake8>=6.1.0,<7|flake8>=6.1.0|" -i pyproject.toml
+sed -i "s|pycodestyle>=2.11.0,<2.12.0|pycodestyle>=2.11.0|" -i pyproject.toml
+sed -i "s|pyflakes>=3.1.0,<3.2.0|pyflakes>=3.1.0|" -i pyproject.toml
+sed -i "s|pylint>=2.5.0,<3.1|pylint>=2.5.0|" -i pyproject.toml
+
+# If yapf is still on 0.32.0, take this into account
+# This involves reverting the following pull requests:
+# https://github.com/python-lsp/python-lsp-server/pull/346
+# https://github.com/python-lsp/python-lsp-server/pull/377
+sed -i "s|yapf>=0.33.0|yapf>=0.32.0|" -i pyproject.toml
+
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/site-packages/
diff --git a/python/python3-lsp-server/python3-lsp-server.info b/python/python3-lsp-server/python3-lsp-server.info
index 7fc77d0feb..3469c33017 100644
--- a/python/python3-lsp-server/python3-lsp-server.info
+++ b/python/python3-lsp-server/python3-lsp-server.info
@@ -1,8 +1,8 @@
PRGNAM="python3-lsp-server"
-VERSION="1.6.0"
+VERSION="1.9.0"
HOMEPAGE="https://github.com/python-lsp/python-lsp-server"
-DOWNLOAD="https://files.pythonhosted.org/packages/source/p/python-lsp-server/python-lsp-server-1.6.0.tar.gz"
-MD5SUM="921920b6692d0f00832f63f3edc53c7e"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/p/python-lsp-server/python-lsp-server-1.9.0.tar.gz"
+MD5SUM="308f20e6b03c73369b3fc09bab612dbc"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-docstring-to-markdown python3-jedi python3-lsp-jsonrpc python3-pluggy"