Accepting request 1113308 from home:bnavigator:branches:devel:languages:python
- Update to 2.4.0 * Add missing issue closed for v2.3.1 changelog entry by @dalthviz in #419 * Symmetrize path and location of QLibraryInfo by @StSav012 in #420 * Improve import modularity between QtGui, QtWidgets and QtOpenGL* related modules by @DaelonSuzuka in #387 * Make CI jobs much faster & less flaky w/Mamba, 1-pass solve & other tweaks by @CAM-Gerlach in #425 * Symmetrize QDateTime.toPython and toPyDateTime, etc. by @StSav012 in #421 * Use static calls of exec_ elsewhere where needed, and test them by @StSav012 in #422 * Enable more tests on CI by @Czaki in #434 * Add wrapers to fix argument name in QFileDialog get*methods by @Czaki in #433 * Rename utils.py to _utils.py to make it private by @StSav012 in #431 * Make exec() for PySide2 by @StSav012 in #438 * Replace custom implementation with loadUiType from PySide6 by @JaRoSchm in #440 * Update bindings upper bound version to 6.5 and ignore DeprecationWarning (CI) by @dalthviz in #443 * Make QMenu.addAction and QToolBar.addAction compatible with Qt6 arguments' order by @StSav012 in #437 * Restore Qt.ItemFlags access as Qt.ItemFlag alias (PyQt6) by @dalthviz in #444 * Add mappings for deprecated QDropEvent pos and posF methods by @dalthviz in #445 * Restore QtWidgets.QFileDialog.Options access as OBS-URL: https://build.opensuse.org/request/show/1113308 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=45
This commit is contained in:
parent
f8ad43692a
commit
836ecce728
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0603c9c83ccc035a4717a12908bf6bc6cb22509827ea2ec0e94c2da7c9ed57c5
|
||||
size 53980
|
3
QtPy-2.4.0.tar.gz
Normal file
3
QtPy-2.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:db2d508167aa6106781565c8da5c6f1487debacba33519cedc35fa8997d424d4
|
||||
size 65007
|
@ -1,3 +1,64 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 24 18:51:40 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 2.4.0
|
||||
* Add missing issue closed for v2.3.1 changelog entry by
|
||||
@dalthviz in #419
|
||||
* Symmetrize path and location of QLibraryInfo by @StSav012 in
|
||||
#420
|
||||
* Improve import modularity between QtGui, QtWidgets and
|
||||
QtOpenGL* related modules by @DaelonSuzuka in #387
|
||||
* Make CI jobs much faster & less flaky w/Mamba, 1-pass solve &
|
||||
other tweaks by @CAM-Gerlach in #425
|
||||
* Symmetrize QDateTime.toPython and toPyDateTime, etc. by
|
||||
@StSav012 in #421
|
||||
* Use static calls of exec_ elsewhere where needed, and test them
|
||||
by @StSav012 in #422
|
||||
* Enable more tests on CI by @Czaki in #434
|
||||
* Add wrapers to fix argument name in QFileDialog get*methods by
|
||||
@Czaki in #433
|
||||
* Rename utils.py to _utils.py to make it private by @StSav012 in
|
||||
#431
|
||||
* Make exec() for PySide2 by @StSav012 in #438
|
||||
* Replace custom implementation with loadUiType from PySide6 by
|
||||
@JaRoSchm in #440
|
||||
* Update bindings upper bound version to 6.5 and ignore
|
||||
DeprecationWarning (CI) by @dalthviz in #443
|
||||
* Make QMenu.addAction and QToolBar.addAction compatible with Qt6
|
||||
arguments' order by @StSav012 in #437
|
||||
* Restore Qt.ItemFlags access as Qt.ItemFlag alias (PyQt6) by
|
||||
@dalthviz in #444
|
||||
* Add mappings for deprecated QDropEvent pos and posF methods by
|
||||
@dalthviz in #445
|
||||
* Restore QtWidgets.QFileDialog.Options access as
|
||||
QtWidgets.QFileDialog.Option alias (PyQt6) by @dalthviz in #448
|
||||
* Add QEnum macro for PyQt bindings by @phil65 in #424
|
||||
* Improve enum to flags aliasing for PyQt6 and PySide6 > 6.3 and
|
||||
QFileDialog static methods kwarg compatibility by @dalthviz in
|
||||
#449
|
||||
* Update README with information on Pyright/Pylance integration
|
||||
and add CLI subcommand to help generate the related config by
|
||||
@wkrasnicki in #450
|
||||
* Test using PyQt extra packages by @dalthviz in #446
|
||||
- Release 2.3.1
|
||||
* Use raise from None when raising QtBindingsNotFoundError in
|
||||
init by @CAM-Gerlach in #391
|
||||
* Fix LibraryLocation -> LibraryPath renaming due to deprecation
|
||||
with Qt6 by @StSav012 in #393
|
||||
* Make warning usage consistant and refine messages by
|
||||
@CAM-Gerlach in #398
|
||||
* Don't make QTextStreamManipulator.exec_ on PyQt5/6 by @StSav012
|
||||
in #404
|
||||
* Remove patch that may be limited to PySide-5.11a1 only by
|
||||
@StSav012 in #407
|
||||
* Add mappings for QMouseEvent methods by @StSav012 in #408
|
||||
* Improve compatibility for QtWidgets and QtGui modules between
|
||||
Qt5 and Qt6 bindings by @StSav012 in #410
|
||||
* Make QtBindingsNotFoundError also inherit from ImportError by
|
||||
@cbrnr in #413
|
||||
* Add compatibility mappings between bindings for all children of
|
||||
QSinglePointEvent by @StSav012 in #417
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 10 09:43:32 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# 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
|
||||
@ -37,7 +37,7 @@ BuildArch: noarch
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-QtPy%{psuffix}
|
||||
Version: 2.3.0
|
||||
Version: 2.4.0
|
||||
Release: 0
|
||||
Summary: Abstraction layer on top of Qt bindings
|
||||
License: MIT
|
||||
@ -46,7 +46,9 @@ URL: https://github.com/spyder-ide/qtpy
|
||||
Source: https://files.pythonhosted.org/packages/source/Q/QtPy/QtPy-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module packaging}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-packaging
|
||||
@ -122,11 +124,13 @@ sed -i '/skipif.*not PYSIDE2/ d' qtpy/tests/test_qtcharts.py
|
||||
sed -i '/addopts/ {s/--cov=.*//; s/--color=yes//}' pytest.ini
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%if ! %{with test}
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if ! %{with test}
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/qtpy
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
@ -139,9 +143,11 @@ mkdir empty
|
||||
pushd empty
|
||||
# expects an unset FORCE_QT_API
|
||||
donttest_qt_api="test_qt_api_environ"
|
||||
# too wide in our setup (and upstream doesn't care: https://github.com/spyder-ide/qtpy/issues/371)
|
||||
donttest=" or test_qfontmetrics_width"
|
||||
%ifarch %{arm} aarch64
|
||||
# no QtOpenGL for these platforms
|
||||
donttest=" or test_qtopengl"
|
||||
donttest+=" or test_qtopengl"
|
||||
%endif
|
||||
%if %{with pyqt5}
|
||||
# no QtSensors in our PyQt5
|
||||
@ -167,8 +173,10 @@ export QT_API=pyside2 FORCE_QT_API=1
|
||||
pytest-%{python3_bin_suffix} -rwEfs -v ../qtpy -k "not ($donttest_qt_api $donttest)"
|
||||
%endif
|
||||
%if %{with pyside6}
|
||||
# no pyside6-uic
|
||||
donttest_pyside6=" or test_load_ui_type"
|
||||
export QT_API=pyside6 FORCE_QT_API=1
|
||||
pytest-%{python3_bin_suffix} -rwEfs -v ../qtpy -k "not ($donttest_qt_api $donttest)"
|
||||
pytest-%{python3_bin_suffix} -rwEfs -v ../qtpy -k "not ($donttest_qt_api $donttest $donttest_pyside6)"
|
||||
%endif
|
||||
# Default backend
|
||||
unset QT_API
|
||||
@ -189,7 +197,7 @@ popd
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/qtpy
|
||||
%exclude %{python_sitelib}/qtpy/tests
|
||||
%{python_sitelib}/QtPy-%{version}*-info
|
||||
%{python_sitelib}/QtPy-%{version}.dist-info
|
||||
%python_alternative %{_bindir}/qtpy
|
||||
|
||||
%files %{python_files test}
|
||||
|
Loading…
Reference in New Issue
Block a user