Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pyqtgraph for 
openSUSE:Factory checked in at 2023-07-27 16:51:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyqtgraph (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyqtgraph.new.32662 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyqtgraph"

Thu Jul 27 16:51:38 2023 rev:10 rq:1100846 version:0.13.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyqtgraph/python-pyqtgraph.changes        
2023-06-21 22:41:05.886818545 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyqtgraph.new.32662/python-pyqtgraph.changes 
    2023-07-27 16:51:59.774216913 +0200
@@ -1,0 +2,5 @@
+Wed Jul 19 11:45:16 UTC 2023 - Markéta Machová <mmach...@suse.com>
+
+- Add upstream patch py3114.patch to fix build with Python 3.11.4+
+
+-------------------------------------------------------------------

New:
----
  py3114.patch

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

Other differences:
------------------
++++++ python-pyqtgraph.spec ++++++
--- /var/tmp/diff_new_pack.xsjC8o/_old  2023-07-27 16:52:00.470220845 +0200
+++ /var/tmp/diff_new_pack.xsjC8o/_new  2023-07-27 16:52:00.474220867 +0200
@@ -33,6 +33,8 @@
 Patch1:         no-sphinx-qt-doc.patch
 # https://github.com/pyqtgraph/pyqtgraph/issues/2645
 Patch2:         2748.patch
+# https://github.com/pyqtgraph/pyqtgraph/pull/2760
+Patch3:         py3114.patch
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module numpy >= 1.17}
 BuildRequires:  %{python_module pydata-sphinx-theme}
@@ -89,8 +91,7 @@
 
 %prep
 %setup -q -n pyqtgraph-pyqtgraph-%{version}
-%patch1 -p1
-%patch2 -p1
+%autopatch -p1
 # Fix rpmlint
 chmod a-x pyqtgraph/examples/Symbols.py
 # only a handful of example scripts have interpreter lines, remove all, they 
don't have executable bits

++++++ py3114.patch ++++++
>From 6534a3f51d97a5f51ad1ea284923beea5a9ec8be Mon Sep 17 00:00:00 2001
From: KIU Shueng Chuan <nixch...@gmail.com>
Date: Tue, 27 Jun 2023 21:32:50 +0800
Subject: [PATCH] xor away unwanted bit value

---
 pyqtgraph/graphicsItems/ROI.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/pyqtgraph/graphicsItems/ROI.py b/pyqtgraph/graphicsItems/ROI.py
index 53ab90806e..39fb143298 100644
--- a/pyqtgraph/graphicsItems/ROI.py
+++ b/pyqtgraph/graphicsItems/ROI.py
@@ -1542,7 +1542,13 @@ def mouseDragEvent(self, ev):
         if ev.isStart():
             if ev.button() == QtCore.Qt.MouseButton.LeftButton:
                 roi.setSelected(True)
-                mods = ev.modifiers() & ~self.snapModifier
+                mods = ev.modifiers()
+                try:
+                    mods &= ~self.snapModifier
+                except ValueError:
+                    # workaround bug in Python 3.11.4 that affects PyQt
+                    if mods & self.snapModifier:
+                        mods ^= self.snapModifier
                 if roi.translatable and mods == self.translateModifier:
                     self.dragMode = 'translate'
                 elif roi.rotatable and mods == self.rotateModifier:

Reply via email to