aboutsummaryrefslogtreecommitdiff
path: root/python/python3-lsp-server/python3-lsp-server.SlackBuild
diff options
context:
space:
mode:
authorisaackwy <isaacyu@protonmail.com>2023-12-30 12:37:31 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-12-31 09:14:03 +0700
commit837f27a68cce7a4b2098e84181f70e51aa79b1f3 (patch)
tree566d6cb0a2add108933643debf354d6dc213ef9d /python/python3-lsp-server/python3-lsp-server.SlackBuild
parent5147fe7ad88a426c89617e13d242f2fe9a95bb24 (diff)
python/python3-lsp-server: Update for 1.6.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-lsp-server/python3-lsp-server.SlackBuild')
-rw-r--r--python/python3-lsp-server/python3-lsp-server.SlackBuild23
1 files changed, 14 insertions, 9 deletions
diff --git a/python/python3-lsp-server/python3-lsp-server.SlackBuild b/python/python3-lsp-server/python3-lsp-server.SlackBuild
index 7344275df9..d0cc6752a3 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 Isaac Yu <isaacyu@protonmail.com>
+# Copyright 2023-2024 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.4.1}
+VERSION=${VERSION:-1.6.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -79,13 +79,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 setup.cfg
-sed -i "s|flake8>=4.0.0,<4.1.0|flake8>=4.0.0|" -i setup.cfg
-sed -i "s|mccabe>=0.6.0,<0.7.0|mccabe>=0.6.0|" -i setup.cfg
-sed -i "s|pycodestyle>=2.8.0,<2.9.0|pycodestyle>=2.8.0|" -i setup.cfg
-sed -i "s|pyflakes>=2.4.0,<2.5.0|pyflakes>=2.4.0|" -i setup.cfg
-
-python3 setup.py install --root=$PKG
+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
+export PYTHONPATH=/opt/python3.9/site-packages/
+
+python3 -m build --no-isolation
+python3 -m installer -d "$PKG" dist/*.whl
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true