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 <dmuel...@suse.com>
+
+- 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.py    2021-05-06 11:27:26.000000000 +0200
+++ new/AnyQt-0.0.14/AnyQt/QtCore.py    2022-02-25 09:13:49.000000000 +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.000000000 +0200
+++ new/AnyQt-0.0.14/AnyQt/QtWidgets.py 2022-02-25 09:13:49.000000000 +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 = staticmethod(QApplication_desktop)
     del QApplication_desktop
+
+
+from AnyQt.QtCore import Signal, Slot
+
+if not hasattr(QButtonGroup, "idClicked"):
+    class QButtonGroup(QButtonGroup):
+        idClicked = Signal(int)
+        idPressed = Signal(int)
+        idReleased = Signal(int)
+        idToggled = Signal(int, bool)
+
+        def __init__(self, *args, **kwargs):
+            buttonClicked = kwargs.pop("buttonClicked", None)
+            buttonPressed = kwargs.pop("buttonPressed", None)
+            buttonReleased = kwargs.pop("buttonReleased", None)
+            buttonToggled = kwargs.pop("buttonToggled", None)
+            super().__init__(*args, **kwargs)
+            self.buttonClicked.connect(self.__button_clicked)
+            self.buttonPressed.connect(self.__button_pressed)
+            self.buttonReleased.connect(self.__button_released)
+            self.buttonToggled.connect(self.__button_toggled)
+            if buttonClicked is not None:
+                self.buttonClicked.connect(buttonClicked)
+            if buttonPressed is not None:
+                self.buttonPressed.connect(buttonPressed)
+            if buttonReleased is not None:
+                self.buttonReleased.connect(buttonReleased)
+            if buttonToggled is not None:
+                self.buttonToggled.connect(buttonToggled)
+
+        @Slot(QAbstractButton)
+        def __button_clicked(self, button):
+            self.idClicked.emit(self.id(button))
+
+        @Slot(QAbstractButton)
+        def __button_pressed(self, button):
+            self.idPressed.emit(self.id(button))
+
+        @Slot(QAbstractButton)
+        def __button_released(self, button):
+            self.idReleased.emit(self.id(button))
+
+        @Slot(QAbstractButton, bool)
+        def __button_toggled(self, button, checked):
+            self.idToggled.emit(self.id(button), checked)
+
+if not hasattr(QComboBox, "textActivated"):
+    class QComboBox(QComboBox):
+        textActivated = Signal(str)
+        textHighlighted = Signal(str)
+
+        def __init__(self, *args, **kwargs):
+            activated = kwargs.pop("activated", None)
+            highlighted = kwargs.pop("highlighted", None)
+            super().__init__(*args, **kwargs)
+            self.activated[int].connect(self.__activated)
+            self.highlighted[int].connect(self.__highlighted)
+            if activated is not None:
+                self.activated.connect(activated)
+            if highlighted is not None:
+                self.highlighted.connect(highlighted)
+
+        @Slot(int)
+        def __activated(self, index):
+            self.textActivated.emit(self.itemText(index))
+
+        @Slot(int)
+        def __highlighted(self, index):
+            self.textHighlighted.emit(self.itemText(index))
+
+del Signal, Slot
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AnyQt-0.0.13/AnyQt.egg-info/PKG-INFO 
new/AnyQt-0.0.14/AnyQt.egg-info/PKG-INFO
--- old/AnyQt-0.0.13/AnyQt.egg-info/PKG-INFO    2021-05-06 11:54:17.000000000 
+0200
+++ new/AnyQt-0.0.14/AnyQt.egg-info/PKG-INFO    2022-02-25 09:15:26.000000000 
+0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: AnyQt
-Version: 0.0.13
+Version: 0.0.14
 Summary: PyQt4/PyQt5 compatibility layer.
 Home-page: https://github.com/ales-erjavec/anyqt
 Author: Ale?? Erjavec
@@ -9,26 +9,6 @@
 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/
-Description: AnyQt
-        -----
-        
-        PyQt/PySide compatibility layer.
-        
-        Features:
-        
-        * At the top level AnyQt exports a Qt5 compatible module namespace 
along with
-          some minimal renames to better support portability between different
-          versions
-        * Which Qt api/backend is chosen can be controlled by a QT_API env 
variable
-        * The api can be chosen/forced programmatically (as long as no
-          PyQt4/PyQt5/PySide/PySide2 was already imported)
-        * provides an optional compatibility import hook, that denys imports 
from
-          conflicting Qt api, or intercepts and fakes a Qt4 api imports, to 
use a Qt5
-          compatible API (some monkey patching is involved).
-        
-        The documentation is hosted at https://anyqt.readthedocs.io/en/stable/
-        
-        
 Keywords: GUI,PyQt4,PyQt5,PySide,PySide2,compatibility
 Platform: UNKNOWN
 Classifier: Development Status :: 1 - Planning
