commit python-pyqtgraph for openSUSE:Factory

2023-07-27 Thread Source-Sync
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á 
+
+- 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 
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:


commit python-pyqtgraph for openSUSE:Factory

2023-06-21 Thread Source-Sync
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-06-21 22:40:10

Comparing /work/SRC/openSUSE:Factory/python-pyqtgraph (Old)
 and  /work/SRC/openSUSE:Factory/.python-pyqtgraph.new.15902 (New)


Package is "python-pyqtgraph"

Wed Jun 21 22:40:10 2023 rev:9 rq:1094305 version:0.13.3

Changes:

--- /work/SRC/openSUSE:Factory/python-pyqtgraph/python-pyqtgraph.changes
2022-06-25 10:24:30.718695149 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyqtgraph.new.15902/python-pyqtgraph.changes 
2023-06-21 22:41:05.886818545 +0200
@@ -1,0 +2,31 @@
+Tue Jun 20 09:20:04 UTC 2023 - Guillaume GARDET 
+
+- update to version 0.13.3:
+  * https://github.com/pyqtgraph/pyqtgraph/releases/tag/pyqtgraph-0.13.3
+- Changelog of skipped 0.13.2:
+  * https://github.com/pyqtgraph/pyqtgraph/releases/tag/pyqtgraph-0.13.2
+- Re-enable test_rescaleData and add patch to fix it on aarch64:
+  * 2748.patch
+- Update no-sphinx-qt-doc.patch
+
+---
+Tue Feb 21 09:24:07 UTC 2023 - Guillaume GARDET 
+
+- update to version 0.13.1:
+  * Bug Fixes
++ Refactor examples using `Interactor` to run on changing
+  function parameters by @ntjess in
+  https://github.com/pyqtgraph/pyqtgraph/pull/2437
+  * API Change
++ deprecate GraphicsObject::parentChanged method by @pijyoi
+  in https://github.com/pyqtgraph/pyqtgraph/pull/2420
+  * Other
++ Move Console to generic template and make font Courier New
+  by @j9ac9k in https://github.com/pyqtgraph/pyqtgraph/pull/2435
+- Changelog of skipped 0.13.0:
+  * 
https://github.com/pyqtgraph/pyqtgraph/compare/pyqtgraph-0.12.4...pyqtgraph-0.13.0
+- Disable test_rescaleData on aarch64 until fixed upstream
+- Add patch to not build sphinx qt doc as it fails:
+  * no-sphinx-qt-doc.patch
+
+---

Old:

  pyqtgraph-0.12.4.tar.gz

New:

  2748.patch
  no-sphinx-qt-doc.patch
  pyqtgraph-0.13.3.tar.gz



Other differences:
--
++ python-pyqtgraph.spec ++
--- /var/tmp/diff_new_pack.uD2MC1/_old  2023-06-21 22:41:06.342821289 +0200
+++ /var/tmp/diff_new_pack.uD2MC1/_new  2023-06-21 22:41:06.346821314 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyqtgraph
 #
-# 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
@@ -20,7 +20,7 @@
 %define skip_python2 1
 %bcond_without  test
 Name:   python-pyqtgraph
-Version:0.12.4
+Version:0.13.3
 Release:0
 Summary:Scientific Graphics and GUI Library for Python
 License:MIT
@@ -28,13 +28,20 @@
 URL:https://www.pyqtgraph.org/
 # test data is only in the GitHub archive
 Source: 
https://github.com/pyqtgraph/pyqtgraph/archive/refs/tags/pyqtgraph-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE - Borrowed from Fedora - 
https://src.fedoraproject.org/rpms/python-pyqtgraph/tree/
+# Upstream issue: https://github.com/pyqtgraph/pyqtgraph/issues/2644
+Patch1: no-sphinx-qt-doc.patch
+# https://github.com/pyqtgraph/pyqtgraph/issues/2645
+Patch2: 2748.patch
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module numpy >= 1.17}
+BuildRequires:  %{python_module pydata-sphinx-theme}
 BuildRequires:  %{python_module qt5 >= 5.12}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros >= 20210628
 BuildRequires:  python3-Sphinx
+BuildRequires:  python3-sphinx-qt-documentation
 Requires:   python-numpy >= 1.17
 Recommends: python-colorcet
 Recommends: python-cupy
