From 1e14221a840840b14c0fb938ac1bbed9f3c727ea54e183739cc318a87855ea39 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 30 Nov 2022 12:27:28 +0000 Subject: [PATCH] - Remove python_module macro definition - Update to 4.2.0: * Import the code sub-package from the correct location rather than the deprecated py package, restoring compatibility with pytest 7.2.0, where py was dropped. Thanks @The-Compiler for the PR. * Use pytest.hookimpl to configure hooks, avoiding a deprecation warning in pytest 7.2.0. Thanks @The-Compiler for the PR. * Now pytest-qt will check if any of the Qt libraries is already imported by the time the plugin loads, and use it if that is the case (#412). Thanks @eyllanesc for the PR. * Most custom pytest-qt exceptions can be accessed via qtbot (for example qtbot.TimeoutError), but it was not always explicit in the documentation that this is the recommended way to access those exceptions, instead of importing them from pytestqt.exceptions. This is now clarified in the documentation and examples, and an alias to ScreenshotError has been added to qtbot so it can be accessed in the same way (#460). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-qt?expand=0&rev=15 --- pytest-qt-4.1.0.tar.gz | 3 --- pytest-qt-4.2.0.tar.gz | 3 +++ python-pytest-qt.changes | 20 ++++++++++++++++++++ python-pytest-qt.spec | 3 +-- 4 files changed, 24 insertions(+), 5 deletions(-) delete mode 100644 pytest-qt-4.1.0.tar.gz create mode 100644 pytest-qt-4.2.0.tar.gz diff --git a/pytest-qt-4.1.0.tar.gz b/pytest-qt-4.1.0.tar.gz deleted file mode 100644 index e9c1319..0000000 --- a/pytest-qt-4.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:027f3d3f5dd04af0530d846cf50fb858f719f7e87c2e4a1c686abd4e0f72172a -size 119702 diff --git a/pytest-qt-4.2.0.tar.gz b/pytest-qt-4.2.0.tar.gz new file mode 100644 index 0000000..14a0b5e --- /dev/null +++ b/pytest-qt-4.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00a17b586dd530b6d7a9399923a40489ca4a9a309719011175f55dc6b5dc8f41 +size 120749 diff --git a/python-pytest-qt.changes b/python-pytest-qt.changes index e2edb63..ebb4e39 100644 --- a/python-pytest-qt.changes +++ b/python-pytest-qt.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Wed Nov 30 12:26:35 UTC 2022 - Daniel Garcia + +- Remove python_module macro definition +- Update to 4.2.0: + * Import the code sub-package from the correct location rather than the + deprecated py package, restoring compatibility with pytest 7.2.0, where py + was dropped. Thanks @The-Compiler for the PR. + * Use pytest.hookimpl to configure hooks, avoiding a deprecation warning in + pytest 7.2.0. Thanks @The-Compiler for the PR. + * Now pytest-qt will check if any of the Qt libraries is already imported by + the time the plugin loads, and use it if that is the case (#412). Thanks + @eyllanesc for the PR. + * Most custom pytest-qt exceptions can be accessed via qtbot (for example + qtbot.TimeoutError), but it was not always explicit in the documentation + that this is the recommended way to access those exceptions, instead of + importing them from pytestqt.exceptions. This is now clarified in the + documentation and examples, and an alias to ScreenshotError has been added + to qtbot so it can be accessed in the same way (#460). + ------------------------------------------------------------------- Fri Jul 1 19:06:12 UTC 2022 - Ben Greiner diff --git a/python-pytest-qt.spec b/python-pytest-qt.spec index aef5bed..2716673 100644 --- a/python-pytest-qt.spec +++ b/python-pytest-qt.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "" @@ -65,7 +64,7 @@ BuildConflicts: %{python_module qt5} %endif Name: python-pytest-qt%{psuffix} -Version: 4.1.0 +Version: 4.2.0 Release: 0 Summary: Pytest support for PyQt and PySide applications License: MIT