Skip to content

Commit

Permalink
Update python-blue to version 0.9.1 / rev 9 via SR 1084655
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1084655
by user dgarcia + dimstar_suse
- Add black-23.3.patch to make it compatible with latest python-black
  version. gh#grantjenks/blue#97
  • Loading branch information
dgarcia authored and bmwiedemann committed May 4, 2023
1 parent c8cf016 commit d2e2e96
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
Binary file modified packages/p/python-blue/.files
Binary file not shown.
10 changes: 10 additions & 0 deletions packages/p/python-blue/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,14 @@
- update flake8-v5-compatibility.patch to unpin flake8 again</comment>
<requestid>1061736</requestid>
</revision>
<revision rev="9" vrev="2">
<srcmd5>766be463d96dd7bb4f15164a3d5bd3ea</srcmd5>
<version>0.9.1</version>
<time>1683213095</time>
<user>dimstar_suse</user>
<comment>- Add black-23.3.patch to make it compatible with latest python-black
version. gh#grantjenks/blue#97
</comment>
<requestid>1084655</requestid>
</revision>
</revisionlist>
13 changes: 13 additions & 0 deletions packages/p/python-blue/black-23.3.patch
Original file line number Diff line number Diff line change
@@ -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`
6 changes: 6 additions & 0 deletions packages/p/python-blue/python-blue.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 4 12:02:24 UTC 2023 - Daniel Garcia <[email protected]>

- 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 <[email protected]>

Expand Down
3 changes: 2 additions & 1 deletion packages/p/python-blue/python-blue.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#


%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-blue
Version: 0.9.1
Expand All @@ -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}
Expand Down

0 comments on commit d2e2e96

Please sign in to comment.