From 950f7e116488b1dde6b66794aea76bece28147e38f7ffc66ef562e570b676fed Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 6 Feb 2024 19:04:54 +0000 Subject: [PATCH] - Remove black-23.3.patch and add black-24.1.patch to support latest version of python-black. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blue?expand=0&rev=26 --- black-23.3.patch => black-24.1.patch | 2 +- python-blue.changes | 6 ++++++ python-blue.spec | 11 +++++------ 3 files changed, 12 insertions(+), 7 deletions(-) rename black-23.3.patch => black-24.1.patch (92%) diff --git a/black-23.3.patch b/black-24.1.patch similarity index 92% rename from black-23.3.patch rename to black-24.1.patch index 9b3114a..9fa4be1 100644 --- a/black-23.3.patch +++ b/black-24.1.patch @@ -7,7 +7,7 @@ Index: blue-0.9.1/blue/__init__.py ) # Change the config param callback to support setup.cfg, tox.ini, etc. - config_param = black.main.params[25] -+ config_param = black.main.params[27] ++ config_param = black.main.params[28] assert config_param.name == 'config' config_param.callback = read_configs # Change the version string by adding a redundant Click `version_option` diff --git a/python-blue.changes b/python-blue.changes index 326a278..df585da 100644 --- a/python-blue.changes +++ b/python-blue.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 6 19:04:16 UTC 2024 - Daniel Garcia + +- Remove black-23.3.patch and add black-24.1.patch to support latest + version of python-black. + ------------------------------------------------------------------- Wed Nov 22 07:48:48 UTC 2023 - Daniel Garcia diff --git a/python-blue.spec b/python-blue.spec index 814594d..ccd9b6d 100644 --- a/python-blue.spec +++ b/python-blue.spec @@ -1,7 +1,7 @@ # # spec file for package python-blue # -# 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 @@ -28,8 +28,8 @@ Source: https://github.com/grantjenks/blue/archive/v%{version}.tar.gz#/b Patch1: unpin-tomli.patch # PATCH-FIX-UPSTREAM flake8-v6-compatibility.patch -- gh#grantjenks/blue#96 Patch2: flake8-v6-compatibility.patch -# PATCH-FIX-OPENSUSE black-23.3.patch -- gh#grantjenks/blue#97 -Patch3: black-23.3.patch +# PATCH-FIX-OPENSUSE black-24.1.patch -- gh#grantjenks/blue#97 +Patch3: black-24.1.patch BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module base >= 3.6} BuildRequires: %{python_module black >= 21.7} @@ -41,10 +41,9 @@ BuildRequires: python-rpm-macros BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pytest} # /SECTION -Requires: python-black >= 21.7 -Requires: python-flake8 > 3.8 +Requires: python-black >= 24.1 Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages