Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyface for openSUSE:Factory checked in at 2022-01-13 23:21:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyface (Old) and /work/SRC/openSUSE:Factory/.python-pyface.new.1892 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyface" Thu Jan 13 23:21:26 2022 rev:8 rq:946135 version:7.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyface/python-pyface.changes 2021-04-24 23:10:04.175472563 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyface.new.1892/python-pyface.changes 2022-01-13 23:22:01.620070470 +0100 @@ -1,0 +2,9 @@ +Wed Jan 12 12:43:05 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Add pyface-pr958-qt5deprecation.patch for python310 test failures + * gh#enthought/pyface#958, gh#enthought/pyface#873 + * Remove wx test skip for Python 3.9 because the patch for qt + weirdly also fixes the previously encountered problems with + wx in python39 and python310 as well. + +------------------------------------------------------------------- New: ---- pyface-pr958-qt5deprecation.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyface.spec ++++++ --- /var/tmp/diff_new_pack.iQJVKK/_old 2022-01-13 23:22:02.204070851 +0100 +++ /var/tmp/diff_new_pack.iQJVKK/_new 2022-01-13 23:22:02.224070864 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pyface # -# 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 @@ -28,6 +28,8 @@ Group: Development/Libraries/Python URL: https://github.com/enthought/pyface Source: https://files.pythonhosted.org/packages/source/p/pyface/pyface-%{version}.tar.gz +# PATCH-FIX-UPSTREAM pyface-pr958-qt5deprecation.patch -- gh#/enthought/pyface#958 +Patch0: https://github.com/enthought/pyface/pull/958.patch#/pyface-pr958-qt5deprecation.patch BuildRequires: %{python_module Pygments} BuildRequires: %{python_module importlib-metadata} BuildRequires: %{python_module importlib-resources >= 1.1.0} @@ -63,7 +65,7 @@ Part of the Enthought Tool Suite (ETS). %prep -%setup -q -n pyface-%{version} +%autosetup -p1 -n pyface-%{version} %build %python_build @@ -81,13 +83,6 @@ %{python_expand mkdir tester_%{$python_bin_suffix} pushd tester_%{$python_bin_suffix} export PYTHONPATH=%{buildroot}%{$python_sitelib} -if [ "${python_flavor}" = "python39" ]; then - # segfault in pyface.ui.wx.data_view.tests.test_data_wrapper.TestDataWrapper - export EXCLUDE_TESTS="wx" -else - # unset for other flavors - unset EXCLUDE_TESTS -fi xvfb-run --server-args "-screen 0 1920x1080x24" $python -m unittest discover -v pyface popd # wait 2 seconds before the next xvfb-run ++++++ pyface-pr958-qt5deprecation.patch ++++++ >From d72d00b7c9eb9d316ec22d0e297ba2d98b1a789e Mon Sep 17 00:00:00 2001 From: Aaron Ayres <aay...@enthought.com> Date: Fri, 18 Jun 2021 11:05:50 -0500 Subject: [PATCH 1/2] fix a couple deprecation warnings in traitsUI test suite on python 3.8 with pyqt5 --- pyface/ui/qt4/console/console_widget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyface/ui/qt4/console/console_widget.py b/pyface/ui/qt4/console/console_widget.py index 5023660df..cfc1980cc 100644 --- a/pyface/ui/qt4/console/console_widget.py +++ b/pyface/ui/qt4/console/console_widget.py @@ -347,7 +347,7 @@ def sizeHint(self): if self.paging == "vsplit": height = height * 2 + splitwidth - return QtCore.QSize(width, height) + return QtCore.QSize(int(width), int(height)) # --------------------------------------------------------------------------- # 'ConsoleWidget' public interface @@ -1966,7 +1966,7 @@ def _adjust_scrollbars(self): step = viewport_height diff = maximum - scrollbar.maximum() scrollbar.setRange(0, maximum) - scrollbar.setPageStep(step) + scrollbar.setPageStep(int(step)) # Compensate for undesirable scrolling that occurs automatically due to # maximumBlockCount() text truncation. if diff < 0 and document.blockCount() == document.maximumBlockCount(): >From 61748e3a955082451b8ce4ddd5cc38cf7e71d518 Mon Sep 17 00:00:00 2001 From: Aaron Ayres <aay...@enthought.com> Date: Fri, 18 Jun 2021 11:27:18 -0500 Subject: [PATCH 2/2] use float not np.float to avoid deprecation warning --- pyface/data_view/data_models/tests/test_array_data_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyface/data_view/data_models/tests/test_array_data_model.py b/pyface/data_view/data_models/tests/test_array_data_model.py index 481d62cfd..8f5adb1d1 100644 --- a/pyface/data_view/data_models/tests/test_array_data_model.py +++ b/pyface/data_view/data_models/tests/test_array_data_model.py @@ -55,7 +55,7 @@ def test_no_data(self): model = ArrayDataModel(value_type=FloatValue()) self.assertEqual(model.data.ndim, 2) self.assertEqual(model.data.shape, (0, 0)) - self.assertEqual(model.data.dtype, np.float) + self.assertEqual(model.data.dtype, float) self.assertEqual(model.get_column_count(), 0) self.assertTrue(model.can_have_children(())) self.assertEqual(model.get_row_count(()), 0)