forked from pool/python-python-lsp-black
- Update to 1.2.1
* This release disables autopep8 and yapf plugins to avoid conflicts with black. * black minimum version has been increased to 22.3.0 because of an incompatibility with new versions of click. - Enable test suite OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-black?expand=0&rev=9
This commit is contained in:
@@ -16,26 +16,24 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-python-lsp-black
|
||||
Version: 1.2.0
|
||||
Version: 1.2.1
|
||||
Release: 0
|
||||
Summary: Black plugin for the Python LSP Server
|
||||
License: MIT
|
||||
URL: https://github.com/python-lsp/python-lsp-black
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-lsp-black/python-lsp-black-%{version}.tar.gz
|
||||
Source: https://github.com/python-lsp/python-lsp-black/archive/refs/tags/v%{version}.tar.gz#/python-lsp-black-%{version}-gh.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module black >= 22.1.0}
|
||||
BuildRequires: %{python_module black >= 22.3.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-lsp-server >= 1.4.0}
|
||||
BuildRequires: %{python_module toml}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-black >= 22.1.0
|
||||
Requires: python-black >= 22.3.0
|
||||
Requires: python-python-lsp-server
|
||||
Requires: python-toml
|
||||
BuildArch: noarch
|
||||
@@ -62,6 +60,9 @@ To avoid unexpected results you should make sure yapf and autopep8 are not insta
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%{python_sitelib}/pylsp_black
|
||||
|
Reference in New Issue
Block a user