diff options
| author | Isaac Yu <isaacyu@protonmail.com> | 2025-07-04 21:45:22 -0700 | 
|---|---|---|
| committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2025-07-10 10:05:30 +0700 | 
| commit | 36b7f239f7053716e980bfcebf10ccd43a5823ff (patch) | |
| tree | d86af5f46cae2d35d65201d20a15250fa5c59881 /python/python3-lsp-server/python3-lsp-server.SlackBuild | |
| parent | 353aff177272f9199bf05c52079c3de2b8ea0024 (diff) | |
python/python3-lsp-server: Update for 1.9.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.SlackBuild | 26 | 
1 files changed, 15 insertions, 11 deletions
diff --git a/python/python3-lsp-server/python3-lsp-server.SlackBuild b/python/python3-lsp-server/python3-lsp-server.SlackBuild index 4b77d10462..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,8 +25,8 @@  cd $(dirname $0) ; CWD=$(pwd)  PRGNAM=python3-lsp-server -VERSION=${VERSION:-1.6.0} -BUILD=${BUILD:-2} +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.0.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/  | 
