From 17a11e55bca43e4caa01df51d61cacfdbb327e5deaba0a9689f0430f31a255fb Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 20 May 2023 10:55:42 +0000 Subject: [PATCH] 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 --- python-pytest-qt.changes | 7 +++++++ python-pytest-qt.spec | 15 +++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/python-pytest-qt.changes b/python-pytest-qt.changes index ebb4e39..f1dcfaf 100644 --- a/python-pytest-qt.changes +++ b/python-pytest-qt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat May 20 08:32:01 UTC 2023 - Ben Greiner + +- Skip failing exception tests with pyside6 + * gh#pytest-dev/pytest-qt#488 +- Use PEP517 + ------------------------------------------------------------------- Wed Nov 30 12:26:35 UTC 2022 - Daniel Garcia diff --git a/python-pytest-qt.spec b/python-pytest-qt.spec index 2716673..d47df64 100644 --- a/python-pytest-qt.spec +++ b/python-pytest-qt.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%define skip_python2 1 %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "" %define psuffix %{nil} @@ -56,6 +55,8 @@ BuildConflicts: %{python_module qt5} # pyside is for the primary python3 flavor only %define pythons python3 %define test_qtapi pyside6 +# invalid traceback gh#pytest-dev/pytest-qt#488 +%define testflavorargs --ignore tests/test_exceptions.py %bcond_without test BuildRequires: %{python_module pyside6} BuildConflicts: %{python_module PyQt6} @@ -72,8 +73,10 @@ 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 pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210608 @@ -110,12 +113,12 @@ dos2unix LICENSE %if ! %{with test} %build -%python_build +%pyproject_wheel %endif %if ! %{with test} %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -123,7 +126,7 @@ dos2unix LICENSE %check export QT_QPA_PLATFORM=offscreen export PYTEST_QT_API=%{test_qtapi} -%pytest +%pytest %{?testflavorargs} %endif %if ! %{with test} @@ -131,7 +134,7 @@ export PYTEST_QT_API=%{test_qtapi} %license LICENSE %doc CHANGELOG.rst README.rst %{python_sitelib}/pytestqt -%{python_sitelib}/pytest_qt-%{version}-py*.egg-info +%{python_sitelib}/pytest_qt-%{version}.dist-info %endif %changelog