commit python-AnyQt for openSUSE:Factory
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 2024-05-17 20:05:11 Comparing /work/SRC/openSUSE:Factory/python-AnyQt (Old) and /work/SRC/openSUSE:Factory/.python-AnyQt.new.1880 (New) Package is "python-AnyQt" Fri May 17 20:05:11 2024 rev:13 rq:1174654 version:0.2.0 Changes: --- /work/SRC/openSUSE:Factory/python-AnyQt/python-AnyQt.changes 2024-01-29 22:29:26.158358001 +0100 +++ /work/SRC/openSUSE:Factory/.python-AnyQt.new.1880/python-AnyQt.changes 2024-05-17 20:06:12.793659707 +0200 @@ -1,0 +2,6 @@ +Thu May 16 15:12:49 UTC 2024 - Dominique Leuenberger + +- Use %autosetup macro: allows us to eliminate usage of deprecated + %patchN syntax. + +--- Other differences: -- ++ python-AnyQt.spec ++ --- /var/tmp/diff_new_pack.lsIrxg/_old 2024-05-17 20:06:13.485684712 +0200 +++ /var/tmp/diff_new_pack.lsIrxg/_new 2024-05-17 20:06:13.485684712 +0200 @@ -68,8 +68,8 @@ compatible API (some monkey patching is involved). %prep -%setup -q -n anyqt-%{version} -%patch0 -p1 +%autosetup -p1 -n anyqt-%{version} + rm AnyQt/QtWinExtras.py rm AnyQt/QtMacExtras.py
commit python-AnyQt for openSUSE:Factory
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 2023-06-21 22:40:23 Comparing /work/SRC/openSUSE:Factory/python-AnyQt (Old) and /work/SRC/openSUSE:Factory/.python-AnyQt.new.15902 (New) Package is "python-AnyQt" Wed Jun 21 22:40:23 2023 rev:11 rq:1094379 version:0.2.0 Changes: --- /work/SRC/openSUSE:Factory/python-AnyQt/python-AnyQt.changes 2022-09-16 13:32:44.185345389 +0200 +++ /work/SRC/openSUSE:Factory/.python-AnyQt.new.15902/python-AnyQt.changes 2023-06-21 22:41:16.462882192 +0200 @@ -1,0 +2,6 @@ +Wed Jun 21 13:40:10 UTC 2023 - Ben Greiner + +- Use PEP517 +- Activate more tests with more APIs + +--- Old: AnyQt-0.2.0.tar.gz New: AnyQt-0.2.0-gh.tar.gz Other differences: -- ++ python-AnyQt.spec ++ --- /var/tmp/diff_new_pack.XJB3ry/_old 2023-06-21 22:41:17.066885827 +0200 +++ /var/tmp/diff_new_pack.XJB3ry/_new 2023-06-21 22:41:17.070885852 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-AnyQt # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -%define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-AnyQt Version:0.2.0 Release:0 @@ -25,16 +23,22 @@ License:GPL-3.0-only Group: Development/Languages/Python URL:https://github.com/ales-erjavec/anyqt -Source: https://files.pythonhosted.org/packages/source/A/AnyQt/AnyQt-%{version}.tar.gz +Source: https://github.com/ales-erjavec/anyqt/archive/refs/tags/%{version}.tar.gz#/AnyQt-%{version}-gh.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: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Recommends: python-qt5 BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module qt5} +BuildRequires: python3-pyside2 +BuildRequires: %{python_module PyQt6} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-xvfb} BuildRequires: %{python_module qtwebengine-qt5} # /SECTION %python_subpackages @@ -55,24 +59,37 @@ compatible API (some monkey patching is involved). %prep -%setup -q -n AnyQt-%{version} +%setup -q -n anyqt-%{version} %patch0 -p1 rm AnyQt/QtWinExtras.py rm AnyQt/QtMacExtras.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +for q in pyqt5 pyqt6; do + export QT_API=$q + %pytest --ignore test/ +done +# not ready for pyside6 yet +for q in pyside2; do + export QT_API=$q + export PYTHONPATH=%{buildroot}%{python3_sitelib} + pytest-%{python3_version} --ignore test/ +done +# this doesn't return error codes, check output manually +unset QT_API %python_exec test/test_import.py %files %{python_files} %doc README.txt %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/AnyQt +%{python_sitelib}/AnyQt-%{version}.dist-info %changelog
commit python-AnyQt for openSUSE:Factory
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 2022-09-16 13:32:20 Comparing /work/SRC/openSUSE:Factory/python-AnyQt (Old) and /work/SRC/openSUSE:Factory/.python-AnyQt.new.2083 (New) Package is "python-AnyQt" Fri Sep 16 13:32:20 2022 rev:10 rq:1003974 version:0.2.0 Changes: --- /work/SRC/openSUSE:Factory/python-AnyQt/python-AnyQt.changes 2022-08-02 22:10:29.065996048 +0200 +++ /work/SRC/openSUSE:Factory/.python-AnyQt.new.2083/python-AnyQt.changes 2022-09-16 13:32:44.185345389 +0200 @@ -1,0 +2,20 @@ +Thu Sep 15 21:51:05 UTC 2022 - Yogalakshmi Arunachalam + +- update to 0.2.0 + * Bump version: 0.2.0rc1 ??? 0.2.0 + * Bump version: 0.1.1 ??? 0.2.0rc1 + * CI: Add libxcb-shape0 to list of linux system packages + * CI: Add PySide2 to CI tests + * PySide2: Fix for PYSIDE-237 bug + * PySide2: Add compatible QPdfWriter.setPageSize overload + * test_qaction_set_menu: PySide2 compatibility + * QtCore: Expose cast/wrap/unwrapinstance, ... + * QtCore: Add BoundSignal type + * PySide2: alias missing exec methods + * PySide2: Add missing QActionEvent.{action,before} + * PySide2: Import missing pieces + * pyside2: drawPixmapFragments compatibility + * pyside2: QtTest compatibility + * pyside2: QSettings compatibility + +--- Old: AnyQt-0.1.1.tar.gz New: AnyQt-0.2.0.tar.gz Other differences: -- ++ python-AnyQt.spec ++ --- /var/tmp/diff_new_pack.t4an9V/_old 2022-09-16 13:32:44.641346862 +0200 +++ /var/tmp/diff_new_pack.t4an9V/_new 2022-09-16 13:32:44.645346875 +0200 @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-AnyQt -Version:0.1.1 +Version:0.2.0 Release:0 Summary:PyQt4/PyQt5 compatibility layer License:GPL-3.0-only ++ AnyQt-0.1.1.tar.gz -> AnyQt-0.2.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.1.1/AnyQt/QtCore.py new/AnyQt-0.2.0/AnyQt/QtCore.py --- old/AnyQt-0.1.1/AnyQt/QtCore.py 2022-06-13 12:12:31.0 +0200 +++ new/AnyQt-0.2.0/AnyQt/QtCore.py 2022-08-02 13:07:00.0 +0200 @@ -248,6 +248,7 @@ Signal = pyqtSignal Slot = pyqtSlot Property = pyqtProperty +BoundSignal = pyqtBoundSignal Qt.Alignment = Qt.AlignmentFlag Qt.ApplicationStates = Qt.ApplicationState Qt.DockWidgetAreas = Qt.DockWidgetArea @@ -281,6 +282,7 @@ Signal = pyqtSignal Slot = pyqtSlot Property = pyqtProperty +BoundSignal = pyqtBoundSignal elif _api.USED_API == _api.QT_API_PYQT4: from PyQt4 import QtCore as _QtCore, QtGui as _QtGui @@ -337,6 +339,7 @@ _major, _minor, _micro = tuple(map(int, qVersion().split(".")[:3])) QT_VERSION = (_major << 16) + (_minor << 8) + _micro QT_VERSION_STR = "{}.{}.{}".format(_major, _minor, _micro) +BoundSignal = Signal # Missing in PyQt4 <= 4.11.3 if not hasattr(QEvent, "MacSizeChange"): @@ -384,6 +387,71 @@ if not hasattr(QLibraryInfo, "location"): QLibraryInfo.location = QLibraryInfo.path + +if _api.USED_API == _api.QT_API_PYSIDE2: +class QSettings(QSettings): +""" +A subclass of QSettings with a simulated `type` parameter in +value method. + +""" +# QSettings.value does not have `type` type in PySide2 +def value(self, key, defaultValue=None, type=None): +""" +Returns the value for setting key. If the setting doesn't exist, +returns defaultValue. +""" +if not self.contains(key): +return defaultValue + +value = super().value(key) +if type is not None: +value = self.__qvariant_cast(value, type) +if value is None: +value = defaultValue +return value + +from AnyQt._compat import qvariant_cast as __qvariant_cast +__qvariant_cast = staticmethod(__qvariant_cast) +try: +QStringListModel +except NameError: +from PySide2.QtGui import QStringListModel + + +pyqtSignal = Signal +pyqtSlot = Slot +pyqtProperty = Property + +if _api.USED_API == _api.QT_API_PYSIDE2: +try: +from PySide2 import shiboken2 as __shiboken2 +except ImportError: +import shiboken2 as __shiboken2 + +def cast(obj, type_): +addr = unwrapinstance(obj) +return wrapinstance(addr, type_) + +def unwrapinstance(obj): +addr, = __shiboken2.getCppPointer(obj) +return addr + +
commit python-AnyQt for openSUSE:Factory
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 2022-08-02 22:09:37 Comparing /work/SRC/openSUSE:Factory/python-AnyQt (Old) and /work/SRC/openSUSE:Factory/.python-AnyQt.new.1533 (New) Package is "python-AnyQt" Tue Aug 2 22:09:37 2022 rev:9 rq:992329 version:0.1.1 Changes: --- /work/SRC/openSUSE:Factory/python-AnyQt/python-AnyQt.changes 2022-03-07 17:49:08.899081598 +0100 +++ /work/SRC/openSUSE:Factory/.python-AnyQt.new.1533/python-AnyQt.changes 2022-08-02 22:10:29.065996048 +0200 @@ -1,0 +2,26 @@ +Tue Aug 2 09:46:16 UTC 2022 - Otto Hollmann + +- update to 0.1.1 + * importhooks: Fix deprecation warnings `find_module` and `load_module` are deprecated. +- from version 0.1.0 + * Update imports of QWebEngineCore components for Qt6 + * Add tests + * Add forward compatible QTextEdit.setTabStopDistance, ... + * Qt5: Add forward compatible QAbstractItem.itemDelegateForIndex method + * Add forward compatible QAbstractItemView.initViewItemOption + * Make available enum members in type when not present + * PyQt6: Add ctypes QAction.menu/setMenut + * Add QLibraryInfo.path if not present + * PyQt6: Add back obsolete accessors to QWheelEvent + * PyQt6: Add back obsolete accessors to QDropEvent, QEnterEvent + * PyQt6: Add back obsolete pos,x, ..., accessors to QMouseEvent + * PyQt6: Implement QAbstractItemView.viewOptions back compatible method + * PyQt6: Move QShortcut, QAction imports + * PyQt6: Move QUndoStack, ... imports + * PyQt6: Add back some common Enum/Flag type aliases + * PyQt6: Add QtSvgWidgets stub module + * Add support for PyQt6 + * Make all members of QFontDatabase static +- updated patch do-not-test-pyqt4.patch + +--- Old: AnyQt-0.0.14.tar.gz New: AnyQt-0.1.1.tar.gz Other differences: -- ++ python-AnyQt.spec ++ --- /var/tmp/diff_new_pack.SzFskX/_old 2022-08-02 22:10:29.481997247 +0200 +++ /var/tmp/diff_new_pack.SzFskX/_new 2022-08-02 22:10:29.485997258 +0200 @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-AnyQt -Version:0.0.14 +Version:0.1.1 Release:0 Summary:PyQt4/PyQt5 compatibility layer License:GPL-3.0-only ++ AnyQt-0.0.14.tar.gz -> AnyQt-0.1.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.14/AnyQt/QtCore.py new/AnyQt-0.1.1/AnyQt/QtCore.py --- old/AnyQt-0.0.14/AnyQt/QtCore.py2022-02-25 09:13:49.0 +0100 +++ new/AnyQt-0.1.1/AnyQt/QtCore.py 2022-06-13 12:12:31.0 +0200 @@ -243,7 +243,33 @@ 'pyqtSignature', ] -if _api.USED_API == _api.QT_API_PYQT5: +if _api.USED_API == _api.QT_API_PYQT6: +from PyQt6.QtCore import * +Signal = pyqtSignal +Slot = pyqtSlot +Property = pyqtProperty +Qt.Alignment = Qt.AlignmentFlag +Qt.ApplicationStates = Qt.ApplicationState +Qt.DockWidgetAreas = Qt.DockWidgetArea +Qt.Edges = Qt.Edge +Qt.FindChildOptions = Qt.FindChildOption +Qt.GestureFlags = Qt.GestureFlag +Qt.ImageConversionFlags = Qt.ImageConversionFlag +Qt.ItemFlags = Qt.ItemFlag +Qt.KeyboardModifiers = Qt.KeyboardModifier +Qt.MatchFlags = Qt.MatchFlag +Qt.MouseButtons = Qt.MouseButton +Qt.MouseEventFlags = Qt.MouseEventFlag +Qt.Orientations = Qt.Orientation +Qt.ScreenOrientations = Qt.ScreenOrientation +# Qt.SplitBehavior = Qt.SplitBehaviorFlags +Qt.TextInteractionFlags = Qt.TextInteractionFlag +Qt.ToolBarAreas = Qt.ToolBarArea +Qt.TouchPointStates = Qt.TouchPointState +Qt.WindowFlags = Qt.WindowType +Qt.WindowStates = Qt.WindowState +QItemSelectionModel.SelectionFlags = QItemSelectionModel.SelectionFlag +elif _api.USED_API == _api.QT_API_PYQT5: from PyQt5.QtCore import * try: # QSignalMapper.mapped[QWidget] does not work unless QtWidgets is @@ -349,5 +375,16 @@ except (KeyError, TypeError): pass +if not hasattr(QLibraryInfo, "path"): +QLibraryInfo.path = QLibraryInfo.location + +if not hasattr(QLibraryInfo, "LibraryLocation"): +QLibraryInfo.LibraryLocation = QLibraryInfo.LibraryPath + +if not hasattr(QLibraryInfo, "location"): +QLibraryInfo.location = QLibraryInfo.path + #: Qt version as a (major, minor, micro) tuple QT_VERSION_INFO = tuple(map(int, qVersion().split(".")[:3])) + +_api.apply_global_fixes(globals()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.14/AnyQt/QtDBus.py
commit python-AnyQt for openSUSE:Factory
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 2022-03-07 17:48:18 Comparing /work/SRC/openSUSE:Factory/python-AnyQt (Old) and /work/SRC/openSUSE:Factory/.python-AnyQt.new.1958 (New) Package is "python-AnyQt" Mon Mar 7 17:48:18 2022 rev:8 rq:959997 version:0.0.14 Changes: --- /work/SRC/openSUSE:Factory/python-AnyQt/python-AnyQt.changes 2021-08-16 10:17:41.486651460 +0200 +++ /work/SRC/openSUSE:Factory/.python-AnyQt.new.1958/python-AnyQt.changes 2022-03-07 17:49:08.899081598 +0100 @@ -1,0 +2,9 @@ +Mon Mar 7 14:18:31 UTC 2022 - Dirk M??ller + +- update to 0.0.14 + * Raise a deprecationwarning on qlineedit.getTextMargins + * QSignalMapper: Add mappedInt/String when not available + * QComboBox: add a textActivated/Highlighted signal if not present + * QGroupBox: Add idClicked/Pressed/Released/Toggled when not present + +--- Old: AnyQt-0.0.13.tar.gz New: AnyQt-0.0.14.tar.gz Other differences: -- ++ python-AnyQt.spec ++ --- /var/tmp/diff_new_pack.EBr00K/_old 2022-03-07 17:49:09.515081420 +0100 +++ /var/tmp/diff_new_pack.EBr00K/_new 2022-03-07 17:49:09.523081418 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-AnyQt # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-AnyQt -Version:0.0.13 +Version:0.0.14 Release:0 Summary:PyQt4/PyQt5 compatibility layer License:GPL-3.0-only ++ AnyQt-0.0.13.tar.gz -> AnyQt-0.0.14.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.13/AnyQt/QtCore.py new/AnyQt-0.0.14/AnyQt/QtCore.py --- old/AnyQt-0.0.13/AnyQt/QtCore.py2021-05-06 11:27:26.0 +0200 +++ new/AnyQt-0.0.14/AnyQt/QtCore.py2022-02-25 09:13:49.0 +0100 @@ -245,6 +245,13 @@ if _api.USED_API == _api.QT_API_PYQT5: from PyQt5.QtCore import * +try: +# QSignalMapper.mapped[QWidget] does not work unless QtWidgets is +# imported before QSignalMapper is touched (even hasattr(QSM, "aa")) +# will cause QSignalMapper.mapped[QWidget] to fail with KeyError. +import PyQt5.QtWidgets +except ImportError: +pass Signal = pyqtSignal Slot = pyqtSlot Property = pyqtProperty @@ -324,5 +331,23 @@ if not hasattr(QEvent, "NonClientAreaMouseMove"): QEvent.NonClientAreaMouseMove = QEvent.Type(173) + +if not hasattr(QSignalMapper, "mappedInt"): # Qt < 5.15 +class QSignalMapper(QSignalMapper): +mappedInt = Signal(int) +mappedString = Signal(str) +mappedObject = Signal("QObject*") +mappedWidget = Signal("QWidget*") + +def __init__(self, *args, **kwargs): +super().__init__(*args, **kwargs) +self.mapped[int].connect(self.mappedInt) +self.mapped[str].connect(self.mappedString) +self.mapped["QObject*"].connect(self.mappedObject) +try: +self.mapped["QWidget*"].connect(self.mappedWidget) +except (KeyError, TypeError): +pass + #: 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.13/AnyQt/QtWidgets.py new/AnyQt-0.0.14/AnyQt/QtWidgets.py --- old/AnyQt-0.0.13/AnyQt/QtWidgets.py 2021-05-06 11:52:52.0 +0200 +++ new/AnyQt-0.0.14/AnyQt/QtWidgets.py 2022-02-25 09:13:49.0 +0100 @@ -357,6 +357,15 @@ __QWidget_getContentsMargins = QWidget.getContentsMargins QWidget.getContentsMargins = QWidget_getContentsMargins +if hasattr(QLineEdit, "getTextMargins"): +def __QLineEdit_getTextMargins(self): +warn("QLineEdit.getTextMargins is deprecated and will be removed.", + DeprecationWarning, stacklevel=2) +m = self.textMargins() +return m.left(), m.top(), m.right(), m.bottom() +QLineEdit.getTextMargins = __QLineEdit_getTextMargins +del __QLineEdit_getTextMargins + if hasattr(QApplication, "desktop"): def QApplication_desktop(): warn("QApplication.desktop is obsolete and is removed in Qt6", @@ -365,3 +374,74 @@ __QApplication_desktop = QApplication.desktop QApplication.desktop =
commit python-AnyQt for openSUSE:Factory
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 + +- 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.py2020-10-19 10:23:25.0 +0200 +++ new/AnyQt-0.0.13/AnyQt/QtCore.py2021-05-06 11:27:26.0 +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.0 +0200 +++ new/AnyQt-0.0.13/AnyQt/QtGui.py 2021-05-06 11:52:52.0 +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
commit python-AnyQt for openSUSE:Factory
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-26 14:46:40 Comparing /work/SRC/openSUSE:Factory/python-AnyQt (Old) and /work/SRC/openSUSE:Factory/.python-AnyQt.new.28504 (New) Package is "python-AnyQt" Tue Jan 26 14:46:40 2021 rev:6 rq:866654 version:0.0.11 Changes: --- /work/SRC/openSUSE:Factory/python-AnyQt/python-AnyQt.changes 2021-01-22 21:53:33.969954780 +0100 +++ /work/SRC/openSUSE:Factory/.python-AnyQt.new.28504/python-AnyQt.changes 2021-01-26 14:50:06.959707559 +0100 @@ -1,0 +2,6 @@ +Mon Jan 25 16:38:19 UTC 2021 - Mark??ta Machov?? + +- update to 0.0.11 + * QtGui: Make WheelEvent >=PyQt5.12 constructor work AnyQt-0.0.11.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.10/AnyQt/QtGui.py new/AnyQt-0.0.11/AnyQt/QtGui.py --- old/AnyQt-0.0.10/AnyQt/QtGui.py 2018-02-28 10:03:22.0 +0100 +++ new/AnyQt-0.0.11/AnyQt/QtGui.py 2020-10-21 11:03:14.0 +0200 @@ -136,6 +136,45 @@ if _api.USED_API == _api.QT_API_PYQT5: from PyQt5.QtGui import * +from PyQt5.QtCore import PYQT_VERSION as _PYQT_VERSION + +if _PYQT_VERSION < 0x50c00: # 5.12.0 + +class WheelEvent(QWheelEvent): +from PyQt5.QtCore import (QPointF as _QPointF, + QPoint as _QPoint, + Qt as _Qt) + +_constructor_signature = \ +((_QPointF, _QPoint), + (_QPointF, _QPoint), + (_QPoint,), + (_QPoint,), + (_Qt.MouseButtons, _Qt.MouseButton), + (_Qt.KeyboardModifiers, _Qt.KeyboardModifier), + (_Qt.ScrollPhase,), + (bool,), + (_Qt.MouseEventSource,)) + +def __init__(self, *args): +sig = WheelEvent._constructor_signature +if len(args) == len(sig) and \ +all(any(isinstance(a, t) for t in ts) +for a, ts in zip(args, sig)): +angleDelta = args[3] +if abs(angleDelta.x()) > abs(angleDelta.y()): +orientation = 0x1 # horizontal +delta = angleDelta.x() +else: +orientation = 0x2 # vertical +delta = angleDelta.y() +args = args[:4] + \ + (delta, orientation) + \ + args[4:7] + (args[8], args[7]) +super().__init__(*args) + +QWheelEvent = WheelEvent + elif _api.USED_API == _api.QT_API_PYQT4: import PyQt4.QtGui as _QtGui globals().update( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.10/AnyQt.egg-info/PKG-INFO new/AnyQt-0.0.11/AnyQt.egg-info/PKG-INFO --- old/AnyQt-0.0.10/AnyQt.egg-info/PKG-INFO2018-10-11 16:46:13.0 +0200 +++ new/AnyQt-0.0.11/AnyQt.egg-info/PKG-INFO2020-10-21 11:16:34.0 +0200 @@ -1,14 +1,14 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: AnyQt -Version: 0.0.10 +Version: 0.0.11 Summary: PyQt4/PyQt5 compatibility layer. Home-page: https://github.com/ales-erjavec/anyqt Author: Ale?? Erjavec Author-email: ales.erja...@fri.uni-lj.si License: GPLv3 +Project-URL: Bug Reports, https://github.com/ales-erjavec/anyqt/issues Project-URL: Source, https://github.com/ales-erjavec/anyqt Project-URL: Documentation, https://anyqt.readthedocs.io/en/stable/ -Project-URL: Bug Reports, https://github.com/ales-erjavec/anyqt/issues Description: AnyQt - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.10/PKG-INFO new/AnyQt-0.0.11/PKG-INFO --- old/AnyQt-0.0.10/PKG-INFO 2018-10-11 16:46:13.0 +0200 +++ new/AnyQt-0.0.11/PKG-INFO 2020-10-21 11:16:34.0 +0200 @@ -1,14 +1,14 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: AnyQt -Version: 0.0.10 +Version: 0.0.11 Summary: PyQt4/PyQt5 compatibility layer. Home-page: https://github.com/ales-erjavec/anyqt Author: Ale?? Erjavec Author-email: ales.erja...@fri.uni-lj.si License: GPLv3 +Project-URL: Bug Reports, https://github.com/ales-erjavec/anyqt/issues Project-URL: Source, https://github.com/ales-erjavec/anyqt Project-URL: Documentation, https://anyqt.readthedocs.io/en/stable/ -Project-URL: Bug Reports, https://github.com/ales-erjavec/anyqt/issues Description: AnyQt - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.10/setup.cfg new/AnyQt-0.0.11/setup.cfg ---
commit python-AnyQt for openSUSE:Factory
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 + +- 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 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',