Accepting request 682089 from devel:languages:python

- Update to 1.6.0:
  * Add support for QtQuickWidgets
  * Issue 178 - Error when import QtCore.version in PySide2

OBS-URL: https://build.opensuse.org/request/show/682089
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-QtPy?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2019-03-19 08:58:07 +00:00 committed by Git OBS Bridge
commit 98e195446f
4 changed files with 17 additions and 11 deletions

View File

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

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

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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Mar 6 10:25:51 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.6.0:
* Add support for QtQuickWidgets
* Issue 178 - Error when import QtCore.version in PySide2
-------------------------------------------------------------------
Tue Dec 4 12:53:28 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-QtPy
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,12 +18,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-QtPy
Version: 1.5.2
Version: 1.6.0
Release: 0
Summary: Abstraction layer on top of Qt bindings
License: MIT
Group: Development/Languages/Python
Url: https://github.com/spyder-ide/qtpy
URL: https://github.com/spyder-ide/qtpy
Source: https://files.pythonhosted.org/packages/source/Q/QtPy/QtPy-%{version}.tar.gz
BuildRequires: %{python_module qt5}
BuildRequires: %{python_module setuptools}
@ -31,14 +31,13 @@ BuildRequires: %{python_module sip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: xvfb-run
Requires: python-qt5
Requires: python-sip
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
# /SECTION
Requires: python-qt5
Requires: python-sip
BuildArch: noarch
%python_subpackages
%description
@ -61,7 +60,7 @@ sed -i 's/\r$//' LICENSE.txt
%install
%python_install
%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/qtpy/tests/runtests.py
sed -i "s|^#!/usr/bin/env python$|#!%__$python|" %{buildroot}%{$python_sitelib}/qtpy/tests/runtests.py
sed -i "s|^#!%{_bindir}/env python$|#!%__$python|" %{buildroot}%{$python_sitelib}/qtpy/tests/runtests.py
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/qtpy/tests/
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/qtpy/tests/
%fdupes %{buildroot}%{$python_sitelib}