Accepting request 863063 from home:alarrosa:branches:devel:languages:python

- 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)

OBS-URL: https://build.opensuse.org/request/show/863063
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=26
This commit is contained in:
Matej Cepl 2021-01-14 16:47:25 +00:00 committed by Git OBS Bridge
parent 0784dc390b
commit c459eaf325
2 changed files with 25 additions and 2 deletions

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
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>

View File

@ -25,13 +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
Requires: python-qtwebengine-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}
@ -54,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