15
0
forked from pool/python-blue

- 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
This commit is contained in:
2023-05-04 12:03:20 +00:00
committed by Git OBS Bridge
parent 3881642047
commit cfa02dd46e
3 changed files with 21 additions and 1 deletions

13
black-23.3.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
@@ -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`

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 4 12:02:24 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- 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 <dmueller@suse.com>

View File

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