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?? <mmach...@suse.com> + +- update to 0.0.11 + * QtGui: Make WheelEvent >=PyQt5.12 constructor work <PyQt5.12 + +------------------------------------------------------------------- Old: ---- AnyQt-0.0.10.tar.gz New: ---- AnyQt-0.0.11.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-AnyQt.spec ++++++ --- /var/tmp/diff_new_pack.zXjgFi/_old 2021-01-26 14:50:07.643708492 +0100 +++ /var/tmp/diff_new_pack.zXjgFi/_new 2021-01-26 14:50:07.643708492 +0100 @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-AnyQt -Version: 0.0.10 +Version: 0.0.11 Release: 0 Summary: PyQt4/PyQt5 compatibility layer License: GPL-3.0-only ++++++ AnyQt-0.0.10.tar.gz -> 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.000000000 +0100 +++ new/AnyQt-0.0.11/AnyQt/QtGui.py 2020-10-21 11:03:14.000000000 +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-INFO 2018-10-11 16:46:13.000000000 +0200 +++ new/AnyQt-0.0.11/AnyQt.egg-info/PKG-INFO 2020-10-21 11:16:34.000000000 +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.000000000 +0200 +++ new/AnyQt-0.0.11/PKG-INFO 2020-10-21 11:16:34.000000000 +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 --- old/AnyQt-0.0.10/setup.cfg 2018-10-11 16:46:13.000000000 +0200 +++ new/AnyQt-0.0.11/setup.cfg 2020-10-21 11:16:34.000000000 +0200 @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.0.10 +current_version = 0.0.11 commit = True tag = True tag_name = {new_version} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/AnyQt-0.0.10/setup.py new/AnyQt-0.0.11/setup.py --- old/AnyQt-0.0.10/setup.py 2018-10-11 16:44:20.000000000 +0200 +++ new/AnyQt-0.0.11/setup.py 2020-10-21 11:09:11.000000000 +0200 @@ -5,7 +5,7 @@ from setuptools import setup, find_packages NAME = "AnyQt" -VERSION = "0.0.10" +VERSION = "0.0.11" AUTHOR = "Ale?? Erjavec" AUTHOR_EMAIL = "ales.erja...@fri.uni-lj.si" URL = "https://github.com/ales-erjavec/anyqt"