Hello community,

here is the log from the commit of package python-QtPy for openSUSE:Factory 
checked in at 2018-06-02 12:13:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-QtPy (Old)
 and      /work/SRC/openSUSE:Factory/.python-QtPy.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-QtPy"

Sat Jun  2 12:13:29 2018 rev:4 rq:613348 version:1.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-QtPy/python-QtPy.changes  2018-04-30 
22:58:55.716483182 +0200
+++ /work/SRC/openSUSE:Factory/.python-QtPy.new/python-QtPy.changes     
2018-06-02 12:14:05.891698670 +0200
@@ -1,0 +2,13 @@
+Thu May 31 15:38:45 UTC 2018 - toddrme2...@gmail.com
+
+- Update to version 1.4.2
+  + Issues Closed
+    * Issue 150 - PySide2-5.11 alpha2 compatibility (PR 151)
+    * Issue 144 - ValueError: API 'QString' has already been set to version 1 
at line 141 in init.py file. (PR 152)
+  + Pull Requests Merged
+    * PR 152 - PR: Catch ValueError when trying to set sip API (144)
+    * PR 151 - PR: Add a preventive change for PySide-5.11a2 (150)
+    * PR 149 - PR: Use Qt official wheels to run tests for PySide2
+    * PR 148 - PR: Remove internal conda recipe
+
+-------------------------------------------------------------------

Old:
----
  QtPy-1.4.1.tar.gz

New:
----
  QtPy-1.4.2.tar.gz

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

Other differences:
------------------
++++++ python-QtPy.spec ++++++
--- /var/tmp/diff_new_pack.U5jEvn/_old  2018-06-02 12:14:06.419679304 +0200
+++ /var/tmp/diff_new_pack.U5jEvn/_new  2018-06-02 12:14:06.419679304 +0200
@@ -15,26 +15,25 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 
 
-%bcond_without test
-
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-QtPy
-Version:        1.4.1
+Version:        1.4.2
 Release:        0
 License:        MIT
 Summary:        Abstraction layer on top of Qt bindings
 Url:            https://github.com/spyder-ide/qtpy
 Group:          Development/Languages/Python
 Source:         
https://files.pythonhosted.org/packages/source/Q/QtPy/QtPy-%{version}.tar.gz
-BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module qt5}
 BuildRequires:  %{python_module sip}
-%if %{with test}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  xvfb-run
+# SECTION test requirements
 BuildRequires:  %{python_module pytest}
-%endif
+# /SECTION
 Requires:       python-qt5
 Requires:       python-sip
 BuildArch:      noarch
@@ -67,14 +66,20 @@
 %fdupes %{buildroot}%{$python_sitelib}
 }
 
-%if %{with test}
 %check
-%python_exec setup.py test
-%endif
+export QT_HASH_SEED=0
+export PYTHONDONTWRITEBYTECODE=1
+mkdir empty
+pushd empty
+%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
+xvfb-run --server-args="-screen 0 1920x1080x24" py.test-%{$python_bin_suffix} 
../qtpy/tests/
+}
+popd
 
 %files %{python_files}
 %defattr(-,root,root,-)
