Skip to content

Commit

Permalink
Update python-python-lsp-server to version 1.7.2 / rev 22 via SR 1085800
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1085800
by user bnavigator + dimstar_suse
- Unpin yapf
  * Add python-lsp-server-pr377-unpin-yapf.patch
  * gh#python-lsp/python-lsp-server#377
  • Loading branch information
bnavigator authored and bmwiedemann committed May 10, 2023
1 parent d5c9485 commit a0b2878
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 6 deletions.
Binary file modified packages/p/python-python-lsp-server/.files
Binary file not shown.
10 changes: 10 additions & 0 deletions packages/p/python-python-lsp-server/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,14 @@
<comment></comment>
<requestid>1083326</requestid>
</revision>
<revision rev="22" vrev="2">
<srcmd5>5d3805dc7ae90425119bb6d742321cc0</srcmd5>
<version>1.7.2</version>
<time>1683728291</time>
<user>dimstar_suse</user>
<comment>- Unpin yapf
* Add python-lsp-server-pr377-unpin-yapf.patch
* gh#python-lsp/python-lsp-server#377</comment>
<requestid>1085800</requestid>
</revision>
</revisionlist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From b2df1b92559a07defed27f26a364acc5a6837fce Mon Sep 17 00:00:00 2001
From: Ben Greiner <code@bnavigator.de>
Date: Tue, 9 May 2023 22:02:43 +0200
Subject: [PATCH] Update yapf requirement

---
pyproject.toml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 1dc01fa..7e62d24 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -35,8 +35,7 @@ all = [
"pyflakes>=2.5.0,<3.1.0",
"pylint>=2.5.0,<3",
"rope>1.2.0",
- "yapf<=0.32.0",
- "toml",
+ "yapf>=0.33.0",
"whatthepatch>=1.0.2,<2.0.0"
]
autopep8 = ["autopep8>=1.6.0,<2.1.0"]
@@ -47,7 +46,7 @@ pydocstyle = ["pydocstyle>=6.3.0,<6.4.0"]
pyflakes = ["pyflakes>=2.5.0,<3.1.0"]
pylint = ["pylint>=2.5.0,<3"]
rope = ["rope>1.2.0"]
-yapf = ["yapf<=0.32.0", "whatthepatch>=1.0.2,<2.0.0", "toml"]
+yapf = ["yapf>=0.33.0", "whatthepatch>=1.0.2,<2.0.0"]
websockets = ["websockets>=10.3"]
test = [
"pylint>=2.5.0,<3",
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 9 20:07:36 UTC 2023 - Ben Greiner <code@bnavigator.de>

- 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 <code@bnavigator.de>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ 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
# PATCH-FIX-UPSTREAM python-lsp-server-pr377-unpin-yapf.patch gh#python-lsp/python-lsp-server#377
Patch0: python-lsp-server-pr377-unpin-yapf.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 61.2}
Expand All @@ -45,11 +47,9 @@ BuildRequires: %{python_module pylint >= 2.5.0 with %python-pylint < 3}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-lsp-jsonrpc >= 1.0.0}
BuildRequires: %{python_module rope >= 1.2.0}
# gh#python-lsp/python-lsp-server#346
BuildRequires: %{python_module toml if %python-yapf <= 0.32.0 else %python-tomli}
BuildRequires: %{python_module ujson >= 3.0.0}
BuildRequires: %{python_module whatthepatch >= 1.0.2 with %python-whatthepatch < 2}
BuildRequires: %{python_module yapf < 0.32.1}
BuildRequires: %{python_module yapf >= 0.33}
# /SECTION
BuildRequires: fdupes
Requires: python-docstring-to-markdown
Expand All @@ -65,9 +65,7 @@ Conflicts: python-pydocstyle >= 6.4.0
Suggests: python-pylint >= 2.5.0
Conflicts: python-pylint >= 3
Suggests: python-rope >= 1.2.0
Suggests: python-yapf
Conflicts: python-yapf >= 0.32.1
Suggests: python-toml
Suggests: python-yapf >= 0.33
Suggests: python-whatthepatch >= 1.0.2
Conflicts: python-whatthepatch >= 2
# SECTION flake8 pins
Expand Down

0 comments on commit a0b2878

Please sign in to comment.