15
0
forked from pool/python-blue

- 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
This commit is contained in:
2024-02-06 19:04:54 +00:00
committed by Git OBS Bridge
parent c4cc4fbf8c
commit 950f7e1164
3 changed files with 12 additions and 7 deletions

View File

@@ -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`

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 6 19:04:16 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- 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 <daniel.garcia@suse.com>

View File

@@ -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