1
0

Accepting request 1137135 from devel:languages:python

- 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/request/show/1137135
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-lsp-black?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2024-01-06 17:09:19 +00:00 committed by Git OBS Bridge
commit 50e5c93bc0
4 changed files with 21 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e17cc0fb7327b1b2377f197480690e0b9f908c688058f07262647c69a00c0d95
size 9781

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6387584c38e5758431f5d61c269860892f57b7442c0cf9bd712ad64231b9bb1c
size 10399

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Jan 5 18:15:23 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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.
-------------------------------------------------------------------
Wed Nov 1 15:46:08 UTC 2023 - Ben Greiner <code@bnavigator.de>
@ -7,7 +18,7 @@ Wed Nov 1 15:46:08 UTC 2023 - Ben Greiner <code@bnavigator.de>
-------------------------------------------------------------------
Wed Nov 1 06:12:25 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Be clear that we require lsp-jsonrpc, because the test suite does.
- Be clear that we require lsp-jsonrpc, because the test suite does.
-------------------------------------------------------------------
Sat Jul 1 13:42:33 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -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