diff --git a/python-python-lsp-server.changes b/python-python-lsp-server.changes index e5e37bc..37ea5ba 100644 --- a/python-python-lsp-server.changes +++ b/python-python-lsp-server.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-python-lsp-server.spec b/python-python-lsp-server.spec index a1d7b4d..6d34862 100644 --- a/python-python-lsp-server.spec +++ b/python-python-lsp-server.spec @@ -25,6 +25,7 @@ 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} @@ -34,7 +35,7 @@ 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 autopep8 >= 2.0.4} BuildRequires: %{python_module flake8 >= 7.1 with %python-flake8 < 8} BuildRequires: %{python_module flaky} BuildRequires: %{python_module importlib_metadata > 4.8.3 if %python-base < 3.10} @@ -87,8 +88,8 @@ will be enabled: Summary: The python-lsp-server[all] extra # Note: check flake8 pins as well Requires: python-rope >= 1.2.0 +Requires: python-autopep8 >= 2.0.4 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) 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"]