Accepting request 1088030 from home:bnavigator:branches:devel:languages:python:pytest

- Skip failing exception tests with pyside6
  * gh#pytest-dev/pytest-qt#488
- Use PEP517

OBS-URL: https://build.opensuse.org/request/show/1088030
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-qt?expand=0&rev=17
This commit is contained in:
Matej Cepl 2023-05-20 10:55:42 +00:00 committed by Git OBS Bridge
parent 1e14221a84
commit 17a11e55bc
2 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat May 20 08:32:01 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Skip failing exception tests with pyside6
* gh#pytest-dev/pytest-qt#488
- Use PEP517
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 30 12:26:35 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com> Wed Nov 30 12:26:35 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file # spec file
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# 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
@ -16,7 +16,6 @@
# #
%define skip_python2 1
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "" %if "%{flavor}" == ""
%define psuffix %{nil} %define psuffix %{nil}
@ -56,6 +55,8 @@ BuildConflicts: %{python_module qt5}
# pyside is for the primary python3 flavor only # pyside is for the primary python3 flavor only
%define pythons python3 %define pythons python3
%define test_qtapi pyside6 %define test_qtapi pyside6
# invalid traceback gh#pytest-dev/pytest-qt#488
%define testflavorargs --ignore tests/test_exceptions.py
%bcond_without test %bcond_without test
BuildRequires: %{python_module pyside6} BuildRequires: %{python_module pyside6}
BuildConflicts: %{python_module PyQt6} BuildConflicts: %{python_module PyQt6}
@ -72,8 +73,10 @@ 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.7} BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: dos2unix BuildRequires: dos2unix
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210608 BuildRequires: python-rpm-macros >= 20210608
@ -110,12 +113,12 @@ dos2unix LICENSE
%if ! %{with test} %if ! %{with test}
%build %build
%python_build %pyproject_wheel
%endif %endif
%if ! %{with test} %if ! %{with test}
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif %endif
@ -123,7 +126,7 @@ dos2unix LICENSE
%check %check
export QT_QPA_PLATFORM=offscreen export QT_QPA_PLATFORM=offscreen
export PYTEST_QT_API=%{test_qtapi} export PYTEST_QT_API=%{test_qtapi}
%pytest %pytest %{?testflavorargs}
%endif %endif
%if ! %{with test} %if ! %{with test}
@ -131,7 +134,7 @@ export PYTEST_QT_API=%{test_qtapi}
%license LICENSE %license LICENSE
%doc CHANGELOG.rst README.rst %doc CHANGELOG.rst README.rst
%{python_sitelib}/pytestqt %{python_sitelib}/pytestqt
%{python_sitelib}/pytest_qt-%{version}-py*.egg-info %{python_sitelib}/pytest_qt-%{version}.dist-info
%endif %endif
%changelog %changelog