commit python-python-lsp-black for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-lsp-black for openSUSE:Factory checked in at 2024-03-03 20:19:42 Comparing /work/SRC/openSUSE:Factory/python-python-lsp-black (Old) and /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.1770 (New) Package is "python-python-lsp-black" Sun Mar 3 20:19:42 2024 rev:9 rq:1154412 version:2.0.0 Changes: --- /work/SRC/openSUSE:Factory/python-python-lsp-black/python-python-lsp-black.changes 2024-01-06 18:09:20.187674605 +0100 +++ /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.1770/python-python-lsp-black.changes 2024-03-03 20:20:05.599506196 +0100 @@ -1,0 +2,6 @@ +Sun Mar 3 11:20:47 UTC 2024 - Ben Greiner + +- Add python-lsp-black-pr56-black24.2.patch + gh#python-lsp/python-lsp-black#56 + +--- New: python-lsp-black-pr56-black24.2.patch BETA DEBUG BEGIN: New: - Add python-lsp-black-pr56-black24.2.patch gh#python-lsp/python-lsp-black#56 BETA DEBUG END: Other differences: -- ++ python-python-lsp-black.spec ++ --- /var/tmp/diff_new_pack.Qjg4QJ/_old 2024-03-03 20:20:06.055522693 +0100 +++ /var/tmp/diff_new_pack.Qjg4QJ/_new 2024-03-03 20:20:06.059522838 +0100 @@ -24,6 +24,8 @@ 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 +# PATCH-FIX-UPSTREAM python-lsp-black-pr56-black24.2.patch gh#python-lsp/python-lsp-black#56 +Patch0: https://github.com/python-lsp/python-lsp-black/pull/56.patch#/python-lsp-black-pr56-black24.2.patch BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} @@ -56,7 +58,7 @@ - python-lsp-black will use your project's pyproject.toml if it has one. %prep -%setup -q -n python-lsp-black-%{version} +%autosetup -p1 -n python-lsp-black-%{version} %build %pyproject_wheel ++ python-lsp-black-pr56-black24.2.patch ++ >From d43b41431379f9c9bb05fab158c4d97e6d515f8f Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Tue, 20 Feb 2024 07:44:20 +0100 Subject: [PATCH] Make tests work with black 24.2.0 Closes: #55 --- setup.cfg| 2 ++ tests/test_plugin.py | 18 -- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index a4fefd3..5103bcb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,6 +22,8 @@ install_requires = python-lsp-server>=1.4.0 black>=23.11.0 tomli; python_version<'3.11' +tests_require = +black>=24.2.0 python_requires = >= 3.8 [options.entry_points] diff --git a/tests/test_plugin.py b/tests/test_plugin.py index 0a51767..2ae8088 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -281,7 +281,14 @@ def test_load_config_defaults(config): assert config == { "line_length": 88, -"target_version": set(), +"target_version": set( +[ +black.TargetVersion.PY38, +black.TargetVersion.PY39, +black.TargetVersion.PY310, +black.TargetVersion.PY311, +] +), "pyi": False, "fast": False, "skip_magic_trailing_comma": False, @@ -297,7 +304,14 @@ def test_load_config_with_skip_options(config_with_skip_options): assert config == { "line_length": 88, -"target_version": set(), +"target_version": set( +[ +black.TargetVersion.PY38, +black.TargetVersion.PY39, +black.TargetVersion.PY310, +black.TargetVersion.PY311, +] +), "pyi": False, "fast": False, "skip_magic_trailing_comma": True,
commit python-python-lsp-black for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-lsp-black for openSUSE:Factory checked in at 2024-01-06 18:09:19 Comparing /work/SRC/openSUSE:Factory/python-python-lsp-black (Old) and /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.28375 (New) Package is "python-python-lsp-black" Sat Jan 6 18:09:19 2024 rev:8 rq:1137135 version:2.0.0 Changes: --- /work/SRC/openSUSE:Factory/python-python-lsp-black/python-python-lsp-black.changes 2023-11-01 22:11:01.950005719 +0100 +++ /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.28375/python-python-lsp-black.changes 2024-01-06 18:09:20.187674605 +0100 @@ -1,0 +2,11 @@ +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. + +--- Old: python-lsp-black-1.3.0-gh.tar.gz New: python-lsp-black-2.0.0-gh.tar.gz Other differences: -- ++ python-python-lsp-black.spec ++ --- /var/tmp/diff_new_pack.v3iUN0/_old 2024-01-06 18:09:21.015704864 +0100 +++ /var/tmp/diff_new_pack.v3iUN0/_new 2024-01-06 18:09:21.015704864 +0100 @@ -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 ++ python-lsp-black-1.3.0-gh.tar.gz -> python-lsp-black-2.0.0-gh.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-lsp-black-1.3.0/.github/workflows/python.yml new/python-lsp-black-2.0.0/.github/workflows/python.yml --- old/python-lsp-black-1.3.0/.github/workflows/python.yml 2023-05-19 14:15:51.0 +0200 +++ new/python-lsp-black-2.0.0/.github/workflows/python.yml 2023-12-19 02:48:52.0 +0100 @@ -11,7 +11,7 @@ runs-on: ubuntu-latest strategy: matrix: -python-version: [3.8, 3.9, "3.10", "3.11"] +python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-lsp-black-1.3.0/CHANGELOG.md new/python-lsp-black-2.0.0/CHANGELOG.md --- old/python-lsp-black-1.3.0/CHANGELOG.md 2023-05-19 14:15:51.0 +0200 +++ new/python-lsp-black-2.0.0/CHANGELOG.md 2023-12-19 02:48:52.0 +0100 @@ -1,3 +1,30 @@ +# History of changes + +## Version 2.0.0 (2023-12-19) + +### New features + +* 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. + +### Issues Closed + +* [Issue 42](https://github.com/python-lsp/python-lsp-black/issues/42) - Ineffective range formatting ([PR 52](https://github.com/python-lsp/python-lsp-black/pull/52) by [@remisalmon](https://github.com/remisalmon)) +* [Issue 41](https://github.com/python-lsp/python-lsp-black/issues/41) - Configuration
commit python-python-lsp-black for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-lsp-black for openSUSE:Factory checked in at 2023-11-01 22:10:18 Comparing /work/SRC/openSUSE:Factory/python-python-lsp-black (Old) and /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.17445 (New) Package is "python-python-lsp-black" Wed Nov 1 22:10:18 2023 rev:7 rq:1121657 version:1.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-python-lsp-black/python-python-lsp-black.changes 2023-07-01 23:18:38.314471545 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.17445/python-python-lsp-black.changes 2023-11-01 22:11:01.950005719 +0100 @@ -1,0 +2,11 @@ +Wed Nov 1 15:46:08 UTC 2023 - Ben Greiner + +- Revert the last change. The error message was genuine and showed + a dependency issue. + +--- +Wed Nov 1 06:12:25 UTC 2023 - Steve Kowalik + +- Be clear that we require lsp-jsonrpc, because the test suite does. + +--- Other differences: -- ++ python-python-lsp-black.spec ++ --- /var/tmp/diff_new_pack.aFZmxA/_old 2023-11-01 22:11:02.402022464 +0100 +++ /var/tmp/diff_new_pack.aFZmxA/_new 2023-11-01 22:11:02.402022464 +0100 @@ -36,7 +36,7 @@ # /SECTION BuildRequires: fdupes Requires: python-black >= 22.3.0 -Requires: python-python-lsp-server +Requires: python-python-lsp-server >= 1.4 %if 0%{?python_version_nodots} < 311 Requires: python-tomli %endif
commit python-python-lsp-black for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-lsp-black for openSUSE:Factory checked in at 2023-07-01 23:18:32 Comparing /work/SRC/openSUSE:Factory/python-python-lsp-black (Old) and /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.13546 (New) Package is "python-python-lsp-black" Sat Jul 1 23:18:32 2023 rev:6 rq:1096294 version:1.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-python-lsp-black/python-python-lsp-black.changes 2022-10-28 19:30:44.550996062 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.13546/python-python-lsp-black.changes 2023-07-01 23:18:38.314471545 +0200 @@ -1,0 +2,8 @@ +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. + +--- Old: python-lsp-black-1.2.1-gh.tar.gz New: python-lsp-black-1.3.0-gh.tar.gz Other differences: -- ++ python-python-lsp-black.spec ++ --- /var/tmp/diff_new_pack.f4eFvv/_old 2023-07-01 23:18:39.062476029 +0200 +++ /var/tmp/diff_new_pack.f4eFvv/_new 2023-07-01 23:18:39.066476053 +0200 @@ -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 @@ %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 @@ %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 ++ python-lsp-black-1.2.1-gh.tar.gz -> python-lsp-black-1.3.0-gh.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-lsp-black-1.2.1/.envrc new/python-lsp-black-1.3.0/.envrc --- old/python-lsp-black-1.2.1/.envrc 1970-01-01 01:00:00.0 +0100 +++ new/python-lsp-black-1.3.0/.envrc 2023-05-19 14:15:51.0 +0200 @@ -0,0 +1 @@ +layout python diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-lsp-black-1.2.1/.github/workflows/python.yml new/python-lsp-black-1.3.0/.github/workflows/python.yml --- old/python-lsp-black-1.2.1/.github/workflows/python.yml 2022-04-12 13:55:44.0 +0200 +++ new/python-lsp-black-1.3.0/.github/workflows/python.yml 2023-05-19 14:15:51.0 +0200 @@ -11,7 +11,7 @@ runs-on: ubuntu-latest strategy: matrix: -python-version: [3.7, 3.8, 3.9, "3.10"] +python-version: [3.8, 3.9, "3.10", "3.11"] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-lsp-black-1.2.1/.pre-commit-config.yaml new/python-lsp-black-1.3.0/.pre-commit-config.yaml --- old/python-lsp-black-1.2.1/.pre-commit-config.yaml 2022-04-12 13:55:44.0 +0200 +++ new/python-lsp-black-1.3.0/.pre-commit-config.yaml 2023-05-19 14:15:51.0 +0200 @@ -1,25 +1,25 @@ repos: - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.12.0 hooks:
commit python-python-lsp-black for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-lsp-black for openSUSE:Factory checked in at 2022-10-28 19:30:22 Comparing /work/SRC/openSUSE:Factory/python-python-lsp-black (Old) and /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.2275 (New) Package is "python-python-lsp-black" Fri Oct 28 19:30:22 2022 rev:5 rq:1031605 version:1.2.1 Changes: --- /work/SRC/openSUSE:Factory/python-python-lsp-black/python-python-lsp-black.changes 2022-04-10 01:34:22.549818697 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.2275/python-python-lsp-black.changes 2022-10-28 19:30:44.550996062 +0200 @@ -1,0 +2,10 @@ +Thu Oct 27 17:12:59 UTC 2022 - Ben Greiner + +- Update to 1.2.1 + * This release disables autopep8 and yapf plugins to avoid +conflicts with black. + * black minimum version has been increased to 22.3.0 because of +an incompatibility with new versions of click. +- Enable test suite + +--- Old: python-lsp-black-1.2.0.tar.gz New: python-lsp-black-1.2.1-gh.tar.gz Other differences: -- ++ python-python-lsp-black.spec ++ --- /var/tmp/diff_new_pack.fYDpgC/_old 2022-10-28 19:30:45.070998670 +0200 +++ /var/tmp/diff_new_pack.fYDpgC/_new 2022-10-28 19:30:45.078998710 +0200 @@ -16,26 +16,24 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 Name: python-python-lsp-black -Version:1.2.0 +Version:1.2.1 Release:0 Summary:Black plugin for the Python LSP Server License:MIT URL:https://github.com/python-lsp/python-lsp-black -Source: https://files.pythonhosted.org/packages/source/p/python-lsp-black/python-lsp-black-%{version}.tar.gz +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 setuptools} BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module black >= 22.1.0} +BuildRequires: %{python_module black >= 22.3.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-lsp-server >= 1.4.0} BuildRequires: %{python_module toml} # /SECTION BuildRequires: fdupes -Requires: python-black >= 22.1.0 +Requires: python-black >= 22.3.0 Requires: python-python-lsp-server Requires: python-toml BuildArch: noarch @@ -62,6 +60,9 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %doc README.md %{python_sitelib}/pylsp_black
commit python-python-lsp-black for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-lsp-black for openSUSE:Factory checked in at 2022-04-10 01:34:21 Comparing /work/SRC/openSUSE:Factory/python-python-lsp-black (Old) and /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.1900 (New) Package is "python-python-lsp-black" Sun Apr 10 01:34:21 2022 rev:4 rq:968079 version:1.2.0 Changes: --- /work/SRC/openSUSE:Factory/python-python-lsp-black/python-python-lsp-black.changes 2022-04-10 00:42:31.948694712 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.1900/python-python-lsp-black.changes 2022-04-10 01:34:22.549818697 +0200 @@ -1,0 +2,5 @@ +Sat Apr 9 22:46:36 UTC 2022 - Ben Greiner + +- Fix runtime requirement for black + +--- Other differences: -- ++ python-python-lsp-black.spec ++ --- /var/tmp/diff_new_pack.SkRIeC/_old 2022-04-10 01:34:24.121801220 +0200 +++ /var/tmp/diff_new_pack.SkRIeC/_new 2022-04-10 01:34:24.125801175 +0200 @@ -35,7 +35,7 @@ BuildRequires: %{python_module toml} # /SECTION BuildRequires: fdupes -Requires: python-black >= 19.3b0 +Requires: python-black >= 22.1.0 Requires: python-python-lsp-server Requires: python-toml BuildArch: noarch
commit python-python-lsp-black for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-lsp-black for openSUSE:Factory checked in at 2022-04-10 00:42:19 Comparing /work/SRC/openSUSE:Factory/python-python-lsp-black (Old) and /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.1900 (New) Package is "python-python-lsp-black" Sun Apr 10 00:42:19 2022 rev:3 rq:968061 version:1.2.0 Changes: --- /work/SRC/openSUSE:Factory/python-python-lsp-black/python-python-lsp-black.changes 2022-03-25 21:55:18.090314074 +0100 +++ /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.1900/python-python-lsp-black.changes 2022-04-10 00:42:31.948694712 +0200 @@ -1,0 +2,15 @@ +Sat Apr 9 21:17:31 UTC 2022 - Ben Greiner + +- Update to 1.2.0 + * This release fixes formatting of Python files with non-UNIX +line endings, adds plugin configuration support and black +configuration caching to improve performance. + * Official support for Python 3.10 by @wlcx (PR 31). + * Correctly format files and ranges with line endings other than +LF by @ccordoba12 (PR 28). + * Plugin configuration support and black configuration caching by +@ccordoba12 and @haplo (PR 26). + * Fixed PyPI badge in Readme (PR 32). + * Updated pre-commit hooks' versions (PR 33). + +--- Old: python-lsp-black-1.1.0.tar.gz New: python-lsp-black-1.2.0.tar.gz Other differences: -- ++ python-python-lsp-black.spec ++ --- /var/tmp/diff_new_pack.ZGKpoW/_old 2022-04-10 00:42:32.568687817 +0200 +++ /var/tmp/diff_new_pack.ZGKpoW/_new 2022-04-10 00:42:32.572687773 +0200 @@ -19,18 +19,19 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-python-lsp-black -Version:1.1.0 +Version:1.2.0 Release:0 Summary:Black plugin for the Python LSP Server License:MIT URL:https://github.com/python-lsp/python-lsp-black Source: https://files.pythonhosted.org/packages/source/p/python-lsp-black/python-lsp-black-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module black >= 19.3b0} +BuildRequires: %{python_module black >= 22.1.0} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module python-lsp-server} +BuildRequires: %{python_module python-lsp-server >= 1.4.0} BuildRequires: %{python_module toml} # /SECTION BuildRequires: fdupes ++ python-lsp-black-1.1.0.tar.gz -> python-lsp-black-1.2.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-lsp-black-1.1.0/PKG-INFO new/python-lsp-black-1.2.0/PKG-INFO --- old/python-lsp-black-1.1.0/PKG-INFO 2022-01-31 00:21:43.735670300 +0100 +++ new/python-lsp-black-1.2.0/PKG-INFO 2022-03-28 20:24:00.489029200 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: python-lsp-black -Version: 1.1.0 +Version: 1.2.0 Summary: Black plugin for the Python LSP Server Home-page: https://github.com/python-lsp/python-lsp-black Author: Python LSP contributors @@ -11,10 +11,10 @@ Project-URL: Source Code, https://github.com/python-lsp/python-lsp-black Description: # python-lsp-black - [![PyPI](https://img.shields.io/pypi/v/pyls-black.svg)](https://pypi.org/project/python-lsp-black) [![Code style: black](https://img.shields.io/badge/code%20style-black-00.svg)](https://github.com/psf/black) + [![PyPI](https://img.shields.io/pypi/v/python-lsp-black.svg)](https://pypi.org/project/python-lsp-black) [![Code style: black](https://img.shields.io/badge/code%20style-black-00.svg)](https://github.com/psf/black) [![Python](https://github.com/python-lsp/python-lsp-black/actions/workflows/python.yml/badge.svg)](https://github.com/python-lsp/python-lsp-black/actions/workflows/python.yml) -> [Black](https://github.com/psf/black) plugin for the [Python LSP Server](https://github.com/python-lsp/python-lsp-server). +[Black](https://github.com/psf/black) plugin for the [Python LSP Server](https://github.com/python-lsp/python-lsp-server). ## Install @@ -32,8 +32,31 @@ - The code will only be formatted if it is syntactically valid Python. - Text selections are treated as if they were a separate Python file. Unfortunately this means you can't format an indented block of code. -- `python-lsp-black` will use your project's [pyproject.toml](https://github.com/psf/black#pyprojecttoml) if it has one. -
commit python-python-lsp-black for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-lsp-black for openSUSE:Factory checked in at 2022-03-25 21:54:58 Comparing /work/SRC/openSUSE:Factory/python-python-lsp-black (Old) and /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.1900 (New) Package is "python-python-lsp-black" Fri Mar 25 21:54:58 2022 rev:2 rq:964847 version:1.1.0 Changes: --- /work/SRC/openSUSE:Factory/python-python-lsp-black/python-python-lsp-black.changes 2021-07-16 22:13:22.154564334 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-lsp-black.new.1900/python-python-lsp-black.changes 2022-03-25 21:55:18.090314074 +0100 @@ -1,0 +2,8 @@ +Fri Mar 25 12:39:20 UTC 2022 - Ben Greiner + +- Update to 1.1.0 + * Support global config as a fallback by @jdost in #19 + * Fix TypeError when formatting with black 22.1.0+ by @wlcx in +#30 + +--- Old: python-lsp-black-1.0.0.tar.gz New: python-lsp-black-1.1.0.tar.gz Other differences: -- ++ python-python-lsp-black.spec ++ --- /var/tmp/diff_new_pack.4EAtBt/_old 2022-03-25 21:55:18.542314504 +0100 +++ /var/tmp/diff_new_pack.4EAtBt/_new 2022-03-25 21:55:18.550314512 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-python-lsp-black # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,19 +19,19 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-python-lsp-black -Version:1.0.0 +Version:1.1.0 Release:0 Summary:Black plugin for the Python LSP Server License:MIT URL:https://github.com/python-lsp/python-lsp-black Source: https://files.pythonhosted.org/packages/source/p/python-lsp-black/python-lsp-black-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module black >= 19.3b0} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-lsp-server} BuildRequires: %{python_module toml} -BuildRequires: %{python_module pytest} # /SECTION BuildRequires: fdupes Requires: python-black >= 19.3b0 ++ python-lsp-black-1.0.0.tar.gz -> python-lsp-black-1.1.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-lsp-black-1.0.0/PKG-INFO new/python-lsp-black-1.1.0/PKG-INFO --- old/python-lsp-black-1.0.0/PKG-INFO 2021-05-18 20:00:18.865016000 +0200 +++ new/python-lsp-black-1.1.0/PKG-INFO 2022-01-31 00:21:43.735670300 +0100 @@ -1,18 +1,22 @@ Metadata-Version: 2.1 Name: python-lsp-black -Version: 1.0.0 +Version: 1.1.0 Summary: Black plugin for the Python LSP Server Home-page: https://github.com/python-lsp/python-lsp-black Author: Python LSP contributors -Author-email: and...@gmail.com +Author-email: f...@fidelramos.net License: UNKNOWN +Project-URL: Bug Tracker, https://github.com/python-lsp/python-lsp-black/issues +Project-URL: Changelog, https://github.com/python-lsp/python-lsp-black/blob/master/CHANGELOG.md +Project-URL: Source Code, https://github.com/python-lsp/python-lsp-black Description: # python-lsp-black - [![PyPI](https://img.shields.io/pypi/v/pyls-black.svg)](https://pypi.org/project/python-lsp-black) [![Code style: black](https://img.shields.io/badge/code%20style-black-00.svg)](https://github.com/ambv/black) + [![PyPI](https://img.shields.io/pypi/v/pyls-black.svg)](https://pypi.org/project/python-lsp-black) [![Code style: black](https://img.shields.io/badge/code%20style-black-00.svg)](https://github.com/psf/black) [![Python](https://github.com/python-lsp/python-lsp-black/actions/workflows/python.yml/badge.svg)](https://github.com/python-lsp/python-lsp-black/actions/workflows/python.yml) +> [Black](https://github.com/psf/black) plugin for the [Python LSP Server](https://github.com/python-lsp/python-lsp-server). -> [Black](https://github.com/ambv/black) plugin for the [Python LSP Server](https://github.com/python-lsp/python-lsp-server). +## Install In the same `virtualenv` as `python-lsp-server`: @@ -20,13 +24,54 @@ pip install python-lsp-black ``` +# Usage + To avoid unexpected results you should make sure `yapf` and `autopep8` are not installed. -*