@@ -82,6 +89,8 @@
 
 %prep
 %setup -q -n pyqtgraph-pyqtgraph-%{version}
+%patch1 -p1
+%patch2 -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

++ 2748.patch ++
>From 1cf3f2c6a8c1c3efd2b8b2bdba168132dafb3f62 Mon Sep 17 00:00:00 2001
From: KIU Shueng Chuan 
Date: Sat, 17 Jun 2023 10:38:56 +0800
Subject: [PATCH] generate random integers directly

---
 tests/test_functions.py | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/test_functions.py b/tests/test_functions.py
index e0b079202c..426d757348 100644
--- a/tests/test_functions.py
+++ b/tests/test_functions.py
@@ -118,10 +118,15 @@ def test_subArray():
 
 
 def test_rescaleData():
+rng = np.random.default_rng(12345)
 dtypes = map(np.dtype, ('ubyte', 'uint16', 'byte', 'int16', 'int', 

commit python-pyqtgraph for openSUSE:Factory

2022-06-25 Thread Source-Sync
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 2022-06-25 10:24:17

Comparing /work/SRC/openSUSE:Factory/python-pyqtgraph (Old)
 and  /work/SRC/openSUSE:Factory/.python-pyqtgraph.new.1548 (New)


Package is "python-pyqtgraph"

Sat Jun 25 10:24:17 2022 rev:8 rq:984878 version:0.12.4

Changes:

--- /work/SRC/openSUSE:Factory/python-pyqtgraph/python-pyqtgraph.changes
2022-01-25 17:37:31.849730715 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pyqtgraph.new.1548/python-pyqtgraph.changes  
2022-06-25 10:24:30.718695149 +0200
@@ -1,0 +2,73 @@
+Thu Jun 23 06:40:22 UTC 2022 - Arun Persaud 
+
+- update to version 0.12.4:
+  * Highlights:
++ #2055 Jupyter Support via jupyter-rfb
++ #2011 Experimental High Performance With Lines > 1px Thickness
++ #2059/#2153 Python 3.10 Support
+  * New Features:
++ #2041 Allow unsetting various options in PlotDataItem and
+   PlotCurveItem
++ #2052 PlotItem Average pen and shadow pen are now accessible
++ #2090 More coninient methods for color maps and bars
+  * Performance Enhancements:
++ #2023 PColorMeshItem Performance Improvements
++ #2032 Speed up PlotCurveItem fillLevel
++ #2036 Speed up arrayToQPath for connect='all' with non-finite
+   values
++ #2111 PlotCurveItem OpenGL avoid automatic conversion from
+   float64 to float32
++ #2124 Go back to using np.clip on Windows with numpy 1.22 or
+   newer
++ #2131 Avoid PyOpenGL automatic array conversion
++ #2198 Cache values used in GraphicsWidget .boundingRect() and
+   .shape() methods
++ #2199 Avoid unnecessary call to viewRange if autoRange is
+   disabled
++ #2202 Cachce ViewBox view pixel size
+  * Bug Fixes:
++ #2034 Fix Mouse Event possitioning issue with grid
++ #2047 Fixed WidgetGroup Handling QSplitter
++ #2054 Limit ViewBox based on double precision limitations
++ #2085 Reverse coordinates when drawing on row-major images
++ #2087 Fix broken imports in some examples
++ #2089 Don't raise exception when close method of an
+   already-closed dock is called
++ #2101 Change GroupParameterItem palette to look ok in darkmode
+   on macOS
++ #2103 Fix stuck ColorBarItem
++ #2132 Workaround for PySide6 6.2.2 breaking change
++ #2130 RangeColorMapItem derives from ColorMapParameter
++ #2147 Fire correct signal for Checklist ParameterItem type
++ #2148 Avoid comparing a string with a np.ndarray
++ #2170 Fix formatting on minimum value of GradientLegend
+  * API/Behavior Changes:
++ #2081 Separate x and y flags for AxisItem.setLogMode
++ #2086 ParameterTree PenParameter now uses GrouParameter instead
+   of popup button
++ #2097 Add a proxy delay to checklist ParameterItem changes via
+   children edits
++ #2192 Added option to makeARGB to disable masking NaNs
+  * Other:
++ #1915 Deprecate QtWidgets accessed through QtGui
++ #2002 isort and pycln prun over entire repo
++ #2038 Fixed various deprecations
++ #2045 Examples Directory moved inside project directory
++ #2051 Implement Pickle Protocol for RemoteGraphicsView
++ #2053 Disable unneeded call to ViewBox.prepareForPaint()
++ #2057 Avoid re-dispatching mouse events from the AxisItem
++ #2064 Add a quantization limit to ViewBox
++ #2073 Implementing glInfo without PyOpenGL
++ #2077 Improved error message for invalid PYQTGRAPH_QT_LIB
++ #2083 Added check for ROI to make sure its in a GraphicsScene
++ #2093 Add helpful exceptions for invalid inputs to some methods
++ #2096 Be lazier about importing h5py
++ #2098 Remove polluting import namespace using *
++ #2099 Convert == None to is None checks
++ #2100 Avoid re-using variables in nested loops
++ #2124 Fixed variety of deprecation warnings
++ #2154 Fix typos and formatting errors in comments/docstrings
++ #2194 stop using deprecated numpy.fromstring and use
+   numpy.frombuffer instead
+
+---

Old:

  pyqtgraph-0.12.3.tar.gz

New:

  pyqtgraph-0.12.4.tar.gz



Other differences:
--
++ python-pyqtgraph.spec ++
--- /var/tmp/diff_new_pack.3Lz5vV/_old  2022-06-25 10:24:31.214695857 +0200
+++ /var/tmp/diff_new_pack.3Lz5vV/_new  2022-06-25 10:24:31.218695863 +0200
@@ -17,15 +17,15 @@
 
 
 %{?!python_module:%define python_module() python3-%{**}}
-%bcond_without  test
 %define skip_python2 1
+%bcond_without  test
 Name:   python-pyqtgraph
-Version:0.12.3
+Version:0.12.4
 Release:0
 Summary:Scientific Graphics and GUI 

commit python-pyqtgraph for openSUSE:Factory

2022-01-25 Thread Source-Sync
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 2022-01-25 17:36:03

Comparing /work/SRC/openSUSE:Factory/python-pyqtgraph (Old)
 and  /work/SRC/openSUSE:Factory/.python-pyqtgraph.new.1938 (New)


Package is "python-pyqtgraph"

Tue Jan 25 17:36:03 2022 rev:7 rq:948920 version:0.12.3

Changes:

--- /work/SRC/openSUSE:Factory/python-pyqtgraph/python-pyqtgraph.changes
2021-09-02 23:20:22.284557716 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyqtgraph.new.1938/python-pyqtgraph.changes  
2022-01-25 17:37:31.849730715 +0100
@@ -1,0 +2,89 @@
+Sat Jan 22 17:57:48 UTC 2022 - Ben Greiner 
+
+- Update to 0.12.3
+  * Highlights:
+- PlotCurveItem render speed is now substantially faster
+- #1868/#1873 Example app now has filter text input
+- #1910 PlotSpeedTest now has parameter tree control panel
+  * New Features:
+- #1844 More parameter item types (File, Calendar, ProgressBar,
+  Font, Pen, Slider)
+- #1865 Matplotlib colormaps viridis, plasma, magma and inferno
+  are now included in pyqtgraph
+- #1911 Extend Colormap with HSL cycles and subset generation
+- #1932 Make anti-aliasing optional for paintGL in
+  PlotCurveItem
+- #1944 Expand use of QColor functions/methods, including
+  setNamedColor
+- #1952 Add checklist parameter item
+- #1998 ThreadTrace can now save to a file
+  * Performance Enhancement:
+- #1927 Reduce ColorMap inefficiencies
+- #1956 use QByteArray as backing store in arrayToQPath
+- #1965 perform arrayToQPath in chunks
+  * Bug Fixes:
+- #1845 Fix zoom behavior with showGrid by separating mouse
+  events stolen by AxisItem
+- #1860 RemoteGraphicsView and RemoteSpeedTest now work under
+  windows venv environments
+- #1865 Fixed matplotlib colormap importer code
+- #1869 Fix ColorBarItem tick position on export
+- #1871 Allow adding items to GLViewWidget before showing plot
+- #1875 Fix calls in mouse methods in GLViewWidgets due to
+  missing event.localPos() in PyQt6
+- #1876 Fix for improper placement of ROI handle positions in
+  some cases
+- #1889/#2003 Fix call to drawText in GLTextItem and
+  GLGradientLegendItem on Python 3.10
+- #1897/#1902 Re-enable "experimental" feature with fix for
+  PlotCurveItem with OpenGL on Windows
+- #1907 Fix GLVolumeItem example for arm64 platforms
+- #1909 Check if AxisItem.label is None before and exit early
+  in resizeEvent
+- #1920 arrayToQPath can handle empty paths
+- #1936 QPolygonF creation can now handle empty arrays
+- #1968 Fix output of clip_array in colormap.modulatedBarData
+  not being assigned
+- #1973 Fix PlotItem.updateDecimate unhiding intentionally
+  hidden curves
+- #1974 Fix ImageView levelMode with levelMode == 'rgba'
+- #1987 Fix HistogramLUTItem itemChanged with use of autoLevel
+- #2009 Fix ROI curves hidding in ImageView
+  * API/Behavior Changes:
+- #1992 Reverted to traditional log10 mode for PlotDataItem
+- #1840 Allow border=False in GraphicsLayout
+- #1846 Reduced pollution to pg.namespace
+- #1853 ColorMap.getColors and getStops behavior changes
+- #1864 Draw GradientLegend in ViewBox coordinates
+- #1885 Raise TypeError instead of general Exception if
+  functions.eq is unable to determine equality
+- #1903 Cleanup GLViewWidget
+- #1908 More readable parameters for ColorBarItem
+- #1914 Emit deprecation warning for use of pyqtgraph.ptime
+- #1928 Restore previous signature of TargetItem.setPos
+- #1940 fix log mode by reverting to previous formulation
+- #1954 Deprecate use of values opt for list parameter type
+- #1995 ColorButton now takes optional padding argument instead
+  of hardcoded value of 6
+  * Other:
+- #1862/#1901 MetaArray now under deprecation warning, to be
+  removed in a future version
+- #1892 Add GLPainterItem Example
+- #1844 Debugged elusive intermitted CI segfault
+- #1870/#1891 Updated README.md
+- #1895 Update CONTRIBUTING.md
+- #1913 Bump sphinx and theme versions
+- #1919 Re-organize paramtypes
+- #1935 Remove some unused imports
+- #1939 Remove usage of python2_3.py
+- #1941 Remove str casting of QTextEdit.toPlainText output
+- #1942 Add EOF newline to files missing it
+- #1943 Remove python2 code paths
+- #1951 Fix typos in docs
+- #1957 Bump minimum numpy version to 1.18
+- #1968 Fix ImageView calling deprecated QGraphicsItem.scale()
+- #1985 delegate float LUTs to makeARGB with warning
+- #2014 Replace couple absolute imports with relative imports
+- Do not enable pyside6 yet: tests fail
+

commit python-pyqtgraph for openSUSE:Factory

2021-09-02 Thread Source-Sync
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 2021-09-02 23:20:11

Comparing /work/SRC/openSUSE:Factory/python-pyqtgraph (Old)
 and  /work/SRC/openSUSE:Factory/.python-pyqtgraph.new.1899 (New)


Package is "python-pyqtgraph"

Thu Sep  2 23:20:11 2021 rev:6 rq:915530 version:0.12.2

Changes:

--- /work/SRC/openSUSE:Factory/python-pyqtgraph/python-pyqtgraph.changes
2021-08-30 13:55:46.385865899 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyqtgraph.new.1899/python-pyqtgraph.changes  
2021-09-02 23:20:22.284557716 +0200
@@ -1,0 +2,15 @@
+Wed Sep  1 15:06:22 UTC 2021 - Ben Greiner 
+
+- Use github archive for tests
+  * remove test-data-8.tar.gz: It has been moved to the main repo
+gh#pyqtgraph/pyqtgraph#1807
+- Fix rpmlint
+  * remove spurious executable bits and interpreter lines from
+examples
+- Update requirements
+  * Ensure that it does not build on Leap by requiring
+python-base >= 3.7
+  * Allow and test PyQt6 and PySide2 backend
+- Don't test OpenGL on ARM because Qt uses unsupported OpenGL ES
+
+---

Old:

  test-data-8.tar.gz



Other differences:
--
++ python-pyqtgraph.spec ++
--- /var/tmp/diff_new_pack.ddCbTi/_old  2021-09-02 23:20:23.404559112 +0200
+++ /var/tmp/diff_new_pack.ddCbTi/_new  2021-09-02 23:20:23.408559117 +0200
@@ -16,12 +16,10 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
 %bcond_without  test
 %define skip_python2 1
 %define skip_python36 1
-# check pyqtgraph/tests/image_testing.py for the current tag
-%define testdatatag test-data-8
 Name:   python-pyqtgraph
 Version:0.12.2
 Release:0
@@ -29,16 +27,17 @@
 License:MIT
 Group:  Development/Languages/Python
 URL:http://www.pyqtgraph.org/
-Source: 
https://files.pythonhosted.org/packages/source/p/pyqtgraph/pyqtgraph-%{version}.tar.gz
-Source1:
https://github.com/pyqtgraph/test-data/archive/%{testdatatag}.tar.gz
+# test data is only in the GitHub archive
+Source: 
https://github.com/pyqtgraph/pyqtgraph/archive/refs/tags/pyqtgraph-%{version}.tar.gz
+BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module numpy >= 1.17}
 BuildRequires:  %{python_module qt5 >= 5.12}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  dos2unix
 BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
