From 04320b3ab61f3efc9a4d90771051b86baba16603ed475757fefbfee43b6ec32e Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sat, 20 Dec 2025 15:32:42 +0000 Subject: [PATCH 1/2] - Update to 1.14.0 * Add `pylsp.signature.include_docstring` to hide docstring in signatures. * Add support for Pylint 4. * Fix support for Python 3.14. - Drop allow-pylint4.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-server?expand=0&rev=83 --- .gitattributes | 23 ++ .gitignore | 1 + allow-pylint4.patch | 37 +++ python-python-lsp-server.changes | 388 +++++++++++++++++++++++++++++++ python-python-lsp-server.spec | 170 ++++++++++++++ python_lsp_server-1.13.0.tar.gz | 3 + python_lsp_server-1.13.1.tar.gz | 3 + python_lsp_server-1.14.0.tar.gz | 3 + unpin-autopep8.patch | 22 ++ 9 files changed, 650 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 allow-pylint4.patch create mode 100644 python-python-lsp-server.changes create mode 100644 python-python-lsp-server.spec create mode 100644 python_lsp_server-1.13.0.tar.gz create mode 100644 python_lsp_server-1.13.1.tar.gz create mode 100644 python_lsp_server-1.14.0.tar.gz create mode 100644 unpin-autopep8.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/allow-pylint4.patch b/allow-pylint4.patch new file mode 100644 index 0000000..2ab47ee --- /dev/null +++ b/allow-pylint4.patch @@ -0,0 +1,37 @@ +From d20ec4adb5f2ebe9eb8075b5933ea3190f6e6665 Mon Sep 17 00:00:00 2001 +From: nkrapp +Date: Tue, 18 Nov 2025 11:09:38 +0100 +Subject: [PATCH] bump allowed pylint to <4.1 + +--- + pyproject.toml | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 0be4035c..8fe9c574 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -35,7 +35,7 @@ all = [ + "pycodestyle>=2.12.0,<2.13.0", + "pydocstyle>=6.3.0,<6.4.0", + "pyflakes>=3.2.0,<3.3.0", +- "pylint>=3.1,<4", ++ "pylint>=3.1,<4.1.0", + "rope>=1.11.0", + "yapf>=0.33.0", + "whatthepatch>=1.0.2,<2.0.0" +@@ -46,12 +46,12 @@ mccabe = ["mccabe>=0.7.0,<0.8.0"] + pycodestyle = ["pycodestyle>=2.12.0,<2.13.0"] + pydocstyle = ["pydocstyle>=6.3.0,<6.4.0"] + pyflakes = ["pyflakes>=3.2.0,<3.3.0"] +-pylint = ["pylint>=3.1,<4"] ++pylint = ["pylint>=3.1,<4.1.0"] + rope = ["rope>=1.11.0"] + yapf = ["yapf>=0.33.0", "whatthepatch>=1.0.2,<2.0.0"] + websockets = ["websockets>=10.3"] + test = [ +- "pylint>=3.1,<4", ++ "pylint>=3.1,<4.1.0", + "pytest", + "pytest-cov", + "coverage", diff --git a/python-python-lsp-server.changes b/python-python-lsp-server.changes new file mode 100644 index 0000000..b92798d --- /dev/null +++ b/python-python-lsp-server.changes @@ -0,0 +1,388 @@ +------------------------------------------------------------------- +Sat Dec 20 12:42:54 UTC 2025 - Ben Greiner + +- Update to 1.14.0 + * Add `pylsp.signature.include_docstring` to hide docstring in + signatures. + * Add support for Pylint 4. + * Fix support for Python 3.14. +- Drop allow-pylint4.patch + +------------------------------------------------------------------- +Mon Nov 17 09:32:52 UTC 2025 - Nico Krapp + +- Update to 1.13.1 + * Use PyQt6 for testing + * Expose a shutdown hook + * Copy LAST_JEDI_COMPLETIONS to cell document so that completionItem/resolve + will work +- add allow-pylint4.patch to allow new pylint version +- enable PyQt test again as upstream moved to PyQt6 +- disable test that hangs + (see: https://github.com/python-lsp/python-lsp-server/issues/679) +- use libalternatives on newer releases + +------------------------------------------------------------------- +Wed Jul 23 08:29:46 UTC 2025 - Ben Greiner + +- Update to 1.13.0 + * Format signatures in docstrings. + * Add support for type definition. + * Send websocket payload using a queue. + * Fix getting symbols with inline comments that include the + import word. + * Drop support for Python 3.8 + +------------------------------------------------------------------- +Thu May 29 18:57:12 UTC 2025 - Ben Greiner + +- Bump flake8 dependencies +- Remove PyQt5 test dependency and skip the one test using it + +------------------------------------------------------------------- +Mon Apr 28 14:35:30 UTC 2025 - Dirk Müller + +- update to 1.12.2: + * PR 608 - Fix putting `extra_paths` in front of `sys.path` + +------------------------------------------------------------------- +Sun Feb 9 14:02:20 UTC 2025 - Ben Greiner + +- Update to 1.12.1 + * Fixes compatibility with Python 3.13 in the test suite. + * Handles correctly a null value for ropeFolder in the Rope + configuration. +- Drop pylsp-issues-602-605.patch + +------------------------------------------------------------------- +Wed Dec 25 09:59:30 UTC 2024 - Ben Greiner + +- Add pylsp-issues-602-605.patch + * Changed fuzzy jedi completion + gh#python-lsp/python-lsp-server#602 + * Disable DEBUG logging for tests + gh#python-lsp/python-lsp-server#605 + +------------------------------------------------------------------- +Tue Nov 19 10:52:11 UTC 2024 - Dirk Müller + +- add unpin-autopep8.patch + +------------------------------------------------------------------- +Sun Sep 8 16:08:18 UTC 2024 - Ben Greiner + +- Add [all] extra subpackage + +------------------------------------------------------------------- +Thu Aug 29 13:42:06 UTC 2024 - Ben Greiner + +- Update to 1.12.0 + * Add support for window/logMessage. + * Add version support to workspace/publishDiagnostics. + * Add extendSelect option to flake8 plugin. + * Allow Jedi's extra_paths to be placed in front of sys.path. + * Bump flake8 to 7.1 + +------------------------------------------------------------------- +Thu Jul 11 10:39:17 UTC 2024 - Ben Greiner + +- Bump flake8 to 7.1 and it's pinning pycodestyle to 2.12.0 + +------------------------------------------------------------------- +Mon Apr 1 11:03:05 UTC 2024 - Ben Greiner + +- Update to 1.11.0 + * Remove the rope_rename plugin. People that were using it need + to install the pylsp-rope third-party plugin instead. + * Add support for Pylint 3.1 +- Drop pylsp-pr543-pylint3.1.patch + +------------------------------------------------------------------- +Fri Mar 29 10:50:31 UTC 2024 - Ben Greiner + +- Add pylsp-pr543-pylint3.1.patch + gh#python-lsp/python-lsp-server#531 + +------------------------------------------------------------------- +Sat Mar 16 12:52:02 UTC 2024 - Dirk Müller + +- update to 1.10.1: + * Issue 529 - Autoimports: sqlite3.OperationalError: database + is locked (PR 530 by @last-partizan) + +------------------------------------------------------------------- +Sat Mar 2 10:33:14 UTC 2024 - Ben Greiner + +- Update to 1.10.0 + * Add support for notebook document completions. + * Add support for flake8 version 7. +- Drop python-lsp-server-pr510-flake8-7.patch + +------------------------------------------------------------------- +Fri Jan 5 18:37:26 UTC 2024 - Ben Greiner + +- Bump to flake8 v7 gh#python-lsp/python-lsp-server#510 + * python-lsp-server-pr510-flake8-7.patch + +------------------------------------------------------------------- +Fri Nov 24 20:13:48 UTC 2023 - Ben Greiner + +- Update to 1.9.0 + * Support initializationOptions to configure the server. + * Add code completions to the autoimport plugin. + * Add support for Pylint 3. + * Pass extendIgnore argument to Flake8. + * Add new pylsp_workspace_configuration_changed hookspec so that + plugins can react when client sends a configuration change to + the server. + +------------------------------------------------------------------- +Thu Nov 9 21:21:37 UTC 2023 - Giacomo Comes + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Wed Nov 1 16:06:21 UTC 2023 - Ben Greiner + +- Fix runtime requirements + +------------------------------------------------------------------- +Sun Oct 29 13:15:28 UTC 2023 - Ben Greiner + +- Update to 1.8.2 + * Fixes the notebook document selector property not being a list in the server capabilities. +- Release 1.8.1 + * Fixes go-to-definition for Numpy methods. + * Allows Jedi to perform multiple hops for "go to definition". + * Fixes an error with Flake8 when deleting lines. +- Raise pylint upper pin to 3.1 + +------------------------------------------------------------------- +Wed Sep 13 07:56:57 UTC 2023 - Ben Greiner + +- Update to 1.8.0 + * Add support for notebooks and make go-to-definition work for + them. + * Add support for Pyflakes 3.1, Pycodestyle 2.11 and Jedi 0.19. + * Drop support for Python 3.7. +- Drop patches upstreeam + * Drop python-lsp-server-pr415-flake8deps.patch + * Drop python-lsp-server-pr416-jedi-0.19.patch + +------------------------------------------------------------------- +Sat Aug 12 18:01:40 UTC 2023 - Ben Greiner + +- Add python-lsp-server-pr415-flake8deps.patch + gh#python-lsp/python-lsp-server#415 +- Add python-lsp-server-pr416-jedi-0.19.patch + gh#python-lsp/python-lsp-server#416 + +------------------------------------------------------------------- +Sat Jul 1 13:38:40 UTC 2023 - Ben Greiner + +- Update to 1.7.4 + * Fixes token initialization when reporting progress. + * Resolves home dir references in Jedi environment path. + * Fixes Pylint hanging on files with many errors. +- Release 1.7.3 + * Adds support for Yapf 0.33 + (upstreamed python-lsp-server-pr377-unpin-yapf.patch) + * Fix an empty current working directory value for Pylint + +------------------------------------------------------------------- +Tue May 9 20:07:36 UTC 2023 - Ben Greiner + +- Unpin yapf + * Add python-lsp-server-pr377-unpin-yapf.patch + * gh#python-lsp/python-lsp-server#377 + +------------------------------------------------------------------- +Thu Apr 27 15:15:13 UTC 2023 - Ben Greiner + +- Update to 1.7.2 + * Initializes LSP progress token before using it and remove + progress for sync plugins. + * Adds support for pydocstyle 6.3 + * Adds support for autopep8 2 +- Drop pylsp-pr340-pydocstyle-6.3.patch +- Drop pylsp-pr345-autopep8-2.patch + +------------------------------------------------------------------- +Wed Jan 25 16:28:20 UTC 2023 - Ben Greiner + +- Allow 1.6.0 <= autopep8 < 2.1 + * Add pylsp-pr345-autopep8-2.patch + * gh#python-lsp/python-lsp-server#345 +- Fix yapf requirement for toml + * gh#python-lsp/python-lsp-server#346 + +------------------------------------------------------------------- +Thu Jan 19 10:10:31 UTC 2023 - Ben Greiner + +- Update to 1.7.1 + * Fixes an error with the Pydocstyle 6.2.0+ + * Includes missing Pylint "information" category. + * Improves Jedi file completions for directories. +- Drop python-lsp-server-pr327-sys-executable.patch +- Add pylsp-pr340-pydocstyle-6.3.patch + gh#python-lsp/python-lsp-server#340 + +------------------------------------------------------------------- +Fri Dec 30 09:46:15 UTC 2022 - Ben Greiner + +- Update to 1.7.0 + * Add a new plugin to provide autoimport functionality (disabled + by default). + * Add progress reporting. + * Make jedi_definition plugin follow definitions to pyi files. + * Add support for flake8 version 6. + * Add support for Yapf ignore patterns. + * Add mccabe setting to flake8 plugin. +- Drop python-lsp-server-pr316-flake8v6.patch upstreamed + * gh#python-lsp/python-lsp-server#316 +- Add python-lsp-server-pr327-sys-executable.patch + * gh#python-lsp/python-lsp-server#327 + +------------------------------------------------------------------- +Mon Dec 19 21:37:19 UTC 2022 - Ben Greiner + +- add python-lsp-server-pr316-flake8v6.patch + gh#python-lsp/python-lsp-server#316 + +------------------------------------------------------------------- +Sun Nov 6 15:10:39 UTC 2022 - Ben Greiner + +- Update to 1.6.0 + * Migrate to MarkupContent and convert docstrings to Markdown by + default. + * Add support for flake8 version 5. + * Add function objects to Jedi completions. + * Don't include class and functions objects by default in Jedi + completions. +- Drop patches + * python-lsp-server-advanceflake8.patch + * python-lsp-server-pylint-syntax-error.patch + +------------------------------------------------------------------- +Sat Aug 27 09:41:07 UTC 2022 - Ben Greiner + +- Add python-lsp-server-advanceflake8.patch + * gh#python-lsp/python-lsp-server#257 +- Add python-lsp-server-pylint-syntax-error.patch + * gh#python-lsp/python-lsp-server#258 + +------------------------------------------------------------------- +Mon Jul 25 12:52:33 UTC 2022 - Ben Greiner + +- Update to 1.5.0 + * Add DiagnosticTag tags for Pylint, Pycodestyle, and Flake8 + plugins. + * Add support to connect to the server through websockets. + * Allow multiple per-file-ignores for the same pattern in Flake8 + plugin. + * Parse YAPF diffs into TextEdits. + * Add support for LSP formatting options parameter. +- Entry point installation require setuptools 61.2, switch to + PEP517 +- Test suite: flavored alternatives are provided by the %pytest + macro now. Remove extra pylint testbin setup. + +------------------------------------------------------------------- +Sat Apr 9 20:44:49 UTC 2022 - Ben Greiner + +- Update to 1.4.1 + * Fixes Yapf formatting with CRLF line endings. + +------------------------------------------------------------------- +Fri Mar 25 12:44:22 UTC 2022 - Ben Greiner + +- Update to 1.4.0 + * Support pycodestyle indent-size option + * Add DiagnosticTag constants from LSP 3.15 + * Drop support for Python 3.6 + +------------------------------------------------------------------- +Sat Jan 8 21:37:57 UTC 2022 - Benjamin Greiner + +- Provide pylint in correct flavor for test +- Cleanup python36 flavor conditionals + +------------------------------------------------------------------- +Sun Dec 19 18:29:50 UTC 2021 - Ben Greiner + +- Update to 1.3.3 + * Fix error when resolving completion items for Rope +- Drop python-lsp-server-pr133-pylint-python310.patch merged + +------------------------------------------------------------------- +Sat Dec 11 14:46:41 UTC 2021 - Ben Greiner + +- Update to 1.3.2 + * Fix formatting a log message +- Add python-lsp-server-pr133-pylint-python310.patch + +------------------------------------------------------------------- +Fri Nov 26 18:40:47 UTC 2021 - Ben Greiner + +- Update to 1.3.1 + * Fix tests for Jedi 0.18.1 + * Option `jedi_completion.resolve_at_most_labels` was renamed to + `jedi_completion.resolve_at_most` because now it controls how + many labels and snippets will be resolved per request. + * Option `jedi_completion.cache_labels_for` was renamed to + `jedi_completion.cache_for` because now it controls the modules + for which labels and snippets should be cached. + * Update requirements on Pylint, flake8, pycodestyle, pyflakes + and autopep8. +- Drop python-lsp-server-pr102-unpin-flake8.patch + +------------------------------------------------------------------- +Sat Nov 20 19:57:52 UTC 2021 - Ben Greiner + +- Fix pyflakes python-lsp-server-pr102-unpin-flake8.patch + +------------------------------------------------------------------- +Sun Nov 14 18:43:15 UTC 2021 - Ben Greiner + +- Add python-lsp-server-pr102-unpin-flake8.patch with excessive + BR pinning of other optional dependencies + +------------------------------------------------------------------- +Wed Oct 27 13:16:45 UTC 2021 - Ben Greiner + +- Update to version 1.2.4 + * Pin flake8 to be less than version 4. + * Fix a pylint test when PyLsp is not installed. + +------------------------------------------------------------------- +Sun Oct 3 18:50:53 UTC 2021 - Ben Greiner + +- Unpin pylint gh#python-lsp/python-lsp-server#94 + +------------------------------------------------------------------- +Thu Sep 2 12:24:11 UTC 2021 - Ben Greiner + +- Update to version 1.2.2 + * Improves the way we skip symbols imported from other libraries. + * Add a constrain on Pylint (< 2.10) until we figure out how to + support it. +- Reflect the above upper pinning for python-pylint in Suggests + and Conflicts in order to prevent updates on live systems as soon + as pylint is updated in Factory + +------------------------------------------------------------------- +Thu Aug 5 20:18:13 UTC 2021 - Ben Greiner + +- Update to version 1.2.1 + * Implement completion item resolve requests for faster + completions. + * Initialize workspaces from the initialize request. + * Catch errors when getting docstrings on _resolve_completion + +------------------------------------------------------------------- +Tue Jul 13 12:36:35 UTC 2021 - Ben Greiner + +- Initial specfile for version 1.1.0 + * Community maintained replacement for + python-python-language-server (abandoned by upstream). + * Required by spyder diff --git a/python-python-lsp-server.spec b/python-python-lsp-server.spec new file mode 100644 index 0000000..5c32149 --- /dev/null +++ b/python-python-lsp-server.spec @@ -0,0 +1,170 @@ +# +# spec file for package python-python-lsp-server +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + +%{?sle15_python_module_pythons} +Name: python-python-lsp-server +Version: 1.14.0 +Release: 0 +Summary: Python Language Server for the Language Server Protocol +License: MIT +URL: https://github.com/python-lsp/python-lsp-server +Source: https://files.pythonhosted.org/packages/source/p/python-lsp-server/python_lsp_server-%{version}.tar.gz +Patch1: unpin-autopep8.patch +BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 61.2} +BuildRequires: %{python_module setuptools_scm >= 3.4.3} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros >= 20210628 +# SECTION test requirements +BuildRequires: %{python_module autopep8 >= 2.0.4} +BuildRequires: %{python_module PyQt6} +BuildRequires: %{python_module black} +BuildRequires: %{python_module docstring-to-markdown} +BuildRequires: %{python_module flaky} +BuildRequires: %{python_module importlib_metadata > 4.8.3 if %python-base < 3.10} +BuildRequires: %{python_module jedi >= 0.17.2 with %python-jedi < 0.20} +BuildRequires: %{python_module matplotlib} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pandas} +BuildRequires: %{python_module pluggy} +BuildRequires: %{python_module pydocstyle >= 6.3.0 with %python-pydocstyle < 6.4.0} +BuildRequires: %{python_module pylint >= 3.1 with %python-pylint < 4.1} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-lsp-jsonrpc >= 1.1.0 with %python-python-lsp-jsonrpc < 2} +BuildRequires: %{python_module rope >= 1.2.0} +BuildRequires: %{python_module ujson >= 3.0.0} +BuildRequires: %{python_module websockets >= 10.3} +BuildRequires: %{python_module whatthepatch >= 1.0.2 with %python-whatthepatch < 2} +BuildRequires: %{python_module yapf >= 0.33} +# flake8 is special, see below +BuildRequires: %{python_module flake8 >= 7.2 with %python-flake8 < 8} +BuildRequires: %{python_module mccabe >= 0.7.0 with %python-mccabe < 0.8.0} +BuildRequires: %{python_module pycodestyle >= 2.14.0 with %python-pycodestyle < 2.15.0} +BuildRequires: %{python_module pyflakes >= 3.4.0 with %python-pyflakes < 3.5.0} +# /SECTION +BuildRequires: fdupes +Requires: python-black +Requires: python-docstring-to-markdown +Requires: python-pluggy >= 1.0.0 +Requires: python-ujson >= 3.0.0 +Requires: (python-jedi >= 0.17.2 with python-jedi < 0.20) +Requires: (python-python-lsp-jsonrpc >= 1.1.0 with python-python-lsp-jsonrpc < 2) +%if 0%{?python_version_nodots} < 310 +Requires: python-importlib_metadata >= 4.8.3 +%endif +BuildArch: noarch +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif +%python_subpackages + +%description +Python Language Server for the Language Server Protocol + +Fork of the python-language-server project, maintained by +the Spyder IDE team and the community + +If the respective recommended packages are installed, the following optional providers +will be enabled: + +- Rope for Completions and renaming +- Pyflakes linter to detect various errors +- McCabe linter for complexity checking +- pycodestyle linter for style checking +- pydocstyle linter for docstring style checking (disabled by default) +- autopep8 for code formatting +- YAPF for code formatting (preferred over autopep8) + +%package all +Summary: The python-lsp-server[all] extra +Requires: python-autopep8 >= 2.0.4 +Requires: python-python-lsp-server = %{version}-%{release} +Requires: python-rope >= 1.11.0 +Requires: python-yapf >= 0.33 +Requires: (python-pydocstyle >= 6.3.0 with python-pydocstyle < 6.4.0) +Requires: (python-pylint >= 3.1 with python-pylint < 4.1) +Requires: (python-whatthepatch >= 1.0.2 with python-whatthepatch < 2) +# Let's bump this in sync with flake8 and ignore pylsp upstream being still behind +# https://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies +Requires: (python-flake8 >= 7.2 with python-flake8 < 8) +Requires: (python-mccabe >= 0.7.0 with python-mccabe < 0.8.0) +Requires: (python-pycodestyle >= 2.14.0 with python-pycodestyle < 2.15.0) +Requires: (python-pyflakes >= 3.3.0 with python-pyflakes < 3.5.0) + +%description all +Python Language Server for the Language Server Protocol + +This package provides the dependencies for the pip +python-lsp-server[all] extra requirement + +%prep +%autosetup -p1 -n python_lsp_server-%{version} +# Remove pytest addopts +sed -i '/addopts/d' pyproject.toml +# see flake8 comment above, check +# https://github.com/PyCQA/flake8/blob/main/setup.cfg +sed -i pyproject.toml \ + -e 's/flake8>=7.1,<8/flake8>=7.2,<8/' \ + -e 's/pycodestyle>=2.12.0,<2.13.0/pycodestyle>=2.14.0,<2.15.0/' \ + -e 's/pyflakes>=3.2.0,<3.3.0/pyflakes>=3.4.0,<3.5.0/' + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/pylsp +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# test_missing_message is hanging https://github.com/python-lsp/python-lsp-server/issues/679 +%pytest -k "not test_missing_message" + +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative pylsp + +%post +%python_install_alternative pylsp + +%postun +%python_uninstall_alternative pylsp + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/pylsp +%{python_sitelib}/pylsp +%{python_sitelib}/python_lsp_server-%{version}.dist-info + +%files %{python_files all} +%doc README.md +%license LICENSE + +%changelog diff --git a/python_lsp_server-1.13.0.tar.gz b/python_lsp_server-1.13.0.tar.gz new file mode 100644 index 0000000..73cd583 --- /dev/null +++ b/python_lsp_server-1.13.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:378f26b63ecf4c10864de31de5e6da7ad639de9bd60a75d4110fea36fb8d0d69 +size 119147 diff --git a/python_lsp_server-1.13.1.tar.gz b/python_lsp_server-1.13.1.tar.gz new file mode 100644 index 0000000..6fc9b9b --- /dev/null +++ b/python_lsp_server-1.13.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfa3d6bbca3fc3e6d0137b27cd1eabee65783a8d4314c36e1e230c603419afa3 +size 120484 diff --git a/python_lsp_server-1.14.0.tar.gz b/python_lsp_server-1.14.0.tar.gz new file mode 100644 index 0000000..18adda7 --- /dev/null +++ b/python_lsp_server-1.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:509c445fc667f41ffd3191cb7512a497bf7dd76c14ceb1ee2f6c13ebe71f9a6b +size 121536 diff --git a/unpin-autopep8.patch b/unpin-autopep8.patch new file mode 100644 index 0000000..dea707d --- /dev/null +++ b/unpin-autopep8.patch @@ -0,0 +1,22 @@ +Index: python_lsp_server-1.12.0/pyproject.toml +=================================================================== +--- python_lsp_server-1.12.0.orig/pyproject.toml ++++ python_lsp_server-1.12.0/pyproject.toml +@@ -27,7 +27,7 @@ Homepage = "https://github.com/python-ls + + [project.optional-dependencies] + all = [ +- "autopep8>=2.0.4,<2.1.0", ++ "autopep8>=2.0.4", + "flake8>=7.1,<8", + "mccabe>=0.7.0,<0.8.0", + "pycodestyle>=2.12.0,<2.13.0", +@@ -38,7 +38,7 @@ all = [ + "yapf>=0.33.0", + "whatthepatch>=1.0.2,<2.0.0" + ] +-autopep8 = ["autopep8>=2.0.4,<2.1.0"] ++autopep8 = ["autopep8>=2.0.4"] + flake8 = ["flake8>=7.1,<8"] + mccabe = ["mccabe>=0.7.0,<0.8.0"] + pycodestyle = ["pycodestyle>=2.12.0,<2.13.0"] From 376a7c7d651a01b2e54c7bd6909d0e4f33b0a1e270368db178fbf4f406215426 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sat, 20 Dec 2025 16:21:53 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-server?expand=0&rev=84 --- allow-pylint4.patch | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 allow-pylint4.patch diff --git a/allow-pylint4.patch b/allow-pylint4.patch deleted file mode 100644 index 2ab47ee..0000000 --- a/allow-pylint4.patch +++ /dev/null @@ -1,37 +0,0 @@ -From d20ec4adb5f2ebe9eb8075b5933ea3190f6e6665 Mon Sep 17 00:00:00 2001 -From: nkrapp -Date: Tue, 18 Nov 2025 11:09:38 +0100 -Subject: [PATCH] bump allowed pylint to <4.1 - ---- - pyproject.toml | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 0be4035c..8fe9c574 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -35,7 +35,7 @@ all = [ - "pycodestyle>=2.12.0,<2.13.0", - "pydocstyle>=6.3.0,<6.4.0", - "pyflakes>=3.2.0,<3.3.0", -- "pylint>=3.1,<4", -+ "pylint>=3.1,<4.1.0", - "rope>=1.11.0", - "yapf>=0.33.0", - "whatthepatch>=1.0.2,<2.0.0" -@@ -46,12 +46,12 @@ mccabe = ["mccabe>=0.7.0,<0.8.0"] - pycodestyle = ["pycodestyle>=2.12.0,<2.13.0"] - pydocstyle = ["pydocstyle>=6.3.0,<6.4.0"] - pyflakes = ["pyflakes>=3.2.0,<3.3.0"] --pylint = ["pylint>=3.1,<4"] -+pylint = ["pylint>=3.1,<4.1.0"] - rope = ["rope>=1.11.0"] - yapf = ["yapf>=0.33.0", "whatthepatch>=1.0.2,<2.0.0"] - websockets = ["websockets>=10.3"] - test = [ -- "pylint>=3.1,<4", -+ "pylint>=3.1,<4.1.0", - "pytest", - "pytest-cov", - "coverage",