forked from pool/python-python-lsp-black
- update to 2.0.0:
* Add support to format indented selections of code. This requires Black 23.11.0+ * Change entrypoint name to be `black`. This changes the options namespace for this plugin from `pylsp.pylsp_black` to `pylsp.black`. * Drop support for Python 3.7. - Be clear that we require lsp-jsonrpc, because the test suite does. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-black?expand=0&rev=16
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-python-lsp-black
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,26 +16,27 @@
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-python-lsp-black
|
||||
Version: 1.3.0
|
||||
Version: 2.0.0
|
||||
Release: 0
|
||||
Summary: Black plugin for the Python LSP Server
|
||||
License: MIT
|
||||
URL: https://github.com/python-lsp/python-lsp-black
|
||||
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 base >= 3.8}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module black >= 22.3.0}
|
||||
BuildRequires: %{python_module black >= 23.11.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-lsp-server >= 1.4.0}
|
||||
BuildRequires: %{python_module tomli if %python-base < 3.11}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-black >= 22.3.0
|
||||
Requires: python-black >= 23.11.0
|
||||
Requires: python-python-lsp-server >= 1.4
|
||||
%if 0%{?python_version_nodots} < 311
|
||||
Requires: python-tomli
|
||||
|
Reference in New Issue
Block a user