+BuildRequires:  python-rpm-macros >= 20210628
 BuildRequires:  python3-Sphinx
 %if %{with test}
+BuildRequires:  %{python_module PyQt6 >= 6.1}
 BuildRequires:  %{python_module h5py}
 BuildRequires:  %{python_module matplotlib-qt5}
 BuildRequires:  %{python_module matplotlib}
@@ -47,10 +46,14 @@
 BuildRequires:  %{python_module pytest-xvfb}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module scipy}
-BuildRequires:  git-core
+BuildRequires:  python3-pyside2 >= 5.12
 %endif
 Requires:   python-numpy >= 1.17
-Requires:   python-qt5 >= 5.12
+%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
+Requires:   (python-qt5 >= 5.12 or python-PyQt6 >= 6.1 or python3-pyside2 
>= 5.12)
+%else
+Requires:   (python-qt5 >= 5.12 or python-PyQt6 >= 6.1)
+%endif
 Recommends: python-colorcet
 Recommends: python-cupy
 Recommends: python-h5py
@@ -58,7 +61,6 @@
 Recommends: python-opengl
 Recommends: python-scipy
 BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -78,24 +80,15 @@
 Documentation and help files for %{name}
 
 %prep
-%setup -q -n pyqtgraph-%{version}
-chmod a+x examples/*.py
-%if %{with test}
-# For local builds: Delete files from previous failed builds, if any.
-# The next version allows us to install test data into a custom
-# $GITHUB_WORKSPACE directory inside the autocleaned BUILD dir instead of ~.
-rm -rf ~/.pyqtgraph/test-data
-mkdir -p ~/.pyqtgraph/test-data
-pushd ~/.pyqtgraph/test-data
-tar -x --strip-components=2 -f %{SOURCE1}
-git init
-git config user.email "abuild@obs.local"
-git config user.name "abuild"
-git add .
-git commit -m "testing on openSUSE"
-git tag %{testdatatag}
-popd
-%endif
+%setup -q -n pyqtgraph-pyqtgraph-%{version}
+# Fix rpmlint
+chmod a-x examples/Symbols.py
+# only a handful of example scripts have interpreter lines, remove all, they 
don't have executable bits
+sed -i '1{/^#!/ d}' examples/*.py
+# fix eol encoding
+sed -i 's/\r//' examples/DateAxisItem_QtDesigner.ui
+# gcc calls, but not properly marked as script
+chmod -x examples/verlet_chain/make
 
 %build
 %python_build
@@ -113,30 +106,28 @@
 cp 

commit python-pyqtgraph for openSUSE:Factory

2021-08-30 Thread Source-Sync
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 2021-08-30 13:55:25

Comparing /work/SRC/openSUSE:Factory/python-pyqtgraph (Old)
 and  /work/SRC/openSUSE:Factory/.python-pyqtgraph.new.1899 (New)


Package is "python-pyqtgraph"

Mon Aug 30 13:55:25 2021 rev:5 rq:914977 version:0.12.2

Changes:

--- /work/SRC/openSUSE:Factory/python-pyqtgraph/python-pyqtgraph.changes
2021-02-15 23:18:29.595592328 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pyqtgraph.new.1899/python-pyqtgraph.changes  
2021-08-30 13:55:46.385865899 +0200
@@ -1,0 +2,17 @@
+Mon Aug 30 07:48:41 UTC 2021 - Fusion Future 
+
+- Update to 0.12.2:
+  * Qt6 6.0 support has been removed in favor of Qt6 6.1+
+  * More numba utilization, specifically for makeARGB
+  * Substantial ImageItem performance improvements have been made
+  * Significant performance improvements made to ScatterPlotItem
+and LinePlots
+  * More ColorMap features/support
+- Changes since 0.12.0:
+  * Qt < 5.12, Python < 3.7, and NumPy < 1.17 are no longer
+supported.
+  * For full changelog (huge) since 0.12.0 see
+https://github.com/pyqtgraph/pyqtgraph/blob/master/CHANGELOG
+- Update test data version to 8.
+
+---

Old:

  pyqtgraph-0.11.1.tar.gz
  test-data-7.tar.gz

New:

  pyqtgraph-0.12.2.tar.gz
  test-data-8.tar.gz



Other differences:
--
++ python-pyqtgraph.spec ++
--- /var/tmp/diff_new_pack.HxZSjC/_old  2021-08-30 13:55:46.849866494 +0200
+++ /var/tmp/diff_new_pack.HxZSjC/_new  2021-08-30 13:55:46.853866500 +0200
@@ -18,12 +18,12 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without  test
-# Declares to Follow NEP 29 in the next release and depends on NumPy which 
dropped Python 3.6
+%define skip_python2 1
 %define skip_python36 1
 # check pyqtgraph/tests/image_testing.py for the current tag
-%define testdatatag test-data-7
+%define testdatatag test-data-8
 Name:   python-pyqtgraph
-Version:0.11.1
+Version:0.12.2
 Release:0
 Summary:Scientific Graphics and GUI Library for Python
 License:MIT
@@ -31,8 +31,8 @@
 URL:http://www.pyqtgraph.org/
 Source: 
https://files.pythonhosted.org/packages/source/p/pyqtgraph/pyqtgraph-%{version}.tar.gz
 Source1:
https://github.com/pyqtgraph/test-data/archive/%{testdatatag}.tar.gz
-BuildRequires:  %{python_module numpy >= 1.8}
-BuildRequires:  %{python_module qt5}
+BuildRequires:  %{python_module numpy >= 1.17}
+BuildRequires:  %{python_module qt5 >= 5.12}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  dos2unix
 BuildRequires:  fdupes
@@ -49,12 +49,12 @@
 BuildRequires:  %{python_module scipy}
 BuildRequires:  git-core
 %endif
-Requires:   python-numpy >= 1.8
-Requires:   python-qt5
-# Next release:
-#Recommends: python-colorcet
-#Recommends: python-cupy
+Requires:   python-numpy >= 1.17
+Requires:   python-qt5 >= 5.12
+Recommends: python-colorcet
+Recommends: python-cupy
 Recommends: python-h5py
+Recommends: python-numba
 Recommends: python-opengl
 Recommends: python-scipy
 BuildArch:  noarch

++ pyqtgraph-0.11.1.tar.gz -> pyqtgraph-0.12.2.tar.gz ++
 54779 lines of diff (skipped)

++ test-data-7.tar.gz -> test-data-8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test-data-test-data-7/LICENSE 
new/test-data-test-data-8/LICENSE
--- old/test-data-test-data-7/LICENSE   1970-01-01 01:00:00.0 +0100
+++ new/test-data-test-data-8/LICENSE   2020-06-13 21:41:20.0 +0200
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Luke Campagnola
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF 

commit python-pyqtgraph for openSUSE:Factory

2021-02-15 Thread Source-Sync
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 2021-02-15 23:16:17

Comparing /work/SRC/openSUSE:Factory/python-pyqtgraph (Old)
 and  /work/SRC/openSUSE:Factory/.python-pyqtgraph.new.28504 (New)


Package is "python-pyqtgraph"

Mon Feb 15 23:16:17 2021 rev:4 rq:871398 version:0.11.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pyqtgraph/python-pyqtgraph.changes
2018-05-29 10:31:46.233620402 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyqtgraph.new.28504/python-pyqtgraph.changes 
2021-02-15 23:18:29.595592328 +0100
@@ -1,0 +2,13 @@
+Thu Feb 11 21:29:49 UTC 2021 - Ben Greiner 
+
+- Update to version 0.11.1
+  * For full changelog (huge) since 0.10.0 see
+https://github.com/pyqtgraph/pyqtgraph/blob/master/CHANGELOG
+  * 0.11 is the last feature release to support Python 2 and PyQt4
+  * PySide2 support
+- Enable test suite with test data
+  * construct git repo from test-data-7.tar.gz
+- Project adopted NEP 29 for next release. Drop python36 build
+  now, because there is no python36-{numpy,scipy} in TW anymore.
+
+---

Old:

  pyqtgraph-0.10.0.tar.gz

New:

  pyqtgraph-0.11.1.tar.gz
  test-data-7.tar.gz



Other differences:
--
++ python-pyqtgraph.spec ++
--- /var/tmp/diff_new_pack.9I92t6/_old  2021-02-15 23:18:30.243593296 +0100
+++ /var/tmp/diff_new_pack.9I92t6/_new  2021-02-15 23:18:30.247593302 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyqtgraph
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -12,47 +12,62 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_withtest
+%bcond_without  test
+# Declares to Follow NEP 29 in the next release and depends on NumPy which 
dropped Python 3.6
+%define skip_python36 1
+# check pyqtgraph/tests/image_testing.py for the current tag
+%define testdatatag test-data-7
 Name:   python-pyqtgraph
-Version:0.10.0
+Version:0.11.1
 Release:0
 Summary:Scientific Graphics and GUI Library for Python
 License:MIT
 Group:  Development/Languages/Python
-Url:http://www.pyqtgraph.org/
+URL:http://www.pyqtgraph.org/
 Source: 
https://files.pythonhosted.org/packages/source/p/pyqtgraph/pyqtgraph-%{version}.tar.gz
-BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module numpy}
-BuildRequires:  %{python_module opengl}
-BuildRequires:  %{python_module qt5 >= 5.5}
-BuildRequires:  %{python_module scipy >= 0.7}
+Source1:
https://github.com/pyqtgraph/test-data/archive/%{testdatatag}.tar.gz
+BuildRequires:  %{python_module numpy >= 1.8}
+BuildRequires:  %{python_module qt5}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  dos2unix
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-Sphinx
 %if %{with test}
+BuildRequires:  %{python_module h5py}
+BuildRequires:  %{python_module matplotlib-qt5}
+BuildRequires:  %{python_module matplotlib}
+BuildRequires:  %{python_module opengl}
+BuildRequires:  %{python_module pytest-xdist}
+BuildRequires:  %{python_module pytest-xvfb}
 BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module scipy}
+BuildRequires:  git-core
 %endif
-Requires:   python-numpy
-Requires:   python-opengl
+Requires:   python-numpy >= 1.8
 Requires:   python-qt5
-Requires:   python-scipy
+# Next release:
+#Recommends: python-colorcet
+#Recommends: python-cupy
+Recommends: python-h5py
+Recommends: python-opengl
+Recommends: python-scipy
 BuildArch:  noarch
 
 %python_subpackages
 
 %description
-PyQtGraph is a pure-python graphics and GUI library built on 
-PyQt4 / PySide and numpy. It is intended for use in 
-mathematics / scientific / engineering applications. 
+A pure-Python graphics library for PyQt/PySide/PyQt5/PySide2
 
-Despite being written entirely in python, it leverages numpy for
-number crunching and Qt's GraphicsView framework for display.
+PyQtGraph is intended for use in mathematics / scientific / engineering 
+applications. It is written in pure python, but the library leverages 
+numpy for number crunching, Qt's