15
0
forked from pool/python-blue

Accepting request 1251802 from home:mcalabkova:branches:devel:languages:python

- Add black-25.1.patch to support changes in black 25.1

OBS-URL: https://build.opensuse.org/request/show/1251802
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blue?expand=0&rev=28
This commit is contained in:
2025-03-10 20:02:18 +00:00
committed by Git OBS Bridge
parent 950f7e1164
commit 000a4e75ee
3 changed files with 21 additions and 1 deletions

13
black-25.1.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: blue-0.9.1/blue/__init__.py
===================================================================
--- blue-0.9.1.orig/blue/__init__.py
+++ blue-0.9.1/blue/__init__.py
@@ -102,7 +102,7 @@ from click.decorators import version_opt
LOG = logging.getLogger(__name__)
black_format_file_in_place = black.format_file_in_place
-black_strings_fix_docstring = black.strings.fix_docstring
+black_strings_fix_docstring = black.strings.fix_multiline_docstring
black_strings_normalize_string_quotes = black.strings.normalize_string_quotes
# Try not to poison Black's cache directory.

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 10 12:59:10 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add black-25.1.patch to support changes in black 25.1
-------------------------------------------------------------------
Tue Feb 6 19:04:16 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-blue
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -30,6 +30,8 @@ Patch1: unpin-tomli.patch
Patch2: flake8-v6-compatibility.patch
# PATCH-FIX-OPENSUSE black-24.1.patch -- gh#grantjenks/blue#97
Patch3: black-24.1.patch
# PATCH-FIX-OPENSUSE black-25.1.patch -- gh#grantjenks/blue#106
Patch4: black-25.1.patch
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module black >= 21.7}