Skip to content

Commit aab093f

Browse files
mceplbmwiedemann
mcepl
authored andcommitted
Update python-blue to version 0.9.0 / rev 7 via SR 1004677
https://build.opensuse.org/request/show/1004677 by user mcepl + dimstar_suse - Add flake8-v5-compatibility.patch wich makes it work with flake8 v5 gh#grantjenks/blue#78
1 parent 085204b commit aab093f

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

packages/p/python-blue/.files

67 Bytes
Binary file not shown.

packages/p/python-blue/.rev

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,13 @@
6767
<comment>Automatic submission by obs-autosubmit</comment>
6868
<requestid>976476</requestid>
6969
</revision>
70+
<revision rev="7" vrev="2">
71+
<srcmd5>34e21a90f4b890e7cef80d2957d82d11</srcmd5>
72+
<version>0.9.0</version>
73+
<time>1663596255</time>
74+
<user>dimstar_suse</user>
75+
<comment>- Add flake8-v5-compatibility.patch wich makes it work with flake8 v5
76+
gh#grantjenks/blue#78</comment>
77+
<requestid>1004677</requestid>
78+
</revision>
7079
</revisionlist>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--- a/blue/__init__.py
2+
+++ b/blue/__init__.py
3+
@@ -397,9 +397,12 @@ def format_file_in_place(*args, **kws):
4+
5+
6+
try:
7+
- BaseConfigParser = flake8_config.ConfigParser # flake8 v4
8+
+ BaseConfigParser = flake8_config.configparser.ConfigParser # flake8 v5
9+
except AttributeError:
10+
- BaseConfigParser = flake8_config.MergedConfigParser # flake8 v3
11+
+ try:
12+
+ BaseConfigParser = flake8_config.ConfigParser # flake8 v4
13+
+ except AttributeError:
14+
+ BaseConfigParser = flake8_config.MergedConfigParser # flake8 v3
15+
16+
17+
class MergedConfigParser(BaseConfigParser):

packages/p/python-blue/python-blue.changes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
-------------------------------------------------------------------
2+
Mon Sep 19 10:14:39 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
3+
4+
- Add flake8-v5-compatibility.patch wich makes it work with flake8 v5
5+
gh#grantjenks/blue#78
6+
17
-------------------------------------------------------------------
28
Wed May 4 17:28:34 UTC 2022 - Matej Cepl <mcepl@suse.com>
39

packages/p/python-blue/python-blue.spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Source: https://github.com/grantjenks/blue/archive/v%{version}.tar.gz#/b
2929
Patch0: unpin-black.patch
3030
# PATCH-FIX-OPENSUSE unpin-tomli.patch -- gh#grantjenks/blue#66
3131
Patch1: unpin-tomli.patch
32+
# PATCH-FIX-UPSTREAM flake8-v5-compatibility.patch -- gh#grantjenks/blue#78
33+
Patch2: flake8-v5-compatibility.patch
3234
BuildRequires: %{python_module Sphinx}
3335
BuildRequires: %{python_module base >= 3.6}
3436
BuildRequires: %{python_module black >= 21.7}

0 commit comments

Comments
 (0)