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 <[email protected]>
+
+- 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_with test
+%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 GraphicsView framework for 2D display,
+and OpenGL for 3D display.
%package -n %{name}-doc
Summary: Documentation for %{name}
@@ -65,6 +80,22 @@
%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 "[email protected]"
+git config user.name "abuild"
+git add .
+git commit -m "testing on openSUSE"
+git tag %{testdatatag}
+popd
+%endif
%build
%python_build
@@ -92,20 +123,23 @@
sed -i "s|^#!/usr/bin/python$|#!%__python3|"
%{buildroot}%{_docdir}/%{name}/examples/$f.py
sed -i "s|^#!/usr/bin/python -i$|#!%__python3|"
%{buildroot}%{_docdir}/%{name}/examples/$f.py
done
-%{python_expand $python -m compileall -d %{$python_sitelib}
%{buildroot}%{$python_sitelib}/pyqtgraph/examples/
-$python -O -m compileall -d %{$python_sitelib}
%{buildroot}%{$python_sitelib}/pyqtgraph/examples/
-%fdupes %{buildroot}%{$python_sitelib}
-}
+%python_compileall
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
%fdupes %{buildroot}%{_docdir}/%{name}/
%if %{with test}
%check
-%python_expand py.test-%{$python_bin_suffix}
+# these tests need reference images audited by a user with GUI
+donttest+=" or test_ImageItem or test_PlotCurveItem"
+donttest+=" or test_ROI and (test_getArrayRegion or test_PolyLineROI)"
+# reload happens but is not detected
+donttest+=" or test_reload"
+%pytest -ra -n auto -k "not (${donttest:4})"
+rm -r ~/.pyqtgraph
%endif
%files %{python_files}
-%defattr(-,root,root,-)
%license LICENSE.txt
%exclude %{_docdir}/%{name}/doctrees/
%exclude %{_docdir}/%{name}/examples/
@@ -114,11 +148,10 @@
%{python_sitelib}/pyqtgraph-%{version}-py*.egg-info
%files -n %{name}-doc
-%defattr(-,root,root,-)
%license LICENSE.txt
-%dir %{_docdir}/%{name}/
-%{_docdir}/%{name}/doctrees/
-%{_docdir}/%{name}/examples/
-%{_docdir}/%{name}/html/
+%doc %dir %{_docdir}/%{name}/
+%doc %{_docdir}/%{name}/doctrees/
+%doc %{_docdir}/%{name}/examples/
+%doc %{_docdir}/%{name}/html/
%changelog
++++++ pyqtgraph-0.10.0.tar.gz -> pyqtgraph-0.11.1.tar.gz ++++++
++++ 120266 lines of diff (skipped)