From e74f83a471bd224716ecfc2d3ebe40d6d9b04a35a7be49e418d8b39ebdef8dc7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 4 Jul 2022 21:43:28 +0000 Subject: [PATCH] Accepting request 986276 from home:bnavigator:branches:devel:languages:python:pytest - Update to version 4.1.0 * pytest-qt now requires Python 3.7+. * Improved PEP-8 aliases definition so they have a smaller call stack depth by one and better parameter suggestions in IDEs. (#383). Thanks @luziferius for the PR. * Updated model tester handling around hasChildren based on Qt's updates. * New qapp_cls fixture returning the QApplication class to use, thus making it easier to use a custom subclass without having to override the whole qapp fixture. Thanks @The-Compiler for the PR. * Updated model tester to track/verify in-flight changes based on Qt's updates. Thanks @The-Compiler for the PR. * New qtbot.screenshot() method which can be used to take a screenshot of the given widget. Thanks @The-Compiler for the PR. - Enable pyside6 test flavor OBS-URL: https://build.opensuse.org/request/show/986276 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-qt?expand=0&rev=13 --- _multibuild | 2 +- pytest-qt-4.0.2.tar.gz | 3 --- pytest-qt-4.1.0.tar.gz | 3 +++ python-pytest-qt.changes | 25 +++++++++++++++++++++++++ python-pytest-qt.spec | 8 ++++---- 5 files changed, 33 insertions(+), 8 deletions(-) delete mode 100644 pytest-qt-4.0.2.tar.gz create mode 100644 pytest-qt-4.1.0.tar.gz diff --git a/_multibuild b/_multibuild index b257b4c..e971a25 100644 --- a/_multibuild +++ b/_multibuild @@ -2,5 +2,5 @@ test-pyqt5 test-pyqt6 test-pyside2 - + test-pyside6 diff --git a/pytest-qt-4.0.2.tar.gz b/pytest-qt-4.0.2.tar.gz deleted file mode 100644 index bbedd53..0000000 --- a/pytest-qt-4.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dfc5240dec7eb43b76bcb5f9a87eecae6ef83592af49f3af5f1d5d093acaa93e -size 113466 diff --git a/pytest-qt-4.1.0.tar.gz b/pytest-qt-4.1.0.tar.gz new file mode 100644 index 0000000..e9c1319 --- /dev/null +++ b/pytest-qt-4.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:027f3d3f5dd04af0530d846cf50fb858f719f7e87c2e4a1c686abd4e0f72172a +size 119702 diff --git a/python-pytest-qt.changes b/python-pytest-qt.changes index 585e3e5..e2edb63 100644 --- a/python-pytest-qt.changes +++ b/python-pytest-qt.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Fri Jul 1 19:06:12 UTC 2022 - Ben Greiner + +- Update to version 4.1.0 + * pytest-qt now requires Python 3.7+. + * Improved PEP-8 aliases definition so they have a smaller call + stack depth by one and better parameter suggestions in IDEs. + (#383). Thanks @luziferius for the PR. + * Updated model tester handling around hasChildren based on Qt's + updates. + * New qapp_cls fixture returning the QApplication class to use, + thus making it easier to use a custom subclass without having + to override the whole qapp fixture. Thanks @The-Compiler for + the PR. + * Updated model tester to track/verify in-flight changes based on + Qt's updates. Thanks @The-Compiler for the PR. + * New qtbot.screenshot() method which can be used to take a + screenshot of the given widget. Thanks @The-Compiler for the + PR. + +------------------------------------------------------------------- +Thu Apr 21 13:13:18 UTC 2022 - Ben Greiner + +- Enable pyside6 test flavor + ------------------------------------------------------------------- Mon Jul 12 20:18:59 UTC 2021 - Ben Greiner diff --git a/python-pytest-qt.spec b/python-pytest-qt.spec index be9914b..aef5bed 100644 --- a/python-pytest-qt.spec +++ b/python-pytest-qt.spec @@ -1,7 +1,7 @@ # # spec file # -# 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 @@ -65,13 +65,14 @@ BuildConflicts: %{python_module qt5} %endif Name: python-pytest-qt%{psuffix} -Version: 4.0.2 +Version: 4.1.0 Release: 0 Summary: Pytest support for PyQt and PySide applications License: MIT Group: Development/Languages/Python URL: https://github.com/pytest-dev/pytest-qt Source: https://files.pythonhosted.org/packages/source/p/pytest-qt/pytest-qt-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: dos2unix @@ -91,9 +92,8 @@ Requires: (python-qt5 or python-PyQt6 or python3-pyside2 or python3-pyside Requires: (python-qt5 or python-PyQt6) %endif %if %{with test} -# https://github.com/pytest-dev/pytest-qt/issues/376 -BuildRequires: %{python_module pytest >= 4.5} BuildRequires: %{python_module pytest-qt = %{version}} +BuildRequires: %{python_module pytest} %endif %python_subpackages