From 44ab7fb8387c7fc9b1cbe364a3ce88d3e389905c48625a3f4785105b0104e3dc Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Sun, 18 Jul 2021 09:18:39 +0000 Subject: [PATCH 1/3] Accepting request 882288 from home:jayvdb:branches:KDE:Qt5 - Enable test suite, ignoring two extra test failures - Update to v5.15.2 OBS-URL: https://build.opensuse.org/request/show/882288 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=51 --- pyside-setup-opensource-src-5.15.1.tar.xz | 3 -- pyside-setup-opensource-src-5.15.2.tar.xz | 3 ++ python3-pyside2.changes | 45 +++++++++++++++++++++++ python3-pyside2.spec | 15 ++++++-- 4 files changed, 60 insertions(+), 6 deletions(-) delete mode 100644 pyside-setup-opensource-src-5.15.1.tar.xz create mode 100644 pyside-setup-opensource-src-5.15.2.tar.xz diff --git a/pyside-setup-opensource-src-5.15.1.tar.xz b/pyside-setup-opensource-src-5.15.1.tar.xz deleted file mode 100644 index 329d340..0000000 --- a/pyside-setup-opensource-src-5.15.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f175c1d8813257904cf0efeb58e44f68d53b9916f73adaf9ce19514c0271c3fa -size 3454052 diff --git a/pyside-setup-opensource-src-5.15.2.tar.xz b/pyside-setup-opensource-src-5.15.2.tar.xz new file mode 100644 index 0000000..7b84d31 --- /dev/null +++ b/pyside-setup-opensource-src-5.15.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b306504b0b8037079a8eab772ee774b9e877a2d84bab2dbefbe4fa6f83941418 +size 3472624 diff --git a/python3-pyside2.changes b/python3-pyside2.changes index 19332a5..e4b4517 100644 --- a/python3-pyside2.changes +++ b/python3-pyside2.changes @@ -14,6 +14,51 @@ Wed Apr 7 22:56:48 UTC 2021 - Dirk Müller - avoid repackaging the pkgconfig and cmake directories - they are provided by the filesystem package +------------------------------------------------------------------- +Tue Mar 30 11:01:31 UTC 2021 - John Vandenberg + +- Enable test suite, ignoring two extra test failures +- Update to v5.15.2 + * Projects generating bindings for Qt-based code no longer need to include + pyside2_global.h for the property and signal/slot annotations to work. + * [PYSIDE-487] Some missing enumerations and classes were added. + * [PYSIDE-644] QNetworkCookie was added to WebEngineCore. + * [PYSIDE-665] A crash when reimplementing QLayout.takeAt() was fixed. + * [PYSIDE-807] setup.py was rewritten to properly show options + the in command help. + * [PYSIDE-972] Launching PySide2 from paths with non-ASCII Latin1 + characters was fixed. + * [PYSIDE-1019] feature_select: Qt Properties are now represented as + Python properties. + * [PYSIDE-1070] A crash when overriding QUiLoader::createWidget() + in QUiLoader was fixed. + * [PYSIDE-1082] A crash when creating QMimeData from + Q(Plain)TextEdit::createMimeDataFromSelection() was fixed. + * [PYSIDE-1202] More classes from QtConcurrent were added. + * [PYSIDE-1224] The namespace QColorConstants was added. + * [PYSIDE-1326] Operators for QFlags on hidden top level namespace + are now generated. + * [PYSIDE-1354] Slots being invoked from the wrong thread were fixed. + * [PYSIDE-1381] The dependency of the QtQml module header on + internal header pysideqmlregistertype.h was removed. + * [PYSIDE-1385] Deprecated wheel.pep425tags imports were removed. + * [PYSIDE-1390] setup.py: The build_rst_docs command was added to + build rst documentation only + * [PYSIDE-1397] Functions taking a smart pointer now accept smart + pointers to base classes. + * [PYSIDE-1410] QAxBase::dynamicCall() was fixed. + * [PYSIDE-841] The documentation on modifications was restructured. + * [PYSIDE-904] An attribute for generating "using namespace" was added. + * [PYSIDE-1019] A way of specifying properties for non-Qt classes + in typesystem XML was added. + * [PYSIDE-1075] Functions from invisible namespaces are now generated + into their parent namespaces. + * [PYSIDE-1224] Variables in namespaces are now generated. + * [PYSIDE-1366] The order of overloads may now be specified to work + around problems with the order generated by the overload decisor. + * [PYSIDE-1388] Final classes with protected methods when disabling + the protected hack are now correctly generated. + ------------------------------------------------------------------- Tue Sep 15 06:23:38 UTC 2020 - Christophe Giboudeaux diff --git a/python3-pyside2.spec b/python3-pyside2.spec index d85c6bd..57861f1 100644 --- a/python3-pyside2.spec +++ b/python3-pyside2.spec @@ -16,7 +16,7 @@ # -%bcond_with tests +%bcond_without tests # QML imports created and used by examples %global __requires_exclude qmlimport\\((Charts|TextBalloonPlugin) @@ -25,7 +25,7 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools Name: python3-pyside2 -Version: 5.15.1 +Version: 5.15.2 Release: 0 Summary: Python bindings for Qt # Legal: @@ -99,6 +99,8 @@ BuildRequires: python3-Sphinx BuildRequires: python3-idna BuildRequires: python3-urllib3 BuildRequires: python3-wheel +BuildRequires: xvfb-run +BuildRequires: Mesa-dri %description The PySide2 project provides Python bindings for the Qt @@ -131,6 +133,11 @@ Examples and Tutorials for the PySide2 bindings for Qt. %if "%{_lib}" == "lib64" %patch0 -p1 %endif +# Test expects depth of 32 +printf '[QtGui::qdatastream_gui_operators_test]\n linux\n' >> build_history/blacklist.txt + +# bug_307 fails on armv7l only +printf '[QtWidgets::bug_307]\n linux\n' >> build_history/blacklist.txt %build export LLVM_INSTALL_DIR=%{_prefix} @@ -177,10 +184,12 @@ rm %{buildroot}%{_bindir}/*_tool.py rm -Rf %{buildroot}%{_datadir}/PySide2/typesystems/typesystem_*_win.xml %fdupes %{buildroot}%{_datadir}/PySide2/examples/ +%fdupes %{buildroot}%{_libdir}/cmake/ +%fdupes %{buildroot}%{python_sitearch}/shiboken2/ %check %if %{with tests} -%{mypython} testrunner.py test +xvfb-run -s "-screen 0 1600x1200x16 -ac +extension GLX +render -noreset" %{mypython} testrunner.py test %endif %post -p /sbin/ldconfig From 9de6fb5ef992990fd21ed11b06f0983443408736074ca5a58ac8efb37be8536d Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Sun, 18 Jul 2021 09:19:52 +0000 Subject: [PATCH 2/3] conditionally install xvfb and mesa OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=52 --- python3-pyside2.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python3-pyside2.spec b/python3-pyside2.spec index 57861f1..403e321 100644 --- a/python3-pyside2.spec +++ b/python3-pyside2.spec @@ -99,8 +99,10 @@ BuildRequires: python3-Sphinx BuildRequires: python3-idna BuildRequires: python3-urllib3 BuildRequires: python3-wheel +%if %{with tests} BuildRequires: xvfb-run BuildRequires: Mesa-dri +%endif %description The PySide2 project provides Python bindings for the Qt From 37fde23b46121cd8952c516ffbf002ee7cf4066ab7e544169e46a9037b363b7c Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Sun, 18 Jul 2021 09:21:23 +0000 Subject: [PATCH 3/3] Disable the bug_307 test only on platform where it fails OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python3-pyside2?expand=0&rev=53 --- python3-pyside2.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python3-pyside2.spec b/python3-pyside2.spec index 403e321..117a4b4 100644 --- a/python3-pyside2.spec +++ b/python3-pyside2.spec @@ -135,11 +135,14 @@ Examples and Tutorials for the PySide2 bindings for Qt. %if "%{_lib}" == "lib64" %patch0 -p1 %endif + # Test expects depth of 32 printf '[QtGui::qdatastream_gui_operators_test]\n linux\n' >> build_history/blacklist.txt # bug_307 fails on armv7l only +%ifarch %{arm} printf '[QtWidgets::bug_307]\n linux\n' >> build_history/blacklist.txt +%endif %build export LLVM_INSTALL_DIR=%{_prefix}