diff --git a/black-25.1.patch b/black-25.1.patch new file mode 100644 index 0000000..6426be6 --- /dev/null +++ b/black-25.1.patch @@ -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. diff --git a/python-blue.changes b/python-blue.changes index df585da..c1454ac 100644 --- a/python-blue.changes +++ b/python-blue.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 10 12:59:10 UTC 2025 - Markéta Machová + +- Add black-25.1.patch to support changes in black 25.1 + ------------------------------------------------------------------- Tue Feb 6 19:04:16 UTC 2024 - Daniel Garcia diff --git a/python-blue.spec b/python-blue.spec index ccd9b6d..8d4967c 100644 --- a/python-blue.spec +++ b/python-blue.spec @@ -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}