Accepting request 863156 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/863156
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-QtPy?expand=0&rev=13
This commit is contained in:
2021-01-15 18:45:56 +00:00
committed by Git OBS Bridge
2 changed files with 35 additions and 3 deletions

View File

@@ -1,7 +1,30 @@
-------------------------------------------------------------------
Thu Jan 14 09:12:53 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
- 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)
-------------------------------------------------------------------
Wed Jan 13 15:55:35 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
- 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).
-------------------------------------------------------------------
Fri Aug 28 15:09:01 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- SIP is only used for PyQt4 which we don't use
- SIP is only used for PyQt4 which we don't use
-------------------------------------------------------------------
Mon Jul 29 07:57:44 UTC 2019 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-QtPy
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,11 +25,18 @@ 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
BuildRequires: %{python_module qt3d-qt5}
BuildRequires: %{python_module qt5}
BuildRequires: %{python_module qtdatavis3d-qt5}
BuildRequires: %{python_module qtwebengine-qt5}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-qt5
Recommends: python-qt3d-qt5
Recommends: python-qt5
Recommends: python-qtdatavis3d-qt5
Recommends: python-qtwebengine-qt5
Suggests: python-pyside2
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module mock}
@@ -52,6 +59,8 @@ Basically, you write your code as if you were using PyQt5 but import qt from
%setup -q -n QtPy-%{version}
sed -i 's/\r$//' LICENSE.txt
rm qtpy/tests/runtests.py
# Submitted to upstream at gh#spyder-ide/qtpy#228
mv qtpy/QtDatavisualization.py qtpy/QtDataVisualization.py
%build
%python_build