From 54abdc0907b0573d0c5a33269ff40a663d30e9915c09204e53db5fed41300c60 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 5 Jan 2024 18:17:01 +0000 Subject: [PATCH] - 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 --- python-lsp-black-1.3.0-gh.tar.gz | 3 --- python-lsp-black-2.0.0-gh.tar.gz | 3 +++ python-python-lsp-black.changes | 13 ++++++++++++- python-python-lsp-black.spec | 11 ++++++----- 4 files changed, 21 insertions(+), 9 deletions(-) delete mode 100644 python-lsp-black-1.3.0-gh.tar.gz create mode 100644 python-lsp-black-2.0.0-gh.tar.gz diff --git a/python-lsp-black-1.3.0-gh.tar.gz b/python-lsp-black-1.3.0-gh.tar.gz deleted file mode 100644 index b886713..0000000 --- a/python-lsp-black-1.3.0-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e17cc0fb7327b1b2377f197480690e0b9f908c688058f07262647c69a00c0d95 -size 9781 diff --git a/python-lsp-black-2.0.0-gh.tar.gz b/python-lsp-black-2.0.0-gh.tar.gz new file mode 100644 index 0000000..d8fc6c9 --- /dev/null +++ b/python-lsp-black-2.0.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6387584c38e5758431f5d61c269860892f57b7442c0cf9bd712ad64231b9bb1c +size 10399 diff --git a/python-python-lsp-black.changes b/python-python-lsp-black.changes index bd895f0..3440ceb 100644 --- a/python-python-lsp-black.changes +++ b/python-python-lsp-black.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Jan 5 18:15:23 UTC 2024 - Dirk Müller + +- 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 @@ -7,7 +18,7 @@ Wed Nov 1 15:46:08 UTC 2023 - Ben Greiner ------------------------------------------------------------------- Wed Nov 1 06:12:25 UTC 2023 - Steve Kowalik -- 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 diff --git a/python-python-lsp-black.spec b/python-python-lsp-black.spec index 159b83c..2b6607e 100644 --- a/python-python-lsp-black.spec +++ b/python-python-lsp-black.spec @@ -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