Accepting request 998092 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/998092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-QtPy?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2022-08-19 15:53:45 +00:00 committed by Git OBS Bridge
commit bff07b9f95
4 changed files with 35 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca8cd4217175186344299ee4c0f7e7adcf362c70852ba35b255a534077025c06
size 46470

3
QtPy-2.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d85f1b121f24a41ad26c55c446e66abdb7c528839f8c4f11f156ec4541903914
size 51573

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Thu Aug 18 13:23:53 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 2.2.0
* Add workaround for mode argument in QTextCursor.movePosition
(PySide6) by @rear1019 in #346
* Add missing imports and modules by @DaelonSuzuka in #344
* Restore WEBENGINE constant in QtWebEngineWidgets by @ccordoba12
in #350
* Add note to readme about use with Pyright by @CAM-Gerlach in
#353
* Add wrapper around sip/shiboken isdeleted/isvalid (compat.py)
by @zjp in #354
* Fix PyQt6 typing import for Qt by @tlambert03 in #358
* Add initial Methods, helpers and QtPy namespace specifics
section to the README by @dalthviz in #357
- Revert last change: Removing Python2 from build requirements of
libqt5-qtwebengine and crippling the testsuite of a package not
even in ring1 are orthogonal to each other.
- Enable PySide6 tests: Segfaults are gone.
-------------------------------------------------------------------
Mon Aug 8 12:12:04 UTC 2022 - Stephan Kulow <coolo@suse.com>
- Disable Qt5 bindings as they require python2 (for chromium within
qtwebengine) and we want to get rid of it in ring1
-------------------------------------------------------------------
Fri Jun 3 19:09:24 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -29,16 +29,15 @@ BuildArch: noarch
%bcond_without pyqt6
%ifnarch %power64 s390x
%bcond_without pyside2
%bcond_without pyside6
%else
%bcond_with pyside2
%endif
# unfortunately we get a segfault in the other backends when pyside6 is installed at the same time (!?)
# test locally: osc build -M test --with pyside6 --without pyside2 --without pyqt5 --without pyqt6 --define "pythons python3"
%bcond_with pyside6
%endif
%define skip_python2 1
Name: python-QtPy%{psuffix}
Version: 2.1.0
Version: 2.2.0
Release: 0
Summary: Abstraction layer on top of Qt bindings
License: MIT
@ -109,7 +108,7 @@ PyQt6 or PySide6.
sed -i 's/\r$//' LICENSE.txt *.md
# qtcharts is present in our PyQt
sed -i '/skipif.*not PYSIDE2/ d' qtpy/tests/test_qtcharts.py
sed -i '/addopts/ s/--cov=.*//' pytest.ini
sed -i '/addopts/ {s/--cov=.*//; s/--color=yes//}' pytest.ini
%build
%python_build
@ -146,7 +145,7 @@ export QT_API=pyqt5 FORCE_QT_API=1
%if %{with pyqt6}
%ifarch %{ix86} %{arm} %{power64} s390x
# QtWebEngine 6.3.0 ceased support for 32-bit
# No QtWebengine (PyQt5 or PyqQt6 on ppc and s390x
# No QtWebengine on ppc and s390x
donttest_pyqt6=" or test_qtwebengine"
%endif
export QT_API=pyqt6 FORCE_QT_API=1