From ca6fa6db5730c115ffb82a2e154c97012f4f460493efc96722901b864d41fed4 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 28 Aug 2017 16:40:48 +0000 Subject: [PATCH] Accepting request 519186 from home:TheBlackCat:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/519186 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtPy?expand=0&rev=3 --- QtPy-1.2.1.tar.gz | 3 --- QtPy-1.3.1.tar.gz | 3 +++ python-QtPy.changes | 34 ++++++++++++++++++++++++++++++++++ python-QtPy.spec | 19 ++++++++++++++----- 4 files changed, 51 insertions(+), 8 deletions(-) delete mode 100644 QtPy-1.2.1.tar.gz create mode 100644 QtPy-1.3.1.tar.gz diff --git a/QtPy-1.2.1.tar.gz b/QtPy-1.2.1.tar.gz deleted file mode 100644 index 62d9950..0000000 --- a/QtPy-1.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5803ce31f50b24295e8e600b76cc91d7f2a3140a5a0d526d40226f9ec5e9097d -size 29210 diff --git a/QtPy-1.3.1.tar.gz b/QtPy-1.3.1.tar.gz new file mode 100644 index 0000000..51eb613 --- /dev/null +++ b/QtPy-1.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08af2525d59f9eb639946d5ed7a72b002103c5b7369c0ef0dd70ad2696845313 +size 25061 diff --git a/python-QtPy.changes b/python-QtPy.changes index ff51b03..511c954 100644 --- a/python-QtPy.changes +++ b/python-QtPy.changes @@ -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 diff --git a/python-QtPy.spec b/python-QtPy.spec index 223d8c0..91a201f 100644 --- a/python-QtPy.spec +++ b/python-QtPy.spec @@ -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