15
0
forked from pool/python-QtPy

Accepting request 519187 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/519187
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-QtPy?expand=0&rev=2
This commit is contained in:
2017-08-29 09:46:28 +00:00
committed by Git OBS Bridge
4 changed files with 51 additions and 8 deletions

View File

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

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

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

View File

@@ -1,3 +1,37 @@
-------------------------------------------------------------------
Mon Aug 28 16:05:01 UTC 2017 - toddrme2178@gmail.com
- 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
-------------------------------------------------------------------
Fri Apr 28 01:58:21 UTC 2017 - toddrme2178@gmail.com

View File

@@ -15,11 +15,11 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%bcond_without tests
%bcond_without test
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-QtPy
Version: 1.2.1
Version: 1.3.1
Release: 0
License: MIT
Summary: Abstraction layer on top of Qt bindings
@@ -32,10 +32,13 @@ BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module qt5}
BuildRequires: %{python_module sip}
%if %{with test}
BuildRequires: %{python_module pytest}
%endif
Requires: python-qt5
Requires: python-sip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@@ -50,15 +53,21 @@ Basically, you write your code as if you were using PyQt5 but import qt from
%prep
%setup -q -n QtPy-%{version}
sed -i 's/\r$//' LICENSE.txt
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%{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
$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}
}
%if %{with tests}
%if %{with test}
%check
%python_exec setup.py test
%endif