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 <c...@bnavigator.de>
+
+- 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 <jo...@mister-muffin.de>
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,

Reply via email to