Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-AnyQt for openSUSE:Factory checked in at 2023-06-21 22:40:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-AnyQt (Old) and /work/SRC/openSUSE:Factory/.python-AnyQt.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-AnyQt" Wed Jun 21 22:40:23 2023 rev:11 rq:1094379 version:0.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-AnyQt/python-AnyQt.changes 2022-09-16 13:32:44.185345389 +0200 +++ /work/SRC/openSUSE:Factory/.python-AnyQt.new.15902/python-AnyQt.changes 2023-06-21 22:41:16.462882192 +0200 @@ -1,0 +2,6 @@ +Wed Jun 21 13:40:10 UTC 2023 - Ben Greiner <c...@bnavigator.de> + +- Use PEP517 +- Activate more tests with more APIs + +------------------------------------------------------------------- Old: ---- AnyQt-0.2.0.tar.gz New: ---- AnyQt-0.2.0-gh.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-AnyQt.spec ++++++ --- /var/tmp/diff_new_pack.XJB3ry/_old 2023-06-21 22:41:17.066885827 +0200 +++ /var/tmp/diff_new_pack.XJB3ry/_new 2023-06-21 22:41:17.070885852 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-AnyQt # -# 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,8 +16,6 @@ # -%define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-AnyQt Version: 0.2.0 Release: 0 @@ -25,16 +23,22 @@ License: GPL-3.0-only Group: Development/Languages/Python URL: https://github.com/ales-erjavec/anyqt -Source: https://files.pythonhosted.org/packages/source/A/AnyQt/AnyQt-%{version}.tar.gz +Source: https://github.com/ales-erjavec/anyqt/archive/refs/tags/%{version}.tar.gz#/AnyQt-%{version}-gh.tar.gz # PATCH-FIX-SLE do-not-test-pyqt4.patch alarr...@suse.com -- Do not try testing the PyQt4 api Patch0: do-not-test-pyqt4.patch BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Recommends: python-qt5 BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module qt5} +BuildRequires: python3-pyside2 +BuildRequires: %{python_module PyQt6} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-xvfb} BuildRequires: %{python_module qtwebengine-qt5} # /SECTION %python_subpackages @@ -55,24 +59,37 @@ compatible API (some monkey patching is involved). %prep -%setup -q -n AnyQt-%{version} +%setup -q -n anyqt-%{version} %patch0 -p1 rm AnyQt/QtWinExtras.py rm AnyQt/QtMacExtras.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +for q in pyqt5 pyqt6; 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}%{python3_sitelib} + pytest-%{python3_version} --ignore test/ +done +# this doesn't return error codes, check output manually +unset QT_API %python_exec test/test_import.py %files %{python_files} %doc README.txt %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/AnyQt +%{python_sitelib}/AnyQt-%{version}.dist-info %changelog