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-08-16 10:11:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-AnyQt (Old) and /work/SRC/openSUSE:Factory/.python-AnyQt.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-AnyQt" Mon Aug 16 10:11:33 2021 rev:7 rq:911998 version:0.0.13 Changes: -------- --- /work/SRC/openSUSE:Factory/python-AnyQt/python-AnyQt.changes 2021-01-26 14:50:06.959707559 +0100 +++ /work/SRC/openSUSE:Factory/.python-AnyQt.new.1899/python-AnyQt.changes 2021-08-16 10:17:41.486651460 +0200 @@ -1,0 +2,16 @@ +Fri Aug 13 13:34:44 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Update to 0.0.13 + * Raise deprecation warning on getContentsMargins + * Add missing QPdfWriter.setPageSize(QPageSize) overload for PyQt5 + * QtWidgets: Raise a DeprecationWarning on use of QApplication.desktop + * Raise a DeprecationWarning on use of QFontMetrics(F).width + * QtGui: Add QFontMetrics.horizontalAdvance when not present + * QtWidgets: Add QWidget.screen when not present + * QtGui: Add QGuiApplication.screenAt when not present +- from version 0.0.12 + * QtCore: Add a QT_VERSION_INFO tuple with parsed qVersion + * Add AnyQt.sip stub + * QTest: Add qWaitFor where not available + +------------------------------------------------------------------- Old: ---- AnyQt-0.0.11.tar.gz New: ---- AnyQt-0.0.13.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-AnyQt.spec ++++++ --- /var/tmp/diff_new_pack.JBj0vk/_old 2021-08-16 10:17:41.922650761 +0200 +++ /var/tmp/diff_new_pack.JBj0vk/_new 2021-08-16 10:17:41.926650754 +0200 @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-AnyQt -Version: 0.0.11 +Version: 0.0.13 Release: 0 Summary: PyQt4/PyQt5 compatibility layer License: GPL-3.0-only ++++++ AnyQt-0.0.11.tar.gz -> AnyQt-0.0.13.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.11/AnyQt/QtCore.py new/AnyQt-0.0.13/AnyQt/QtCore.py --- old/AnyQt-0.0.11/AnyQt/QtCore.py 2020-10-19 10:23:25.000000000 +0200 +++ new/AnyQt-0.0.13/AnyQt/QtCore.py 2021-05-06 11:27:26.000000000 +0200 @@ -323,3 +323,6 @@ if not hasattr(QEvent, "NonClientAreaMouseMove"): QEvent.NonClientAreaMouseMove = QEvent.Type(173) + +#: Qt version as a (major, minor, micro) tuple +QT_VERSION_INFO = tuple(map(int, qVersion().split(".")[:3])) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.11/AnyQt/QtGui.py new/AnyQt-0.0.13/AnyQt/QtGui.py --- old/AnyQt-0.0.11/AnyQt/QtGui.py 2020-10-21 11:03:14.000000000 +0200 +++ new/AnyQt-0.0.13/AnyQt/QtGui.py 2021-05-06 11:52:52.000000000 +0200 @@ -1,3 +1,5 @@ +from warnings import warn + from . import _api # Names imported from Qt4's QtGui module @@ -221,3 +223,59 @@ QWheelEvent.angleDelta = __QWheelEvent_angleDelta QWheelEvent.pixelDelta = __QWheelEvent_pixelDelta + +if _api.USED_API == _api.QT_API_PYQT5: + # PyQt5 does not support setPageSize(QPageSize) overload + def QPdfWriter_setPageSize(self, size): + if isinstance(size, QPageSize): + self.setPageSizeMM(size.size(QPageSize.Millimeter)) + return self.pageLayout().pageSize().isEquivalentTo(size) + else: + __QPdfWriter_setPageSize(self, size) + __QPdfWriter_setPageSize = QPdfWriter.setPageSize + QPdfWriter.setPageSize = QPdfWriter_setPageSize + del QPdfWriter_setPageSize + +if not hasattr(QGuiApplication, 'screenAt'): + def QGuiApplication_screenAt(pos): + visited = set() + for screen in QGuiApplication.screens(): + if screen in visited: + continue + # The virtual siblings include the screen itself, so iterate directly + for sibling in screen.virtualSiblings(): + if sibling.geometry().contains(pos): + return sibling + visited.add(sibling) + return None + QGuiApplication.screenAt = staticmethod(QGuiApplication_screenAt) + del QGuiApplication_screenAt + + +# Alias QFontMetrics(F).horizontalAdvance to QFontMetrics(F).width +# when it does not exists +if not hasattr(QFontMetrics, "horizontalAdvance"): + def QFontMetrics_horizontalAdvance(self, *args, **kwargs): + return __QFontMetrics_width(self, *args, **kwargs) + __QFontMetrics_width = QFontMetrics.width + QFontMetrics.horizontalAdvance = QFontMetrics_horizontalAdvance + del QFontMetrics_horizontalAdvance +if not hasattr(QFontMetricsF, "horizontalAdvance"): + def QFontMetricsF_horizontalAdvance(self, *args, **kwargs): + return __QFontMetricsF_width(self, *args, **kwargs) + __QFontMetricsF_width = QFontMetricsF.width + QFontMetricsF.horizontalAdvance = QFontMetricsF_horizontalAdvance + del QFontMetricsF_horizontalAdvance + + +# Warn on deprecated QFontMetrics.width +def QFontMetrics_width(self, *args, **kwargs): + warn("QFontMetrics(F).width is obsolete. " + "Replace with QFontMetrics(F).horizontalAdvance", + DeprecationWarning, stacklevel=2) + return self.horizontalAdvance(*args, **kwargs) + + +QFontMetricsF.width = QFontMetrics_width +QFontMetrics.width = QFontMetrics_width +del QFontMetrics_width diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.11/AnyQt/QtTest.py new/AnyQt-0.0.13/AnyQt/QtTest.py --- old/AnyQt-0.0.11/AnyQt/QtTest.py 2020-10-21 10:59:30.000000000 +0200 +++ new/AnyQt-0.0.13/AnyQt/QtTest.py 2021-05-06 11:27:26.000000000 +0200 @@ -124,3 +124,29 @@ return len(self.__recorded) del QObject + + +def _QTest_qWaitFor(predicate, timeout=5000): + # type: (Callable[[], bool], int) -> bool + # Copied and adapted from Qt + from AnyQt.QtCore import Qt, QCoreApplication, QEvent, QEventLoop, QDeadlineTimer + if predicate(): + return True + remaining = timeout + deadline = QDeadlineTimer(remaining, Qt.PreciseTimer) + while True: + QCoreApplication.processEvents(QEventLoop.AllEvents) + QCoreApplication.sendPostedEvents(None, QEvent.DeferredDelete) + remaining = deadline.remainingTime() + if remaining > 0: + QTest.qSleep(min(10, remaining)) + if predicate(): + return True + remaining = deadline.remainingTime() + if remaining <= 0: + break + return predicate() # Last chance + + +if not hasattr(QTest, "qWaitFor"): # Qt < 5.10 + QTest.qWaitFor = _QTest_qWaitFor diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.11/AnyQt/QtWidgets.py new/AnyQt-0.0.13/AnyQt/QtWidgets.py --- old/AnyQt-0.0.11/AnyQt/QtWidgets.py 2020-10-19 10:23:25.000000000 +0200 +++ new/AnyQt-0.0.13/AnyQt/QtWidgets.py 2021-05-06 11:52:52.000000000 +0200 @@ -1,3 +1,5 @@ +from warnings import warn + from . import _api # Names imported from Qt4's QtGui module @@ -333,3 +335,33 @@ QWIDGETSIZE_MAX # Missing in older PyQt5, PyQt4 except NameError: QWIDGETSIZE_MAX = (1 << 24) - 1 + + +if not hasattr(QWidget, "screen"): + def QWidget_screen(self): + screens = QApplication.screens() + desktop = __QApplication_desktop() # avoid deprecation warning + screen_num = desktop.screenNumber(self) + if 0 <= screen_num < len(screens): + return screens[screen_num] + else: + return QApplication.primaryScreen() + QWidget.screen = QWidget_screen + del QWidget_screen + +if hasattr(QWidget, "getContentsMargins"): + def QWidget_getContentsMargins(self): + warn("QWidget.getContentsMargins is obsolete and is removed in Qt6", + DeprecationWarning, stacklevel=2) + return __QWidget_getContentsMargins(self) + __QWidget_getContentsMargins = QWidget.getContentsMargins + QWidget.getContentsMargins = QWidget_getContentsMargins + +if hasattr(QApplication, "desktop"): + def QApplication_desktop(): + warn("QApplication.desktop is obsolete and is removed in Qt6", + DeprecationWarning, stacklevel=2) + return __QApplication_desktop() + __QApplication_desktop = QApplication.desktop + QApplication.desktop = staticmethod(QApplication_desktop) + del QApplication_desktop diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.11/AnyQt/sip.py new/AnyQt-0.0.13/AnyQt/sip.py --- old/AnyQt-0.0.11/AnyQt/sip.py 1970-01-01 01:00:00.000000000 +0100 +++ new/AnyQt-0.0.13/AnyQt/sip.py 2021-05-06 11:27:26.000000000 +0200 @@ -0,0 +1,14 @@ +import sys +import AnyQt._api as _api + +if _api.USED_API == _api.QT_API_PYQT5: + try: + from PyQt5 import sip as __sip + except ImportError: + import sip as __sip +elif _api.USED_API == _api.QT_API_PYQT4: + import sip as __sip +else: + raise ImportError("AnyQt.sip") + +sys.modules["AnyQt.sip"] = __sip diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.11/AnyQt.egg-info/PKG-INFO new/AnyQt-0.0.13/AnyQt.egg-info/PKG-INFO --- old/AnyQt-0.0.11/AnyQt.egg-info/PKG-INFO 2020-10-21 11:16:34.000000000 +0200 +++ new/AnyQt-0.0.13/AnyQt.egg-info/PKG-INFO 2021-05-06 11:54:17.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: AnyQt -Version: 0.0.11 +Version: 0.0.13 Summary: PyQt4/PyQt5 compatibility layer. Home-page: https://github.com/ales-erjavec/anyqt Author: Ale?? Erjavec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.11/AnyQt.egg-info/SOURCES.txt new/AnyQt-0.0.13/AnyQt.egg-info/SOURCES.txt --- old/AnyQt-0.0.11/AnyQt.egg-info/SOURCES.txt 2020-10-21 11:16:34.000000000 +0200 +++ new/AnyQt-0.0.13/AnyQt.egg-info/SOURCES.txt 2021-05-06 11:54:17.000000000 +0200 @@ -34,6 +34,7 @@ AnyQt/_api.py AnyQt/_fixes.py AnyQt/importhooks.py +AnyQt/sip.py AnyQt/uic.py AnyQt.egg-info/PKG-INFO AnyQt.egg-info/SOURCES.txt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.11/PKG-INFO new/AnyQt-0.0.13/PKG-INFO --- old/AnyQt-0.0.11/PKG-INFO 2020-10-21 11:16:34.000000000 +0200 +++ new/AnyQt-0.0.13/PKG-INFO 2021-05-06 11:54:17.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: AnyQt -Version: 0.0.11 +Version: 0.0.13 Summary: PyQt4/PyQt5 compatibility layer. Home-page: https://github.com/ales-erjavec/anyqt Author: Ale?? Erjavec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.11/setup.cfg new/AnyQt-0.0.13/setup.cfg --- old/AnyQt-0.0.11/setup.cfg 2020-10-21 11:16:34.000000000 +0200 +++ new/AnyQt-0.0.13/setup.cfg 2021-05-06 11:54:17.000000000 +0200 @@ -1,12 +1,9 @@ [bumpversion] -current_version = 0.0.11 +current_version = 0.0.13 commit = True tag = True tag_name = {new_version} -[bdist_wheel] -universal = 1 - [build_sphinx] source-dir = docs/source build-dir = docs/build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.11/setup.py new/AnyQt-0.0.13/setup.py --- old/AnyQt-0.0.11/setup.py 2020-10-21 11:09:11.000000000 +0200 +++ new/AnyQt-0.0.13/setup.py 2021-05-06 11:52:52.000000000 +0200 @@ -5,7 +5,7 @@ from setuptools import setup, find_packages NAME = "AnyQt" -VERSION = "0.0.11" +VERSION = "0.0.13" AUTHOR = "Ale?? Erjavec" AUTHOR_EMAIL = "ales.erja...@fri.uni-lj.si" URL = "https://github.com/ales-erjavec/anyqt"