Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-AnyQt for openSUSE:Factory 
checked in at 2021-01-22 21:53:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-AnyQt (Old)
 and      /work/SRC/openSUSE:Factory/.python-AnyQt.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-AnyQt"

Fri Jan 22 21:53:12 2021 rev:5 rq:866122 version:0.0.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-AnyQt/python-AnyQt.changes        
2020-01-31 23:56:18.523621043 +0100
+++ /work/SRC/openSUSE:Factory/.python-AnyQt.new.28504/python-AnyQt.changes     
2021-01-22 21:53:33.969954780 +0100
@@ -1,0 +2,9 @@
+Fri Jan 22 16:16:24 UTC 2021 - Antonio Larrosa <alarr...@suse.com>
+
+- Use the upstream provided test
+- Add patch to fix tests in Backports/Leap so we don't try testing
+  the PyQt4 api since we don't have Qt4 anymore in any case
+  (boo#1181294):
+  * do-not-test-pyqt4.patch
+
+-------------------------------------------------------------------

New:
----
  do-not-test-pyqt4.patch

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

Other differences:
------------------
++++++ python-AnyQt.spec ++++++
--- /var/tmp/diff_new_pack.yGUJje/_old  2021-01-22 21:53:34.521955563 +0100
+++ /var/tmp/diff_new_pack.yGUJje/_new  2021-01-22 21:53:34.525955569 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-AnyQt
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,8 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/ales-erjavec/anyqt
 Source:         
https://files.pythonhosted.org/packages/source/A/AnyQt/AnyQt-%{version}.tar.gz
+# PATCH-FIX-SLE do-not-test-pyqt4.patch alarr...@suse.com -- Do not try 
testing the PyQt4 api
+Patch0:         do-not-test-pyqt4.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -54,6 +56,7 @@
 
 %prep
 %setup -q -n AnyQt-%{version}
+%patch0 -p1
 rm AnyQt/QtWinExtras.py
 rm AnyQt/QtMacExtras.py
 
@@ -65,7 +68,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_exec setup.py test
+%python_exec test/test_import.py
 
 %files %{python_files}
 %doc README.txt

++++++ do-not-test-pyqt4.patch ++++++
From: Antonio Larrosa <alarr...@suse.com>

We don't have PyQt4 bindings (not even Qt4 packages) so `import PyQt4`
should fail but the python3-sip package in SLE creates the directory
so the import doesn't fail and then it fails where the test doesn't
expect it.


Index: AnyQt-0.0.10/test/test_import.py
===================================================================
--- AnyQt-0.0.10.orig/test/test_import.py
+++ AnyQt-0.0.10/test/test_import.py
@@ -5,7 +5,7 @@ import importlib
 import subprocess
 import sys
 
-apis = {'pyqt4': 'PyQt4', 'pyqt5': 'PyQt5', 'pyside': 'PySide', 'pyside2': 
'PySide2'}
+apis = {'pyqt5': 'PyQt5', 'pyside': 'PySide', 'pyside2': 'PySide2'}
 
 submodules_common = ['QtCore', 'QtGui', 'QtHelp',
               'QtMultimedia', 'QtNetwork', 'QtOpenGL', 'QtPrintSupport',

Reply via email to