Accepting request 1142160 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1142160 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-qt?expand=0&rev=16
This commit is contained in:
commit
811a80576c
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 28 17:40:13 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Don't require any backend. The testing application should
|
||||||
|
specify their set explicitly.
|
||||||
|
- Test pyside on SLE15 python module
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 25 15:13:50 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
Thu Jan 25 15:13:50 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
|
# pyside is for one flavor only
|
||||||
|
%define pyside_python %{?sle15_python_module_pythons:%pythons}%{!?sle15_python_module_pythons:python3}
|
||||||
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == ""
|
%if "%{flavor}" == ""
|
||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
@ -42,8 +45,7 @@ BuildConflicts: %{python_module qt5}
|
|||||||
%endif
|
%endif
|
||||||
%if "%{flavor}" == "test-pyside2"
|
%if "%{flavor}" == "test-pyside2"
|
||||||
%define psuffix -%{flavor}
|
%define psuffix -%{flavor}
|
||||||
# pyside is for the primary python3 flavor only
|
%{!?sle15_python_module_pythons:%define pythons python3}
|
||||||
%define pythons python3
|
|
||||||
%define test_qtapi pyside2
|
%define test_qtapi pyside2
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
BuildRequires: %{python_module pyside2}
|
BuildRequires: %{python_module pyside2}
|
||||||
@ -53,8 +55,7 @@ BuildConflicts: %{python_module qt5}
|
|||||||
%endif
|
%endif
|
||||||
%if "%{flavor}" == "test-pyside6"
|
%if "%{flavor}" == "test-pyside6"
|
||||||
%define psuffix -%{flavor}
|
%define psuffix -%{flavor}
|
||||||
# pyside is for the primary python3 flavor only
|
%{!?sle15_python_module_pythons:%define pythons python3}
|
||||||
%define pythons python3
|
|
||||||
%define test_qtapi pyside6
|
%define test_qtapi pyside6
|
||||||
# invalid traceback gh#pytest-dev/pytest-qt#488
|
# invalid traceback gh#pytest-dev/pytest-qt#488
|
||||||
%define testflavorargs --ignore tests/test_exceptions.py
|
%define testflavorargs --ignore tests/test_exceptions.py
|
||||||
@ -89,11 +90,6 @@ Suggests: python-pyside2
|
|||||||
Suggests: python-pyside6
|
Suggests: python-pyside6
|
||||||
Suggests: python-qt5
|
Suggests: python-qt5
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
|
||||||
Requires: (python-qt5 or python-PyQt6 or python3-pyside2 or python3-pyside6)
|
|
||||||
%else
|
|
||||||
Requires: (python-qt5 or python-PyQt6)
|
|
||||||
%endif
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module pytest-qt = %{version}}
|
BuildRequires: %{python_module pytest-qt = %{version}}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user