@@ -37,3 +17,26 @@
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 3
+License-File: LICENSE.txt
+
+AnyQt
+-----
+
+PyQt/PySide compatibility layer.
+
+Features:
+
+* At the top level AnyQt exports a Qt5 compatible module namespace along with
+  some minimal renames to better support portability between different
+  versions
+* Which Qt api/backend is chosen can be controlled by a QT_API env variable
+* The api can be chosen/forced programmatically (as long as no
+  PyQt4/PyQt5/PySide/PySide2 was already imported)
+* provides an optional compatibility import hook, that denys imports from
+  conflicting Qt api, or intercepts and fakes a Qt4 api imports, to use a Qt5
+  compatible API (some monkey patching is involved).
+
+The documentation is hosted at https://anyqt.readthedocs.io/en/stable/
+
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AnyQt-0.0.13/PKG-INFO new/AnyQt-0.0.14/PKG-INFO
--- old/AnyQt-0.0.13/PKG-INFO   2021-05-06 11:54:17.000000000 +0200
+++ new/AnyQt-0.0.14/PKG-INFO   2022-02-25 09:15:26.969040600 +0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: AnyQt
-Version: 0.0.13
+Version: 0.0.14
 Summary: PyQt4/PyQt5 compatibility layer.
 Home-page: https://github.com/ales-erjavec/anyqt
 Author: Ale?? Erjavec
@@ -9,26 +9,6 @@
 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/
-Description: AnyQt
-        -----
-        
-        PyQt/PySide compatibility layer.
-        
-        Features:
-        
-        * At the top level AnyQt exports a Qt5 compatible module namespace 
along with
-          some minimal renames to better support portability between different
-          versions
-        * Which Qt api/backend is chosen can be controlled by a QT_API env 
variable
-        * The api can be chosen/forced programmatically (as long as no
-          PyQt4/PyQt5/PySide/PySide2 was already imported)
-        * provides an optional compatibility import hook, that denys imports 
from
-          conflicting Qt api, or intercepts and fakes a Qt4 api imports, to 
use a Qt5
-          compatible API (some monkey patching is involved).
-        
-        The documentation is hosted at https://anyqt.readthedocs.io/en/stable/
-        
-        
 Keywords: GUI,PyQt4,PyQt5,PySide,PySide2,compatibility
 Platform: UNKNOWN
 Classifier: Development Status :: 1 - Planning
@@ -37,3 +17,26 @@
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 3
+License-File: LICENSE.txt
+
+AnyQt
+-----
+
+PyQt/PySide compatibility layer.
+
+Features:
+
+* At the top level AnyQt exports a Qt5 compatible module namespace along with
+  some minimal renames to better support portability between different
+  versions
+* Which Qt api/backend is chosen can be controlled by a QT_API env variable
+* The api can be chosen/forced programmatically (as long as no
+  PyQt4/PyQt5/PySide/PySide2 was already imported)
+* provides an optional compatibility import hook, that denys imports from
+  conflicting Qt api, or intercepts and fakes a Qt4 api imports, to use a Qt5
+  compatible API (some monkey patching is involved).
+
+The documentation is hosted at https://anyqt.readthedocs.io/en/stable/
+
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AnyQt-0.0.13/setup.cfg new/AnyQt-0.0.14/setup.cfg
--- old/AnyQt-0.0.13/setup.cfg  2021-05-06 11:54:17.000000000 +0200
+++ new/AnyQt-0.0.14/setup.cfg  2022-02-25 09:15:26.969040600 +0100
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 0.0.13
+current_version = 0.0.14
 commit = True
 tag = True
 tag_name = {new_version}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AnyQt-0.0.13/setup.py new/AnyQt-0.0.14/setup.py
--- old/AnyQt-0.0.13/setup.py   2021-05-06 11:52:52.000000000 +0200
+++ new/AnyQt-0.0.14/setup.py   2022-02-25 09:13:49.000000000 +0100
@@ -5,7 +5,7 @@
 from setuptools import setup, find_packages
 
 NAME = "AnyQt"
-VERSION = "0.0.13"
+VERSION = "0.0.14"
 AUTHOR = "Ale?? Erjavec"
 AUTHOR_EMAIL = "ales.erja...@fri.uni-lj.si"
 URL = "https://github.com/ales-erjavec/anyqt";

Reply via email to