From cfa02dd46e43a6d031ae0455c653d87c9900e7f42ac9fbe0f55c8374c006aada Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 4 May 2023 12:03:20 +0000 Subject: [PATCH] - Add black-23.3.patch to make it compatible with latest python-black version. gh#grantjenks/blue#97 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blue?expand=0&rev=22 --- black-23.3.patch | 13 +++++++++++++ python-blue.changes | 6 ++++++ python-blue.spec | 3 ++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 black-23.3.patch diff --git a/black-23.3.patch b/black-23.3.patch new file mode 100644 index 0000000..bb5c4fd --- /dev/null +++ b/black-23.3.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 +@@ -451,7 +451,7 @@ def main(): + 'Black', 'Blue' + ) + # Change the config param callback to support setup.cfg, tox.ini, etc. +- config_param = black.main.params[25] ++ config_param = black.main.params[26] + 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 381634e..0f77279 100644 --- a/python-blue.changes +++ b/python-blue.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu May 4 12:02:24 UTC 2023 - Daniel Garcia + +- Add black-23.3.patch to make it compatible with latest python-black + version. gh#grantjenks/blue#97 + ------------------------------------------------------------------- Sat Jan 28 12:58:30 UTC 2023 - Dirk Müller diff --git a/python-blue.spec b/python-blue.spec index 9ba27b7..bedb511 100644 --- a/python-blue.spec +++ b/python-blue.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-blue Version: 0.9.1 @@ -29,6 +28,8 @@ Source: https://github.com/grantjenks/blue/archive/v%{version}.tar.gz#/b Patch1: unpin-tomli.patch # PATCH-FIX-UPSTREAM flake8-v5-compatibility.patch -- gh#grantjenks/blue#78 Patch2: flake8-v5-compatibility.patch +# PATCH-FIX-OPENSUSE black-23.3.patch -- gh#grantjenks/blue#97 +Patch3: black-23.3.patch BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module base >= 3.6} BuildRequires: %{python_module black >= 21.7}