diff --git a/python-lsp-black-1.2.1-gh.tar.gz b/python-lsp-black-1.2.1-gh.tar.gz deleted file mode 100644 index 1320c7f..0000000 --- a/python-lsp-black-1.2.1-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1df12c5d3f6407040dd0020a918ed98b20c1ba68720e662f7c8044ed15f87186 -size 9355 diff --git a/python-lsp-black-1.3.0-gh.tar.gz b/python-lsp-black-1.3.0-gh.tar.gz new file mode 100644 index 0000000..b886713 --- /dev/null +++ b/python-lsp-black-1.3.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e17cc0fb7327b1b2377f197480690e0b9f908c688058f07262647c69a00c0d95 +size 9781 diff --git a/python-python-lsp-black.changes b/python-python-lsp-black.changes index a8cce61..86120ef 100644 --- a/python-python-lsp-black.changes +++ b/python-python-lsp-black.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sat Jul 1 13:42:33 UTC 2023 - Ben Greiner + +- 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 diff --git a/python-python-lsp-black.spec b/python-python-lsp-black.spec index 7ec5bb4..ed4f23a 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) 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