1
0

Accepting request 1096294 from devel:languages:python

- Update to 1.3.0
  * Support for black's preview and skip-magic-trailing-comma
    config options.
  * Better TOML support.

OBS-URL: https://build.opensuse.org/request/show/1096294
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-lsp-black?expand=0&rev=6
This commit is contained in:
2023-07-01 21:18:32 +00:00
committed by Git OBS Bridge
4 changed files with 22 additions and 10 deletions

View File

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

View File

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

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat Jul 1 13:42:33 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to 1.3.0
* Support for black's preview and skip-magic-trailing-comma
config options.
* Better TOML support.
-------------------------------------------------------------------
Thu Oct 27 17:12:59 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-lsp-black
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,25 +17,29 @@
Name: python-python-lsp-black
Version: 1.2.1
Version: 1.3.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 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 pytest}
BuildRequires: %{python_module python-lsp-server >= 1.4.0}
BuildRequires: %{python_module toml}
BuildRequires: %{python_module tomli if %python-base < 3.11}
# /SECTION
BuildRequires: fdupes
Requires: python-black >= 22.3.0
Requires: python-python-lsp-server
Requires: python-toml
%if 0%{?python_version_nodots} < 311
Requires: python-tomli
%endif
BuildArch: noarch
%python_subpackages
@@ -54,10 +58,10 @@ To avoid unexpected results you should make sure yapf and autopep8 are not insta
%setup -q -n python-lsp-black-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -66,6 +70,6 @@ To avoid unexpected results you should make sure yapf and autopep8 are not insta
%files %{python_files}
%doc README.md
%{python_sitelib}/pylsp_black
%{python_sitelib}/python_lsp_black-%{version}*-info
%{python_sitelib}/python_lsp_black-%{version}.dist-info
%changelog