-%doc LICENSE.txt
+%doc AUTHORS.md CHANGELOG.md README.md
+%license LICENSE.txt
 %{python_sitelib}/*
 
 %changelog

++++++ QtPy-1.4.1.tar.gz -> QtPy-1.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/CHANGELOG.md new/QtPy-1.4.2/CHANGELOG.md
--- old/QtPy-1.4.1/CHANGELOG.md 2018-04-28 19:05:26.000000000 +0200
+++ new/QtPy-1.4.2/CHANGELOG.md 2018-05-07 00:25:46.000000000 +0200
@@ -1,5 +1,27 @@
 # History of changes
 
+## Version 1.4.2 (2018-05-06)
+
+### Issues Closed
+
+* [Issue 150](https://github.com/spyder-ide/qtpy/issues/150) - PySide2-5.11 
alpha2 compatibility ([PR 151](https://github.com/spyder-ide/qtpy/pull/151))
+* [Issue 144](https://github.com/spyder-ide/qtpy/issues/144) - ValueError: API 
'QString' has already been set to version 1 at line 141 in __init__.py file. 
([PR 152](https://github.com/spyder-ide/qtpy/pull/152))
+
+In this release 2 issues were closed.
+
+### Pull Requests Merged
+
+* [PR 152](https://github.com/spyder-ide/qtpy/pull/152) - PR: Catch ValueError 
when trying to set sip API 
([144](https://github.com/spyder-ide/qtpy/issues/144))
+* [PR 151](https://github.com/spyder-ide/qtpy/pull/151) - PR: Add a preventive 
change for PySide-5.11a2 ([150](https://github.com/spyder-ide/qtpy/issues/150))
+* [PR 149](https://github.com/spyder-ide/qtpy/pull/149) - PR: Use Qt official 
wheels to run tests for PySide2
+* [PR 148](https://github.com/spyder-ide/qtpy/pull/148) - PR: Remove internal 
conda recipe
+
+In this release 4 pull requests were closed.
+
+
+----
+
+
 ## Version 1.4.1 (2018-04-28)
 
 ### New features
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/PKG-INFO new/QtPy-1.4.2/PKG-INFO
--- old/QtPy-1.4.1/PKG-INFO     2018-04-28 19:09:04.000000000 +0200
+++ new/QtPy-1.4.2/PKG-INFO     2018-05-07 00:28:16.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: QtPy
-Version: 1.4.1
+Version: 1.4.2
 Summary: Provides an abstraction layer on top of the various Qt bindings 
(PyQt5, PyQt4 and PySide) and additional custom QWidgets.
 Home-page: https://github.com/spyder-ide/qtpy
 Author: Colin Duquesnoy, The Spyder Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/QtPy.egg-info/PKG-INFO 
new/QtPy-1.4.2/QtPy.egg-info/PKG-INFO
--- old/QtPy-1.4.1/QtPy.egg-info/PKG-INFO       2018-04-28 19:09:04.000000000 
+0200
+++ new/QtPy-1.4.2/QtPy.egg-info/PKG-INFO       2018-05-07 00:28:16.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: QtPy
-Version: 1.4.1
+Version: 1.4.2
 Summary: Provides an abstraction layer on top of the various Qt bindings 
(PyQt5, PyQt4 and PySide) and additional custom QWidgets.
 Home-page: https://github.com/spyder-ide/qtpy
 Author: Colin Duquesnoy, The Spyder Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/qtpy/QtCore.py 
new/QtPy-1.4.2/qtpy/QtCore.py
--- old/QtPy-1.4.1/qtpy/QtCore.py       2018-04-28 19:01:30.000000000 +0200
+++ new/QtPy-1.4.2/qtpy/QtCore.py       2018-05-06 23:26:49.000000000 +0200
@@ -24,8 +24,10 @@
     del pyqtSignal, pyqtSlot, pyqtProperty, QT_VERSION_STR
 elif PYSIDE2:
     from PySide2.QtCore import *
-    from PySide2.QtGui import QStringListModel
-
+    try:  # may be limited to PySide-5.11a1 only 
+        from PySide2.QtGui import QStringListModel
+    except:
+        pass
 elif PYQT4:
     from PyQt4.QtCore import *
     # Those are things we inherited from Spyder that fix crazy crashes under
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/qtpy/QtHelp.py 
new/QtPy-1.4.2/qtpy/QtHelp.py
--- old/QtPy-1.4.1/qtpy/QtHelp.py       2018-03-11 22:30:58.000000000 +0100
+++ new/QtPy-1.4.2/qtpy/QtHelp.py       2018-04-29 01:39:49.000000000 +0200
@@ -13,14 +13,11 @@
 from . import PYQT4
 from . import PYSIDE
 from . import PYSIDE2
-from . import PythonQtWarning
 
 if PYQT5:
     from PyQt5.QtHelp import *
 elif PYSIDE2:
-    # Current wheels don't have this module
-    # from PySide2.QtHelp
-    warnings.warn("QtHelp binding is missing in PySide2", PythonQtWarning)
+    from PySide2.QtHelp import *
 elif PYQT4:
     from PyQt4.QtHelp import *
 elif PYSIDE:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/qtpy/QtMultimedia.py 
new/QtPy-1.4.2/qtpy/QtMultimedia.py
--- old/QtPy-1.4.1/qtpy/QtMultimedia.py 2018-03-11 22:30:58.000000000 +0100
+++ new/QtPy-1.4.2/qtpy/QtMultimedia.py 2018-04-29 01:39:49.000000000 +0200
@@ -4,14 +4,11 @@
 from . import PYQT4
 from . import PYSIDE
 from . import PYSIDE2
-from . import PythonQtWarning
 
 if PYQT5:
     from PyQt5.QtMultimedia import *
 elif PYSIDE2:
-    # Current wheels don't have this module
-    # from PySide2.QtMultimedia import *
-    warnings.warn("QtMultimedia binding is missing in PySide2", 
PythonQtWarning)
+    from PySide2.QtMultimedia import *
 elif PYQT4:
     from PyQt4.QtMultimedia import *
     from PyQt4.QtGui import QSound
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/qtpy/__init__.py 
new/QtPy-1.4.2/qtpy/__init__.py
--- old/QtPy-1.4.1/qtpy/__init__.py     2018-04-28 19:01:30.000000000 +0200
+++ new/QtPy-1.4.2/qtpy/__init__.py     2018-05-07 00:21:16.000000000 +0200
@@ -69,6 +69,17 @@
 # Version of QtPy
 from ._version import __version__
 
+
+class PythonQtError(Exception):
+    """Error raise if no bindings could be selected"""
+    pass
+
+
+class PythonQtWarning(Warning):
+    """Warning if some features are not implemented in a binding."""
+    pass
+
+
 # Qt API environment variable name
 QT_API = 'QT_API'
 
@@ -99,14 +110,6 @@
 PYQT4 = PYSIDE = PYSIDE2 = False
 
 
-class PythonQtError(Exception):
-    """Error raise if no bindings could be selected"""
-    pass
-
-class PythonQtWarning(Warning):
-    """Warning if some features are not implemented in a binding."""
-    pass
-
 if 'PyQt5' in sys.modules:
     API = 'pyqt5'
 elif 'PySide2' in sys.modules:
@@ -147,7 +150,7 @@
             sip.setapi('QTextStream', 2)
             sip.setapi('QTime', 2)
             sip.setapi('QUrl', 2)
-        except AttributeError:
+        except (AttributeError, ValueError):
             # PyQt < v4.6
             pass
         from PyQt4.Qt import PYQT_VERSION_STR as PYQT_VERSION  # 
analysis:ignore
@@ -181,8 +184,8 @@
             'pyside': 'PySide', 'pyside2':'PySide2'}[API]
 
 if PYQT4:
-        import sip
-        try:
-            API_NAME += (" (API v{0})".format(sip.getapi('QString')))
-        except AttributeError:
-            pass
+    import sip
+    try:
+        API_NAME += (" (API v{0})".format(sip.getapi('QString')))
+    except AttributeError:
+        pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/qtpy/_version.py 
new/QtPy-1.4.2/qtpy/_version.py
--- old/QtPy-1.4.1/qtpy/_version.py     2018-04-28 19:07:19.000000000 +0200
+++ new/QtPy-1.4.2/qtpy/_version.py     2018-05-07 00:27:10.000000000 +0200
@@ -1,2 +1,2 @@
-version_info = (1, 4, 1)
+version_info = (1, 4, 2)
 __version__ = '.'.join(map(str, version_info))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/qtpy/tests/test_qdesktopservice_split.py 
new/QtPy-1.4.2/qtpy/tests/test_qdesktopservice_split.py
--- old/QtPy-1.4.1/qtpy/tests/test_qdesktopservice_split.py     2018-03-11 
22:29:19.000000000 +0100
+++ new/QtPy-1.4.2/qtpy/tests/test_qdesktopservice_split.py     2018-04-29 
01:39:49.000000000 +0200
@@ -1,12 +1,12 @@
+"""Test QDesktopServices split in Qt5."""
+
 from __future__ import absolute_import
 
 import pytest
 import warnings
-from qtpy import PYQT4, PYSIDE, PYSIDE2
+from qtpy import PYQT4, PYSIDE
 
-"""Test QDesktopServices split in Qt5."""
 
-@pytest.mark.skipif(PYSIDE2, reason="It fails on PySide2")
 def test_qstandarpath():
     """Test the qtpy.QStandardPaths namespace"""
     from qtpy.QtCore import QStandardPaths
@@ -17,7 +17,7 @@
     with pytest.raises(AttributeError) as excinfo:
         QStandardPaths.setUrlHandler
 
-@pytest.mark.skipif(PYSIDE2, reason="It fails on PySide2")
+
 def test_qdesktopservice():
     """Test the qtpy.QDesktopServices namespace"""
     from qtpy.QtGui import QDesktopServices
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/qtpy/tests/test_qthelp.py 
new/QtPy-1.4.2/qtpy/tests/test_qthelp.py
--- old/QtPy-1.4.1/qtpy/tests/test_qthelp.py    2018-03-11 22:30:58.000000000 
+0100
+++ new/QtPy-1.4.2/qtpy/tests/test_qthelp.py    2018-04-29 01:39:49.000000000 
+0200
@@ -1,13 +1,10 @@
 """Test for QtHelp namespace."""
 
 from __future__ import absolute_import
-import warnings
 
 import pytest
-from qtpy import PYSIDE2, PythonQtWarning
 
 
-@pytest.mark.skipif(PYSIDE2, reason="QtHelp binding is missing in PySide2")
 def test_qthelp():
     """Test the qtpy.QtHelp namespace."""
     from qtpy import QtHelp
@@ -23,16 +20,3 @@
     assert QtHelp.QHelpSearchQuery is not None
     assert QtHelp.QHelpSearchQueryWidget is not None
     assert QtHelp.QHelpSearchResultWidget is not None
-
-
-@pytest.mark.skipif(not PYSIDE2, reason="Only runs in not implemented 
bindings")
-def test_qthelp_not_implemented():
-    with warnings.catch_warnings(record=True) as w:
-        # Cause all warnings to always be triggered.
-        warnings.simplefilter("always")
-        # Try to  import QtHelp.
-        from qtpy import QtHelp
-
-        assert len(w) == 1
-        assert issubclass(w[-1].category, PythonQtWarning)
-        assert "missing" in str(w[-1].message)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/qtpy/tests/test_qtmultimedia.py 
new/QtPy-1.4.2/qtpy/tests/test_qtmultimedia.py
--- old/QtPy-1.4.1/qtpy/tests/test_qtmultimedia.py      2018-03-11 
22:30:58.000000000 +0100
+++ new/QtPy-1.4.2/qtpy/tests/test_qtmultimedia.py      2018-04-29 
01:39:49.000000000 +0200
@@ -1,11 +1,8 @@
 from __future__ import absolute_import
 
 import pytest
-import warnings
-from qtpy import PYSIDE2, PythonQtWarning
 
 
-@pytest.mark.skipif(PYSIDE2, reason="It fails on PySide2")
 def test_qtmultimedia():
     """Test the qtpy.QtMultimedia namespace"""
     from qtpy import QtMultimedia
@@ -15,16 +12,3 @@
     assert QtMultimedia.QAudioDeviceInfo is not None
     assert QtMultimedia.QAudioInput is not None
     assert QtMultimedia.QSound is not None
-
-
-@pytest.mark.skipif(not PYSIDE2, reason="Only runs in not implemented 
bindings")
-def test_qtmultimedia_not_implemented():
-    with warnings.catch_warnings(record=True) as w:
-        # Cause all warnings to always be triggered.
-        warnings.simplefilter("always")
-        # Try to  import QtMultimedia.
-        from qtpy import QtMultimedia
-
-        assert len(w) == 1
-        assert issubclass(w[-1].category, PythonQtWarning)
-        assert "missing" in str(w[-1].message)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/QtPy-1.4.1/qtpy/tests/test_qtsvg.py 
new/QtPy-1.4.2/qtpy/tests/test_qtsvg.py
--- old/QtPy-1.4.1/qtpy/tests/test_qtsvg.py     2017-05-11 17:36:04.000000000 
+0200
+++ new/QtPy-1.4.2/qtpy/tests/test_qtsvg.py     2018-04-29 01:39:49.000000000 
+0200
@@ -1,9 +1,8 @@
 from __future__ import absolute_import
 
 import pytest
-from qtpy import PYSIDE2
 
-@pytest.mark.skipif(PYSIDE2, reason="It fails on PySide2")
+
 def test_qtsvg():
     """Test the qtpy.QtSvg namespace"""
     from qtpy import QtSvg
@@ -11,4 +10,4 @@
     assert QtSvg.QGraphicsSvgItem is not None
     assert QtSvg.QSvgGenerator is not None
     assert QtSvg.QSvgRenderer is not None
-    assert QtSvg.QSvgWidget is not None
\ No newline at end of file
+    assert QtSvg.QSvgWidget is not None


Reply via email to