Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-autopep8 for openSUSE:Factory
checked in at 2023-08-28 17:13:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-autopep8 (Old)
and /work/SRC/openSUSE:Factory/.python-autopep8.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-autopep8"
Mon Aug 28 17:13:59 2023 rev:28 rq:1105953 version:2.0.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-autopep8/python-autopep8.changes
2023-03-21 17:42:57.906242663 +0100
+++
/work/SRC/openSUSE:Factory/.python-autopep8.new.1766/python-autopep8.changes
2023-08-28 17:14:02.234112702 +0200
@@ -1,0 +2,5 @@
+Fri Aug 25 11:29:01 UTC 2023 - Markéta Machová <[email protected]>
+
+- Add pycodestyle211.patch to fix tests
+
+-------------------------------------------------------------------
New:
----
pycodestyle211.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-autopep8.spec ++++++
--- /var/tmp/diff_new_pack.edEvVk/_old 2023-08-28 17:14:03.286150481 +0200
+++ /var/tmp/diff_new_pack.edEvVk/_new 2023-08-28 17:14:03.290150625 +0200
@@ -24,6 +24,8 @@
Group: Development/Languages/Python
URL: https://github.com/hhatto/autopep8
Source:
https://files.pythonhosted.org/packages/source/a/autopep8/autopep8-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM https://github.com/hhatto/autopep8/pull/699 Try to fix an
AttributeError related to pycodestyle 2.11.0
+Patch0: pycodestyle211.patch
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pycodestyle >= 2.8}
++++++ pycodestyle211.patch ++++++
>From f961833919a6cc9198f05a7f1b2ac7eec1584724 Mon Sep 17 00:00:00 2001
From: paugier <[email protected]>
Date: Sun, 13 Aug 2023 23:06:33 +0200
Subject: [PATCH] Try to fix an AttributeError related to pycodestyle 2.11.0
---
autopep8.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/autopep8.py b/autopep8.py
index 5e2a9fda..84e3e1bf 100755
--- a/autopep8.py
+++ b/autopep8.py
@@ -757,8 +757,14 @@ def fix_e225(self, result):
return
if not check_syntax(fixed.lstrip()):
return
- errors = list(
- pycodestyle.missing_whitespace_around_operator(fixed, ts))
+ try:
+ _missing_whitespace = (
+ pycodestyle.missing_whitespace_around_operator
+ )
+ except AttributeError:
+ # pycodestyle >= 2.11.0
+ _missing_whitespace = pycodestyle.missing_whitespace
+ errors = list(_missing_whitespace(fixed, ts))
for e in reversed(errors):
if error_code != e[1].split()[0]:
continue