9 Commits

Author SHA256 Message Date
019fbf82a0 Accepting request 1308167 from devel:languages:python:pytest
- update to 4.5.0:
  * Added official support for Python 3.13.
  * Dropped support for EOL Python 3.8.
  * Dropped support for EOL PySide 2.
  * Type annotations are now provided. Note that because the Qt
    library used is defined at runtime, Qt classes are currently
    annotated as Any.
  * Fixed PySide6 exceptions / warnings about being unable to
    disconnect signals with qtbot.waitSignal (#552, #558).
  * Reduced the likelyhood of trouble when using
    qtbot.waitSignal(s) and qtbot.waitCallback where the
    signal/callback is emitted from a non-main thread. In theory,
    more problems remain and this isn't a proper fix yet. In
    practice, it seems impossible to provoke any problems in
    pytest-qt's testsuite.
- remove fix-pyside6-test.patch

OBS-URL: https://build.opensuse.org/request/show/1308167
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-qt?expand=0&rev=23
2025-09-30 15:43:27 +00:00
9657022bd9 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-qt?expand=0&rev=43 2025-09-30 09:20:54 +00:00
c21b40ec28 - update to 4.5.0:
* Added official support for Python 3.13.
  * Dropped support for EOL Python 3.8.
  * Dropped support for EOL PySide 2.
  * Type annotations are now provided. Note that because the Qt
    library used is defined at runtime, Qt classes are currently
    annotated as Any.
  * Fixed PySide6 exceptions / warnings about being unable to
    disconnect signals with qtbot.waitSignal (#552, #558).
  * Reduced the likelyhood of trouble when using
    qtbot.waitSignal(s) and qtbot.waitCallback where the
    signal/callback is emitted from a non-main thread. In theory,
    more problems remain and this isn't a proper fix yet. In
    practice, it seems impossible to provoke any problems in
    pytest-qt's testsuite.
- remove fix-pyside6-test.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-qt?expand=0&rev=42
2025-09-30 09:17:56 +00:00
e4991be1d0 Accepting request 1283039 from devel:languages:python:pytest
- Drop tests for python3-pyside2 and python-qt5 as Standard Qt 5
  support officially ends after 26th of may 2025.
  (boo#1243916)

OBS-URL: https://build.opensuse.org/request/show/1283039
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-qt?expand=0&rev=22
2025-06-05 18:35:05 +00:00
ba1340276f - Drop tests for python3-pyside2 and python-qt5 as Standard Qt 5
support officially ends after 26th of may 2025.
  (boo#1243916)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-qt?expand=0&rev=40
2025-06-05 10:23:35 +00:00
c33a49dc1a Accepting request 1249316 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1249316
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-qt?expand=0&rev=21
2025-03-01 18:16:37 +00:00
95ef5fad5d Accepting request 1248941 from home:alarrosa:branches:devel:languages:python:pytest
- Add patch to fix a test that fails when building with the latest
  pyside6 instead of skipping it:
  * fix-pyside6-test.patch

OBS-URL: https://build.opensuse.org/request/show/1248941
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-qt?expand=0&rev=38
2025-02-28 20:22:30 +00:00
e753bc3cf0 Accepting request 1248730 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1248730
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-qt?expand=0&rev=20
2025-02-26 16:25:07 +00:00
6b8d5b3058 Accepting request 1248722 from home:dgarcia:branches:devel:languages:python:pytest
- Skip test_qtinfo failing test with latest python3-pyside6

OBS-URL: https://build.opensuse.org/request/show/1248722
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-qt?expand=0&rev=36
2025-02-26 13:42:26 +00:00
5 changed files with 47 additions and 34 deletions

View File

@@ -1,6 +1,4 @@
<multibuild> <multibuild>
<flavor>test-pyqt5</flavor>
<flavor>test-pyqt6</flavor> <flavor>test-pyqt6</flavor>
<flavor>test-pyside2</flavor>
<flavor>test-pyside6</flavor> <flavor>test-pyside6</flavor>
</multibuild> </multibuild>

Binary file not shown.

3
pytest_qt-4.5.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:51620e01c488f065d2036425cbc1cbcf8a6972295105fd285321eb47e66a319f
size 128702

View File

@@ -1,3 +1,42 @@
-------------------------------------------------------------------
Tue Sep 30 09:17:30 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 4.5.0:
* Added official support for Python 3.13.
* Dropped support for EOL Python 3.8.
* Dropped support for EOL PySide 2.
* Type annotations are now provided. Note that because the Qt
library used is defined at runtime, Qt classes are currently
annotated as Any.
* Fixed PySide6 exceptions / warnings about being unable to
disconnect signals with qtbot.waitSignal (#552, #558).
* Reduced the likelyhood of trouble when using
qtbot.waitSignal(s) and qtbot.waitCallback where the
signal/callback is emitted from a non-main thread. In theory,
more problems remain and this isn't a proper fix yet. In
practice, it seems impossible to provoke any problems in
pytest-qt's testsuite.
- remove fix-pyside6-test.patch
-------------------------------------------------------------------
Thu Jun 5 10:11:48 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Drop tests for python3-pyside2 and python-qt5 as Standard Qt 5
support officially ends after 26th of may 2025.
(boo#1243916)
-------------------------------------------------------------------
Thu Feb 27 09:22:15 UTC 2025 - Antonio Larrosa <alarrosa@suse.com>
- Add patch to fix a test that fails when building with the latest
pyside6 instead of skipping it:
* fix-pyside6-test.patch
-------------------------------------------------------------------
Wed Feb 26 13:29:50 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Skip test_qtinfo failing test with latest python3-pyside6
------------------------------------------------------------------- -------------------------------------------------------------------
Wed May 29 10:45:04 UTC 2024 - Antonio Larrosa <alarrosa@suse.com> Wed May 29 10:45:04 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-qt # spec file for package python-pytest-qt
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -24,33 +24,12 @@
%define psuffix %{nil} %define psuffix %{nil}
%bcond_with test %bcond_with test
%endif %endif
%if "%{flavor}" == "test-pyqt5"
%define psuffix -%{flavor}
%define test_qtapi pyqt5
%bcond_without test
BuildRequires: %{python_module qt5}
BuildConflicts: %{python_module PyQt6}
BuildConflicts: %{python_module pyside2}
BuildConflicts: %{python_module pyside6}
%endif
%if "%{flavor}" == "test-pyqt6" %if "%{flavor}" == "test-pyqt6"
%define psuffix -%{flavor} %define psuffix -%{flavor}
%define test_qtapi pyqt6 %define test_qtapi pyqt6
%bcond_without test %bcond_without test
BuildRequires: %{python_module PyQt6} BuildRequires: %{python_module PyQt6}
BuildConflicts: %{python_module pyside2}
BuildConflicts: %{python_module pyside6} BuildConflicts: %{python_module pyside6}
BuildConflicts: %{python_module qt5}
%endif
%if "%{flavor}" == "test-pyside2"
%define psuffix -%{flavor}
%{!?sle15_python_module_pythons:%define pythons python3}
%define test_qtapi pyside2
%bcond_without test
BuildRequires: %{python_module pyside2}
BuildConflicts: %{python_module PyQt6}
BuildConflicts: %{python_module pyside6}
BuildConflicts: %{python_module qt5}
%endif %endif
%if "%{flavor}" == "test-pyside6" %if "%{flavor}" == "test-pyside6"
%define psuffix -%{flavor} %define psuffix -%{flavor}
@@ -61,17 +40,15 @@ BuildConflicts: %{python_module qt5}
%bcond_without test %bcond_without test
BuildRequires: %{python_module pyside6} BuildRequires: %{python_module pyside6}
BuildConflicts: %{python_module PyQt6} BuildConflicts: %{python_module PyQt6}
BuildConflicts: %{python_module pyside2}
BuildConflicts: %{python_module qt5}
%endif %endif
Name: python-pytest-qt%{psuffix} Name: python-pytest-qt%{psuffix}
Version: 4.4.0 Version: 4.5.0
Release: 0 Release: 0
Summary: Pytest support for PyQt and PySide applications Summary: Pytest support for PyQt and PySide applications
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/pytest-dev/pytest-qt URL: https://github.com/pytest-dev/pytest-qt
Source: https://files.pythonhosted.org/packages/source/p/pytest-qt/pytest-qt-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pytest-qt/pytest_qt-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
@@ -83,10 +60,9 @@ BuildRequires: python-rpm-macros >= 20210608
# https://github.com/pytest-dev/pytest-qt/issues/317 # https://github.com/pytest-dev/pytest-qt/issues/317
Requires: bitstream-vera-fonts Requires: bitstream-vera-fonts
Requires: python-pytest >= 3.0 Requires: python-pytest >= 3.0
Requires: python-typing-extensions
Suggests: python-PyQt6 Suggests: python-PyQt6
Suggests: python-pyside2
Suggests: python-pyside6 Suggests: python-pyside6
Suggests: python-qt5
BuildArch: noarch BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module pytest-qt = %{version}} BuildRequires: %{python_module pytest-qt = %{version}}
@@ -103,7 +79,7 @@ creation as needed and provides methods to simulate user interaction,
like key presses and mouse clicks. like key presses and mouse clicks.
%prep %prep
%setup -q -n pytest-qt-%{version} %autosetup -p1 -n pytest_qt-%{version}
dos2unix LICENSE dos2unix LICENSE
# https://github.com/pytest-dev/pytest-qt/pull/419#discussion_r1240198866 # https://github.com/pytest-dev/pytest-qt/pull/419#discussion_r1240198866
sed -i /xfail_strict/d setup.cfg sed -i /xfail_strict/d setup.cfg