forked from pool/python-python-lsp-server
Accepting request 991039 from home:bnavigator:branches:devel:languages:python
- 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. OBS-URL: https://build.opensuse.org/request/show/991039 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-server?expand=0&rev=20
This commit is contained in:
parent
00e835842c
commit
d8fde0eeac
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:be7f83298af9f0951a93972cafc9db04fd7cf5c05f20812515275f0ba70e342f
|
|
||||||
size 76416
|
|
3
python-lsp-server-1.5.0.tar.gz
Normal file
3
python-lsp-server-1.5.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e5c094c19925022a27c4068f414b2bb653243f8fb0d768e39735289d7a89380d
|
||||||
|
size 82371
|
@ -1,3 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 25 12:52:33 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- 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 <code@bnavigator.de>
|
Sat Apr 9 20:44:49 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -16,26 +16,26 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python3-%{**}}
|
|
||||||
%define skip_python2 1
|
|
||||||
Name: python-python-lsp-server
|
Name: python-python-lsp-server
|
||||||
Version: 1.4.1
|
Version: 1.5.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python Language Server for the Language Server Protocol
|
Summary: Python Language Server for the Language Server Protocol
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/python-lsp/python-lsp-server
|
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
|
Source: https://files.pythonhosted.org/packages/source/p/python-lsp-server/python-lsp-server-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools >= 44}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools >= 61.2}
|
||||||
BuildRequires: %{python_module setuptools_scm >= 3.4.3}
|
BuildRequires: %{python_module setuptools_scm >= 3.4.3}
|
||||||
BuildRequires: %{python_module tomli}
|
BuildRequires: %{python_module tomli}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: python-rpm-macros >= 20210628
|
BuildRequires: python-rpm-macros >= 20210628
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module jedi >= 0.17.2}
|
|
||||||
BuildRequires: %{python_module PyQt5}
|
BuildRequires: %{python_module PyQt5}
|
||||||
BuildRequires: %{python_module autopep8 >= 1.6.0 with %python-autopep8 < 1.7.0}
|
BuildRequires: %{python_module autopep8 >= 1.6.0 with %python-autopep8 < 1.7.0}
|
||||||
BuildRequires: %{python_module flake8 >= 4.0.0 with %python-flake8 < 4.1.0}
|
BuildRequires: %{python_module flake8 >= 4.0.0 with %python-flake8 < 4.1.0}
|
||||||
BuildRequires: %{python_module flaky}
|
BuildRequires: %{python_module flaky}
|
||||||
|
BuildRequires: %{python_module jedi >= 0.17.2 with %python-jedi < 0.19.0}
|
||||||
BuildRequires: %{python_module matplotlib}
|
BuildRequires: %{python_module matplotlib}
|
||||||
BuildRequires: %{python_module mccabe >= 0.6.0}
|
BuildRequires: %{python_module mccabe >= 0.6.0}
|
||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
@ -49,14 +49,15 @@ BuildRequires: %{python_module pytest}
|
|||||||
BuildRequires: %{python_module python-lsp-jsonrpc >= 1.0.0}
|
BuildRequires: %{python_module python-lsp-jsonrpc >= 1.0.0}
|
||||||
BuildRequires: %{python_module rope >= 0.10.5}
|
BuildRequires: %{python_module rope >= 0.10.5}
|
||||||
BuildRequires: %{python_module ujson >= 3.0.0}
|
BuildRequires: %{python_module ujson >= 3.0.0}
|
||||||
|
BuildRequires: %{python_module whatthepatch}
|
||||||
BuildRequires: %{python_module yapf}
|
BuildRequires: %{python_module yapf}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
Requires: python-jedi >= 0.17.2
|
|
||||||
Requires: python-pluggy >= 1.0.0
|
Requires: python-pluggy >= 1.0.0
|
||||||
Requires: python-python-lsp-jsonrpc >= 1.0.0
|
Requires: python-python-lsp-jsonrpc >= 1.0.0
|
||||||
Requires: python-setuptools >= 39.0.0
|
Requires: python-setuptools >= 39.0.0
|
||||||
Requires: python-ujson >= 3.0.0
|
Requires: python-ujson >= 3.0.0
|
||||||
|
Requires: (python-jedi >= 0.17.2 with python-jedi < 0.19.0)
|
||||||
Suggests: python-autopep8 >= 1.6.0
|
Suggests: python-autopep8 >= 1.6.0
|
||||||
Conflicts: python-autopep8 >= 1.7.0
|
Conflicts: python-autopep8 >= 1.7.0
|
||||||
Suggests: python-flake8 >= 4.0.0
|
Suggests: python-flake8 >= 4.0.0
|
||||||
@ -71,6 +72,7 @@ Conflicts: python-pyflakes >= 2.5.0
|
|||||||
Suggests: python-pylint >= 2.5.0
|
Suggests: python-pylint >= 2.5.0
|
||||||
Suggests: python-rope >= 0.10.5
|
Suggests: python-rope >= 0.10.5
|
||||||
Suggests: python-yapf
|
Suggests: python-yapf
|
||||||
|
Suggests: python-whatthepatch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
@ -95,23 +97,18 @@ will be enabled:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n python-lsp-server-%{version}
|
%autosetup -p1 -n python-lsp-server-%{version}
|
||||||
|
# Remove pytest addopts
|
||||||
|
sed -i '/addopts/d' pyproject.toml
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pylsp
|
%python_clone -a %{buildroot}%{_bindir}/pylsp
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{python_expand # provide pylint command in correct flavor
|
|
||||||
mkdir -p build/testbin
|
|
||||||
ln -s %{_bindir}/pylint-%{$python_bin_suffix} build/testbin/pylint
|
|
||||||
}
|
|
||||||
export PATH="$PWD/build/testbin:$PATH"
|
|
||||||
# Remove pytest addopts
|
|
||||||
rm setup.cfg
|
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
Loading…
x
Reference in New Issue
Block a user