SHA256
1
0
forked from pool/python-AnyQt

12 Commits

Author SHA256 Message Date
f8baa18324 Accepting request 1282604 from KDE:Qt:PyQt
remove pyside2, no pyside6 yet

OBS-URL: https://build.opensuse.org/request/show/1282604
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-AnyQt?expand=0&rev=14
2025-06-04 18:29:07 +00:00
8e9a5f3b44 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-AnyQt?expand=0&rev=15 2025-06-04 08:48:43 +00:00
817af5fda5 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-AnyQt?expand=0&rev=14 2025-06-04 08:47:23 +00:00
772cc1896f OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-AnyQt?expand=0&rev=13 2025-06-04 08:44:37 +00:00
d7a8836099 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-AnyQt?expand=0&rev=12 2025-06-04 08:39:26 +00:00
6f2610032c OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-AnyQt?expand=0&rev=11 2025-06-03 09:20:38 +00:00
eb302b26c2 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-AnyQt?expand=0&rev=10 2025-06-03 09:18:46 +00:00
9cef51d848 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-AnyQt?expand=0&rev=9 2025-06-03 09:18:10 +00:00
4fb9997a80 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-AnyQt?expand=0&rev=8 2025-06-03 09:17:32 +00:00
353d6e43a3 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-AnyQt?expand=0&rev=7 2025-06-03 09:11:19 +00:00
35f878f503 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-AnyQt?expand=0&rev=6 2025-06-03 09:10:36 +00:00
f3f1fcb800 - Drop pyside2 support (boo#1243916)
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-AnyQt?expand=0&rev=5
2025-06-03 09:09:08 +00:00
2 changed files with 37 additions and 17 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Jun 3 09:10:53 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Recommend PyQt6 for TW, add note about pyside in check section.
- Fix build for Leap <=16
-------------------------------------------------------------------
Mon Jun 2 09:57:06 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Drop pyside2 support (boo#1243916)
-------------------------------------------------------------------
Thu May 16 15:12:49 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -16,14 +16,14 @@
#
%if 0%{?suse_version} > 1500
%define pysidepython python3
%else
%{?sle15_python_module_pythons}
%define pysidepython %pythons
%if %{suse_version} > 1600
%bcond_with pyqt5
%bcond_without pyqt6
%else
%bcond_without pyqt5
%bcond_with pyqt6
%endif
%define pysidepython_sitelib %{expand:%%%{pysidepython}_sitelib}
%define pysidepython_version %{expand:%%%{pysidepython}_version}
Name: python-AnyQt
Version: 0.2.0
@@ -40,15 +40,21 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-qt5
Recommends: python-PyQt6
BuildArch: noarch
# Mirror with qt6-webengine
ExclusiveArch: aarch64 x86_64 riscv64
# SECTION test requirements
%if %{with pyqt5}
BuildRequires: %{python_module qt5}
BuildRequires: %{pysidepython}-pyside2
BuildRequires: %{python_module qtwebengine-qt5}
%endif
%if %{with pyqt6}
BuildRequires: %{python_module PyQt6}
BuildRequires: %{python_module PyQt6-WebEngine}
%endif
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-xvfb}
BuildRequires: %{python_module qtwebengine-qt5}
# /SECTION
%python_subpackages
@@ -81,16 +87,19 @@ rm AnyQt/QtMacExtras.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
for q in pyqt5 pyqt6; do
# we do not test pyside2 anymore
# TODO enable pyside6, which is in the module but maybe not up to date
qtset=""
%if %{with pyqt5}
qtset+=" pyqt5"
%endif
%if %{with pyqt6}
qtset+=" pyqt6"
%endif
for q in $qtset; do
export QT_API=$q
%pytest --ignore test/
done
# not ready for pyside6 yet
for q in pyside2; do
export QT_API=$q
export PYTHONPATH=%{buildroot}%{pysidepython_sitelib}
pytest-%{pysidepython_version} --ignore test/
done
# this doesn't return error codes, check output manually
unset QT_API
%python_exec test/test_import.py
@@ -99,6 +108,6 @@ unset QT_API
%doc README.txt
%license LICENSE.txt
%{python_sitelib}/AnyQt
%{python_sitelib}/AnyQt-%{version}.dist-info
%{python_sitelib}/[aA]ny[qQ]t-%{version}.dist-info
%changelog