- 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
This commit is contained in:
Daniel Garcia 2022-11-30 12:27:28 +00:00 committed by Git OBS Bridge
parent e74f83a471
commit 1e14221a84
4 changed files with 24 additions and 5 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:027f3d3f5dd04af0530d846cf50fb858f719f7e87c2e4a1c686abd4e0f72172a
size 119702

BIN
pytest-qt-4.2.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Wed Nov 30 12:26:35 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- 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 <code@bnavigator.de>

View File

@ -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