python-QtPy/python-QtPy.spec

222 lines
6.6 KiB
RPMSpec
Raw Normal View History

#
# spec file
#
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
2023-09-25 09:25:17 +02:00
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
BuildArch: noarch
%endif
%bcond_without pyqt5
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
%bcond_without pyqt6
%ifnarch %power64 s390x
%bcond_without pyside2
%bcond_without pyside6
%else
%bcond_with pyside2
%bcond_with pyside6
%endif
# make sure using pytest-3.11 on Leap 15.6
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150500
%define python3_bin_suffix 3.11
%endif
%{?sle15_python_module_pythons}
Name: python-QtPy%{psuffix}
Accepting request 1127841 from home:ecsos:python - Update to 2.4.1 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #456 * PR: Fix bug when importing from PySide6.QtWebEngineCore/QtWebEngineWidgets (QWebEngineScrip vs QWebEngineScript) by @damonlynch in #455 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #459 - 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 - Add %{?sle15_python_module_pythons} - Update to 2.3.0 * PR 382 - PR: Add QtPdf and QtPdfWidgets, by @jschueller (381) * PR 380 - PR: Enable more qt6 tests, by @jschueller * PR 379 - PR: Raise error when no bindings are found at __init__, by @dalthviz (367) * PR 378 - PR: Try PySide6 on conda, by @jschueller * PR 376 - PR: Expand the CI test matrix with Qt/bindings 6.4 and fix tests with PyQt 5.9, by @CAM-Gerlach (375) * PR 374 - Don't re-assign Qt.MouseButton.MiddleButton on PySide6, by @astrofrog (373) * PR 372 - PR: Add Qsci to the imports, by @dgoeries (134) - Release 2.2.1 * PR 368 - PR: Add missing self for QtBindingsNotFoundError definition, by @dalthviz * PR 366 - PR: Aliased QUndoCommand, provided QLineEdit.getTextMargins() and QFontMetricsF.width(), by @random-developer (365) * PR 363 - PR: Fix typo in Qt flags in Readme, by @Czaki * PR 362 - PR: Fix various minor typos found with Codespell, by @luzpaz * PR 361 - PR: toPython helpers for QDate and QTime, by @bob-schumaker * PR 360 - CI: Ensure conda-forge channel usage when testing with conda, by @dalthviz - 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. - Disable Qt5 bindings as they require python2 (for chromium within qtwebengine) and we want to get rid of it in ring1 - Update to 2.1.0 * PR: Restrict broken Pytest versions to those not affected by the Pytest 7.0.0 import-mode=importlib behavior regression by @CAM-Gerlach in #324 * PR: Monkey patch pyside2uic UIParser.readResources for Python 3.9 compatibility by @n-elie in #325 * PR: Add missing QWebEngineScript support for PyQt5/6 and PySide2/6 by @EasyIsrael in #326 * PR: Add missing Qt.MidButton on PyQt6 by @dalthviz in #328 * PR: Drop support for Python 3.6 by @dalthviz in #329 * PR: Fix typo in constant name by @eyllanesc in #330 * PR: Use QFileDialog.Option to be compatiable with Qt6 by @frmdstryr in #331 * PR: Skip import of QOpenGLTime* on architectures where not available by @juliangilbey in #333 * PR: Remove QHeaderView patch related files by @dalthviz in #334 * PR: Fix uic skipped tests and PyQt 6.3.0 segfaulting tests by @dalthviz in #335 * PR: Add command line support for Mypy by @CAM-Gerlach in #337 * PR: Add workaround for mode argument in QTextCursor.movePosition (Pyside2) by @rear1019 in #341 * PR: Fix bug with environ handling by @larsoner in #340 * PR: Change bindings try order to be PyQt5, PySide2, PyQt6, PySide6 by @dalthviz in #343 - Disable PyQt6-WebEngine tests for 32-bit platforms * QtWebEngine 6.3.0 disabled 32-bit support * Needs multibuild flavor for platform specific conditions - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) - Update to 1.11.1 * Wrap pysideuic and pyside2uic imports since they could be unavailable * qtpy/tests/test_uic.py: skip if pyside2uic not installed - Release 1.11.0 * Add QtWebEngineWidgets.QWebEngineProfile for PyQt5 and PySide2 * Rename QtDatavisualization to use uppercase v * Add support for QStyleOptionFrameV3 from PyQt4 * Add QtWinExtras module * Add support for QtSerialPort add-on * Add support for the QtPositioning module * Add loadUiType implementation for PySide2 - Drop patch merged upstream gh#spyder-ide/QtPy#228 * 0001-Add-QtDatavisualization-alias-to-QtDataVisualization.patch - Update to 1.10.0 * PR 241 - PR: Update setup.py classifiers, by @dalthviz * PR 230 - PR: Fix imported modules logic if 'FORCE_QT_API' is empty, by @hiaselhans * PR 224 - PR: Support python 3.9 custom_widgets iteration, by @irrcombat (206) * PR 215 - PR: Slight typo fix, by @altendky * PR 214 - PR: Handle QtCore.SignalInstance/pyqtBoundSignal, by @altendky * PR 208 - PR: Move CI to Github Actions, by @goanpeca * PR 204 - PR: Add Python 3.9 compatibility for collections.abc module, by @tirkarthi * PR 199 - PR: Add support to PyQt4-sip 4.19.13, by @milanmatic - Update description - Clarify the requirements policy - Test Pyside2 and Qtcharts - Remove extra mock requirement - Minimize Recommends and Suggests, dep chain is too big (WebEngine, Qt3D) for the TW DVD - Add patch so the renaming of QtDataVisualization doesn't cause a problem on applications using the old name (gh#spyder-ide/qtpy#228): * 0001-Add-QtDatavisualization-alias-to-QtDataVisualization.patch - Add also BuildRequires for qt3d-qt5 and qtdatavis3d-qt5 so those tests are not skipped. - qtcharts-qt5 is not added because the python-qt5 package is always pulled in automatically and QtPy uses it by default while QtCharts is only available with PySide2. - Replace the Requires with Recommends since not even PyQt is really required (PySide2 can also be used with QtPy, and is now added as a Suggested package). - Rename QtDatavisualization.py to QtDataVisualization.py (uppercase v) to fix the test which was skipped because the imported module didn't exist and to keep the name consistent with both PyQt and PySide2 (gh#spyder-ide/qtpy#228) - BuildRequires (and Require) the webengine bindings so it uses them (which is the default) instead of using qtwebkit (which was used only as a fallback). - SIP is only used for PyQt4 which we don't use - version update to 1.9.0 * Add the FORCE_QT_API environment variable to keep using the Qt bindings selected with the QT_API variable and avoid switching to the currently imported bindings. This allows to have applications that import PySide and PyQt bindings at the same time (which is possible if both bindings are compiled for the same Qt version). * Errors in the Qt3D modules with PySide2 5.12.4+ and Python 2 * Binding Selection Logic * PR: Don't load Qt3D modules for buggy versions of PySide2 * PR: Add FORCE_QT_API environment variable - Update to 1.8.0 * Add support for several Qt 3D modules. - version update to 1.7.1 * Skip testing PyQt4 and PySide in Python 3.5 * Trivial maintenance tweaks * Avoid deprecated "from collections import MutableMapping" - Update to 1.7.0: * Add support for QtCharts. - Update to 1.6.0: * Add support for QtQuickWidgets * Issue 178 - Error when import QtCore.version in PySide2 - Remove superfluous devel dependency for noarch package - Update to Version 1.5.2 * Fix tests * Add support for PySide2.QtOpenGL - Update to Version 1.5.1 * Make PythonQtError inherit from RuntimeError to be easily catchable - Update to Version 1.5 + New features * Add support for QtLocation, QtMultimediaWidgets, QtQml, QtQuick, QtWebChannel, QtWebSockets and QtXmlPatterns. * Raise an error when trying to use the wrong combination of macOS and Qt versions. + Issues Closed * Issue 155 - Add warnings for Qt 5.9 in macOS 10.9 and Qt 5.11 and macOS 10.11 (PR 168) * Issue 153 - Shim PyQt5 ToPyDateTime for compatibility with PySide2 (PR 169) * Issue 123 - Wrap QWebChannel module (PR 157) + Pull Requests Merged * PR 169 - Shim PyQt5 QDateTime.toPyDateTime to QDateTime.toPython for compatibility with PySide2 (153) * PR 168 - Raise error when trying to use the wrong combination of macOS and Qt versions (155) * PR 167 - Migrate to CircleCI 2.0 * PR 163 - Add QtLocation * PR 162 - Update readme to remove funding appeal, harmonize with other readmes and minor fixes * PR 161 - Fix pyside2 wheels install * PR 157 - Add more Qt modules (123) - Update to version 1.4.2 + Issues Closed * Issue 150 - PySide2-5.11 alpha2 compatibility (PR 151) * Issue 144 - ValueError: API 'QString' has already been set to version 1 at line 141 in init.py file. (PR 152) + Pull Requests Merged * PR 152 - PR: Catch ValueError when trying to set sip API (144) * PR 151 - PR: Add a preventive change for PySide-5.11a2 (150) * PR 149 - PR: Use Qt official wheels to run tests for PySide2 * PR 148 - PR: Remove internal conda recipe - Update to Version 1.4.1 + New features * Show a warning when QT_API is changed automatically by qtpy. + Issues Closed * Raise a warning if QT_API value is changed automatically * On OSX qtpy applications are forcing discrete graphics + Pull Requests Merged * Add better compatibility with PySide2 * Add a warning if API is changed automatically * Avoid using PyQt5.Qt, which imports unneeded stuff and forces discrete GPU on OSX - Update to Version 1.4 (2018-03-11) + New features * Add support for QtHelp * Add support for QtSql * Use already imported bindings + Issues Closed * If one binding has already been imported, then qtpy should just use it * Add Wrapper for QtSql * Methods missing from QStandardPaths when QT_API=pyqt4 * Add Wrapper for QtHelp + Pull Requests Merged * Pin PyQt5 to 5.9.2 in CircleCI because 5.10 is generating segfaults * If a Qt binding is already imported, then use it. * Add QtSql wrapper (incl. test) * Changes to QDesktop split * Add QtHelp Wrapper - Update to Version 1.3.1 + Bugs fixed * Spurious cache files in PyPI tarball * Importing qtpy should not raise exceptions * No cache files included in the release tarball * Remove Quantified Code badge because the service doesn't exist anymore * Warn if QHeaderView deprecated methods are used - Update to Version 1.3 + New features * Add support for PySide2 * Add support for QtMultimedia * Add support for PyQt 4.6 + Bugs fixed * Typo in readme title * Update Readme for 1.3 release * Add tests for untested modules * Missing: QtOpenGL Module * QDesktopServices split into QDesktopServices and QStandardPaths * qInstallMessageHandler <-> qInstallMsgHandler * Feature Request: PySide2 support * Fix typo in Readme. * Add compatibility for the rename of qInstallMsgHandler to qInstallMessageHandler * Update Readme to reflect that we actually use the PySide2 layout * Update Readme to mention that we now support PySide2. * Add tests for Qtdesigner, QtNetwork, QtPrintSupport, QtSvg and QtTest. * Follow QStandardPaths location in Qt5 for PyQt4/PySide * Add a coveragerc file * Add support for PyQt 4.6 * Add a new QtOpenGL module * Add PySide2 support - Implement single-spec version. - Update to version 1.2.1 - Bugs fixed: Pull requests + PR 98 - PR: Don't use Travis to test macOS because it slows down the entire spyder-ide organization + PR 97 - PR: Update Appveyor badge in Readme because of moving to an org account + PR 94 - PR: Include test suite in sdist - Version 1.2 - New features: + Add support for QtMultimedia + Use relative imports so its vendored more easily - Bugs fixed: Issues + Issue 83 - Include core doc files in PyPi releases + Issue 78 - Request for a new bugfix release + Issue 75 - Missing copyright headers + Issue 67 - uic.loadUiType is missing + Issue 64 - QHeaderView.setSectionResizeMode + Issue 49 - QtMultimedia support Pull requests + PR 93 - Restore uic full namespace for PyQt5 and PyQt4 + PR 92 - Add missing copyright header in _patch/qheaderview.py + PR 91 - Use star imports in QtSvg again instead of direct ones (reverts PR #55) + PR 88 - PR: Add manifest + PR 74 - Move QStringListModel to QtCore + PR 71 - PR: Use relative imports so its vendored more easily + PR 65 - Introduce renamed methods of QHeaderView in PyQt4 and PySide + PR 59 - Don't install qtpy as a conda package in CircleCI + PR 58 - Remove reference to how qtpy is pronounced in README + PR 55 - PR: Add explicit imports to QtSvg module + PR 50 - Add support for QtMultimedia - Removed source file LICENSE.txt, fixed upstream. - Initial version OBS-URL: https://build.opensuse.org/request/show/1127841 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=47
2023-11-21 09:37:20 +01:00
Version: 2.4.1
Release: 0
Summary: Abstraction layer on top of Qt bindings
License: MIT
Group: Development/Languages/Python
URL: https://github.com/spyder-ide/qtpy
Source: https://files.pythonhosted.org/packages/source/Q/QtPy/QtPy-%{version}.tar.gz
# from https://github.com/spyder-ide/qtpy/pull/466
Patch1: qt6.6-deprecations.patch
BuildRequires: %{python_module base >= 3.7}
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
BuildRequires: %{python_module packaging}
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
2023-09-25 09:25:17 +02:00
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
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
2023-09-25 09:25:17 +02:00
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
Requires: python-packaging
Requires(post): update-alternatives
Requires(postun):update-alternatives
# Note: Don't add any Requires, Recommends, or Suggests for a
# specific backend here, because we need to minimize the space
# occupied on the Tumbleweed DVD. The application importing QtPy
# will have to know what backend to recommend and what extras to
# require (e.g. qtwebengine). Note that setup.py does not declare
# any requirements, in this regard either.
%if %{with test}
BuildRequires: %{python_module QtPy-test = %{version}}
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
BuildRequires: %{python_module pytest >= 6}
BuildRequires: %{python_module pytest-qt}
%if %{with pyqt5}
BuildRequires: %{python_module qt3d-qt5}
BuildRequires: %{python_module qt5}
BuildRequires: %{python_module qtcharts-qt5}
BuildRequires: %{python_module qtdatavis3d-qt5}
%ifnarch %{power64} s390x
BuildRequires: %{python_module qtwebengine-qt5}
%endif
%endif
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
%if %{with pyqt6}
BuildRequires: %{python_module PyQt6-3D}
BuildRequires: %{python_module PyQt6-Charts}
BuildRequires: %{python_module PyQt6-DataVisualization}
BuildRequires: %{python_module PyQt6}
BuildRequires: qt6-sql-sqlite
%ifnarch %{ix86} %{arm} %{power64} s390x
# QtWebEngine 6.3.0 ceased support for 32-bit
BuildRequires: %{python_module PyQt6-WebEngine}
%endif
%endif
%if %{with pyside2}
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150500
BuildRequires: %{python_module pyside2}
%else
BuildRequires: python3-pyside2
%endif
%endif
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
%if %{with pyside6}
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150500
BuildRequires: %{python_module pyside6}
%else
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
BuildRequires: python3-pyside6
%endif
BuildRequires: qt6-sql-sqlite
%endif
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
%endif
%python_subpackages
%description
QtPy is a small abstraction layer that lets you
write applications using a single API call to either PyQt or PySide.
It provides support for PyQt5, PyQt6, PySide6, PySide2 using the Qt5
layout (where the QtGui module has been split into QtGui and QtWidgets).
Basically, you can write your code as if you were using PyQt or PySide
directly, but import Qt modules from qtpy instead of PyQt5, PySide2,
PyQt6 or PySide6.
%package test
Summary: The qtpy.tests module
Requires: %{name} = %{version}
%description test
QtPy is a small abstraction layer that lets you
write applications using a single API call to either PyQt or PySide.
This subpackage separately provides the qtpy.tests module
in order to avoid stupid rpmlint errors.
%prep
%autosetup -p1 -n QtPy-%{version}
# wrong EOL encondig
sed -i 's/\r$//' LICENSE.txt *.md
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
# qtcharts is present in our PyQt
sed -i '/skipif.*not PYSIDE2/ d' qtpy/tests/test_qtcharts.py
sed -i '/addopts/ {s/--cov=.*//; s/--color=yes//}' pytest.ini
%build
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
2023-09-25 09:25:17 +02:00
%if ! %{with test}
%pyproject_wheel
%endif
%install
%if ! %{with test}
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
2023-09-25 09:25:17 +02:00
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/qtpy
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
export QT_HASH_SEED=0
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
export QT_QPA_PLATFORM="offscreen"
mkdir empty
pushd empty
# expects an unset FORCE_QT_API
donttest_qt_api="test_qt_api_environ"
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
2023-09-25 09:25:17 +02:00
# 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
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
2023-09-25 09:25:17 +02:00
donttest+=" or test_qtopengl"
%endif
%if %{with pyqt5}
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
# no QtSensors in our PyQt5
donttest_pyqt5=" or test_qtsensors"
%ifarch %{power64} s390x
# No QtWebengine on ppc and s390x
donttest_pyqt5="${donttest_pyqt5} or test_qtwebengine or test_qt_api"
%endif
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
export QT_API=pyqt5 FORCE_QT_API=1
%pytest -rwEfs -v ../qtpy -k "not ($donttest_qt_api $donttest $donttest_pyqt5)"
%endif
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
%if %{with pyqt6}
%ifarch %{ix86} %{arm} %{power64} s390x
# QtWebEngine 6.3.0 ceased support for 32-bit
# No QtWebengine on ppc and s390x
donttest_pyqt6=" or test_qtwebengine"
%endif
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
export QT_API=pyqt6 FORCE_QT_API=1
%pytest -rwEfs -v ../qtpy -k "not ($donttest_qt_api $donttest $donttest_pyqt6)"
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
%endif
%if %{with pyside2}
export QT_API=pyside2 FORCE_QT_API=1
pytest-%{python3_bin_suffix} -rwEfs -v ../qtpy -k "not ($donttest_qt_api $donttest)"
%endif
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
%if %{with pyside6}
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
2023-09-25 09:25:17 +02:00
# no pyside6-uic
donttest_pyside6=" or test_load_ui_type"
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
export QT_API=pyside6 FORCE_QT_API=1
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
2023-09-25 09:25:17 +02:00
pytest-%{python3_bin_suffix} -rwEfs -v ../qtpy -k "not ($donttest_qt_api $donttest $donttest_pyside6)"
Accepting request 968074 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.0.1 * PR: Add missing imports in QtOpenGL by @renefritze in #307 * PR: Add missing QtGui utility function to QtCore.Qt for PySide bindings by @dalthviz in #313 * PR: Add mapping for missing enum values aliases on QtCore.Qt by @dalthviz in #314 * PR: Fix mappings of instance method and slot alias (PyQt6 and PySide6) by @kumattau in #308 * PR: Add QtCharts alias for backward compatibility with 1.x by @dalthviz in #315 * PR: Promote enum aliases by @MatthieuDartiailh in #319 * PR: Add missing tests for aliased methods by @dalthviz in #317 - Release 2.0.0 * PR: Add support for PySide6 by @jschueller in #225 * PR: Add QShortcut class to QtWidgets module by @kumattau in #254 * PR: Remove Qt4 support by @jschueller in #252 * PR: Drop Python 2 by @dalthviz in #251 * PR: Fix fallback API by @benoit-pierre in #256 * PR: Add additional Qt modules and more support and tests for PyQt6/PySide6 by @jschueller in #255 * PR: Reorganize QtCharts module import and add missing skip validation for QtNetworkAuth test with PyQt6 by @dalthviz in #260 * PR: [PyQt6] Add exec_/print_, and add QOpenGLWidget/QShortcut to QtWidgets by @kumattau in #259 * PR: Remove accidentally-duplicated lines of code in QtCore by @kumattau in #263 * PR: [PyQt6] Add missing tabStopWidth/setTabStopWidth same as PySide6 by @kumattau in #264 * PR: Use modern packaging instead of deprecated distutils for version parse by @CAM-Gerlach in #266 * PR: Unify and cleanup CI infra, improve robustness and test Python 3.9 and PyQt6 by @CAM-Gerlach in #262 * PR: Fix and improve Coveralls reporting by @CAM-Gerlach in #268 * PR: Avoid future deprecations and decrease general technical debt by @CAM-Gerlach in #273 * PR: Fix regression in FORCE_QT_API behavior from merging PySide6 support by @tlambert03 in #276 * PR: Add back legacy PYQT4 and PYSIDE package-level constants for compat by @CAM-Gerlach in #279 * PR: Add Contributing Guide based on other Spyder projects by @CAM-Gerlach in #277 * PR: Update README sponsors section by @dalthviz in #282 * PR: Unscoped enums access for PyQt6 and other missing PyQt6 compatibility changes by @dalthviz in #271 * PR: Upgrade packaging to avoid legacy/deprecated behavior and follow PEP 517 by @CAM-Gerlach in #272 * PR: Map exec_ to their non-deprecated alternatives by @kumattau in #287 * PR: Add QtTextToSpeech Module by @kumattau in #291 * PR: Import all classes in QtTest module. by @kumattau in #290 * PR: Define Qt/binding versions at top level, fix warnings if versions not found, and fix test dir on CIs by @CAM-Gerlach in #292 * PR: Update gitignore, gitattributes, license, authors and security policy by @CAM-Gerlach in #278 * PR: Add minimum version check for Qt6 >=6.2.0 by @CAM-Gerlach in #294 * PR: Add support for Python 3.10 on CIs and packaging by @CAM-Gerlach in #296 * PR: Make QLibraryInfo.location work for PyQt6 by @stonebig in #298 * PR: 'width' needed for PyQt6 by @stonebig in #299 * PR: Update README.md adding a line for QtPy usefulness when migrating between Qt bindings/versions by @dalthviz in #301 * PR: Fix QFileSystemModel for PyQt6 by @almarklein in #303 - Release 1.11.3 * PR: Catch PythonQtError when trying to do alias for QtDataVisualization and dev version correction by @dalthviz in #281 * PR: Add a warning for developers still running legacy Qt4-based APIs by @CAM-Gerlach in #283 * PR: Import Callable and MutableMapping in py3compat for Python 2 compat by @davvid in #285 * PR: Add warning for deprecated/EoL Qt5 & PyQt5/PySide2 versions to fix #284 by @CAM-Gerlach in #289 * PR: Update RELEASE.md for 1.x version by @dalthviz in #293 - Release 1.11.2 * Issue 248 - Missing QtDataVisualization (PR 249 by @dalthviz) OBS-URL: https://build.opensuse.org/request/show/968074 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=33
2022-04-10 23:49:55 +02:00
%endif
# Default backend
unset QT_API
unset FORCE_QT_API
%pytest -rwEfs -vvv ../qtpy -k "not (dummyprefix $donttest $donttest_pyqt5)"
popd
%endif
%post
%python_install_alternative qtpy
%postun
%python_uninstall_alternative qtpy
%if ! %{with test}
%files %{python_files}
%doc AUTHORS.md CHANGELOG.md README.md
%license LICENSE.txt
%{python_sitelib}/qtpy
%exclude %{python_sitelib}/qtpy/tests
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
2023-09-25 09:25:17 +02:00
%{python_sitelib}/QtPy-%{version}.dist-info
%python_alternative %{_bindir}/qtpy
%files %{python_files test}
%license LICENSE.txt
%{python_sitelib}/qtpy/tests
%endif
%changelog