1
0

Compare commits

..

11 Commits

Author SHA256 Message Date
0390bc17b0 Accepting request 1281204 from devel:languages:python
- Bump flake8 dependencies
- Remove PyQt5 test dependency and skip the one test using it (forwarded request 1281203 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/1281204
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-lsp-server?expand=0&rev=41
2025-05-30 12:38:35 +00:00
2abf218707 - Bump flake8 dependencies
- Remove PyQt5 test dependency and skip the one test using it

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-server?expand=0&rev=77
2025-05-29 19:08:32 +00:00
5c4f378a18 Accepting request 1273177 from devel:languages:python
- update to 1.12.2:
  * PR 608 - Fix putting `extra_paths` in front of `sys.path`

OBS-URL: https://build.opensuse.org/request/show/1273177
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-lsp-server?expand=0&rev=40
2025-04-29 14:40:11 +00:00
f867b85623 - update to 1.12.2:
* PR 608 - Fix putting `extra_paths` in front of `sys.path`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-server?expand=0&rev=75
2025-04-28 14:35:42 +00:00
e4193bae85 Accepting request 1244499 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1244499
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-lsp-server?expand=0&rev=39
2025-02-09 19:08:05 +00:00
9ac4376355 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-server?expand=0&rev=73 2025-02-09 14:57:43 +00:00
3427d9fcfd - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-server?expand=0&rev=72
2025-02-09 14:47:50 +00:00
693a096749 Accepting request 1233320 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1233320
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-lsp-server?expand=0&rev=38
2024-12-26 11:24:27 +00:00
def90ee4a5 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-server?expand=0&rev=70
2024-12-25 10:24:30 +00:00
f85c74a1d8 Accepting request 1225060 from devel:languages:python
- add unpin-autopep8.patch

OBS-URL: https://build.opensuse.org/request/show/1225060
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-lsp-server?expand=0&rev=37
2024-11-19 21:23:19 +00:00
92b02ed8b8 - add unpin-autopep8.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-server?expand=0&rev=68
2024-11-19 10:52:20 +00:00
5 changed files with 84 additions and 17 deletions

View File

@ -1,3 +1,38 @@
-------------------------------------------------------------------
Thu May 29 18:57:12 UTC 2025 - Ben Greiner <code@bnavigator.de>
- 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 <dmueller@suse.com>
- 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 <code@bnavigator.de>
- 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 <code@bnavigator.de>
- 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 <dmueller@suse.com>
- add unpin-autopep8.patch
-------------------------------------------------------------------
Sun Sep 8 16:08:18 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-python-lsp-server
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,14 +17,14 @@
%{?sle15_python_module_pythons}
Name: python-python-lsp-server
Version: 1.12.0
Version: 1.12.2
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.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 61.2}
@ -33,9 +33,7 @@ BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros >= 20210628
# SECTION test requirements
BuildRequires: %{python_module docstring-to-markdown}
BuildRequires: %{python_module PyQt5}
BuildRequires: %{python_module autopep8 >= 2.0.4 with %python-autopep8 < 2.1.0}
BuildRequires: %{python_module flake8 >= 7.1 with %python-flake8 < 8}
BuildRequires: %{python_module autopep8 >= 2.0.4}
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}
@ -51,6 +49,11 @@ BuildRequires: %{python_module rope >= 1.2.0}
BuildRequires: %{python_module ujson >= 3.0.0}
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.13.0 with %python-pycodestyle < 2.14.0}
BuildRequires: %{python_module pyflakes >= 3.3.0 with %python-pyflakes < 3.4.0}
# /SECTION
BuildRequires: fdupes
Requires: python-docstring-to-markdown
@ -85,17 +88,18 @@ will be enabled:
%package all
Summary: The python-lsp-server[all] extra
# Note: check flake8 pins as well
Requires: python-autopep8 >= 2.0.4
Requires: python-rope >= 1.2.0
Requires: python-yapf >= 0.33
Requires: (python-autopep8 >= 2.0.4 with python-autopep8 < 2.1.0)
Requires: (python-flake8 >= 7.1 with python-flake8 < 8)
Requires: (python-mccabe >= 0.7.0 with python-mccabe < 0.8.0)
Requires: (python-pycodestyle >= 2.12.0 with python-pycodestyle < 2.13.0)
Requires: (python-pydocstyle >= 6.3.0 with python-pydocstyle < 6.4.0)
Requires: (python-pyflakes >= 3.2.0 with python-pyflakes < 3.3.0)
Requires: (python-pycodestyle >= 2.13.0 with python-pycodestyle < 2.14.0)
Requires: (python-pylint >= 3.1 with python-pylint < 4)
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-pydocstyle >= 6.3.0 with python-pydocstyle < 6.4.0)
Requires: (python-pyflakes >= 3.3.0 with python-pyflakes < 3.4.0)
%description all
Python Language Server for the Language Server Protocol
@ -107,6 +111,11 @@ python-lsp-server[all] extra requirement
%autosetup -p1 -n python_lsp_server-%{version}
# Remove pytest addopts
sed -i '/addopts/d' pyproject.toml
# see flake8 comment above
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.13.0,<2.14.0/' \
-e 's/pyflakes>=3.2.0,<3.3.0/pyflakes>=3.3.0,<3.4.0/'
%build
%pyproject_wheel
@ -117,7 +126,8 @@ sed -i '/addopts/d' pyproject.toml
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
# PyQt5 not maintained anymore. Reenable when upstream moves to PyQt6
%pytest -k "not test_pyqt_completion"
%post
%python_install_alternative pylsp

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b6a336f128da03bd9bac1e61c3acca6e84242b8b31055a1ccf49d83df9dc053b
size 114328

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fea039a36b3132774d0f803671184cf7dde0c688e7b924f23a6359a66094126d
size 115054

22
unpin-autopep8.patch Normal file
View File

@ -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"]