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-01-25 17:44:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-autopep8 (Old)
 and      /work/SRC/openSUSE:Factory/.python-autopep8.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-autopep8"

Wed Jan 25 17:44:25 2023 rev:26 rq:1060884 version:2.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-autopep8/python-autopep8.changes  
2023-01-23 18:32:48.976414224 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-autopep8.new.32243/python-autopep8.changes   
    2023-01-25 17:54:11.859593506 +0100
@@ -1,0 +2,6 @@
+Wed Jan 25 12:46:02 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add ignore-deprecation.patch to make it compatible with python 3.11
+  gh#hhatto/autopep8#665
+
+-------------------------------------------------------------------

New:
----
  ignore-deprecation.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-autopep8.spec ++++++
--- /var/tmp/diff_new_pack.TY9SDl/_old  2023-01-25 17:54:12.319595961 +0100
+++ /var/tmp/diff_new_pack.TY9SDl/_new  2023-01-25 17:54:12.323595983 +0100
@@ -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 ignore-deprecation.patch gh#hhatto/autopep8#665/files
+Patch:          ignore-deprecation.patch
 BuildRequires:  %{python_module base >= 3.6}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pycodestyle >= 2.8}
@@ -45,7 +47,7 @@
 This is old style tool, wrapped pep8 via subprocess module.
 
 %prep
-%setup -q -n autopep8-%{version}
+%autosetup -p1 -n autopep8-%{version}
 sed -i '1s/^#!.*//' autopep8.py # Remove she-bang line
 
 %build

++++++ ignore-deprecation.patch ++++++
diff --git a/test/test_autopep8.py b/test/test_autopep8.py
index 5f4dbed8..c6319cfa 100755
--- a/test/test_autopep8.py
+++ b/test/test_autopep8.py
@@ -40,13 +40,14 @@
 )
 
 if 'AUTOPEP8_COVERAGE' in os.environ and int(os.environ['AUTOPEP8_COVERAGE']):
-    AUTOPEP8_CMD_TUPLE = ('coverage', 'run', '--branch', '--parallel',
+    AUTOPEP8_CMD_TUPLE = (sys.executable, '-Wignore::DeprecationWarning',
+                          '-m', 'coverage', 'run', '--branch', '--parallel',
                           '--omit=*/site-packages/*',
                           os.path.join(ROOT_DIR, 'autopep8.py'),)
 else:
     # We need to specify the executable to make sure the correct Python
     # interpreter gets used.
-    AUTOPEP8_CMD_TUPLE = (sys.executable,
+    AUTOPEP8_CMD_TUPLE = (sys.executable, '-Wignore::DeprecationWarning',
                           os.path.join(ROOT_DIR,
                                        'autopep8.py'),)  # pragma: no cover
 

Reply via email to