14
0

Accepting request 823051 from devel:languages:python

- Update to 0.7.2:
  * Update release instructions for the 0.x branch, by @ccordoba12
  * Do not call python directly in tests, by @scarabeusiv
  * Remove warning for Python 2.7, by @dalthviz (140)
  * al design icons to 4.9.95
  * t class to display icons as widgets
  * rowser
  * Fix file lock (125)
  * Update documentation and images (45)
  * Use Github as the only CI provider
  * Update MDI to 4.9.95
  * Add IconWidget to display icon as widget
  * Add an icon browser
  * Improve sponsors section in readme
  * Replace QtGui by QtWidgets in docs
  * Update MDI to 4.5.95
  * Update number of icons in Readme and docs
- Drop no-py2.patch, merged upstream.
- Add update-alternatives for new qta-browser binary

OBS-URL: https://build.opensuse.org/request/show/823051
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-QtAwesome?expand=0&rev=7
This commit is contained in:
2020-07-28 15:25:47 +00:00
committed by Git OBS Bridge
5 changed files with 38 additions and 29 deletions

View File

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

3
QtAwesome-0.7.2.tar.gz Normal file
View File

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

View File

@@ -1,21 +0,0 @@
Index: QtAwesome-0.6.0/qtawesome/tests/test_qtawesome.py
===================================================================
--- QtAwesome-0.6.0.orig/qtawesome/tests/test_qtawesome.py
+++ QtAwesome-0.6.0/qtawesome/tests/test_qtawesome.py
@@ -3,6 +3,7 @@ Tests for QtAwesome.
"""
# Standard library imports
import subprocess
+import sys
import collections
# Test Library imports
@@ -14,7 +15,7 @@ from qtawesome.iconic_font import Iconic
def test_segfault_import():
- output_number = subprocess.call('python -c "import qtawesome '
+ output_number = subprocess.call(sys.executable + ' -c "import qtawesome '
'; qtawesome.icon()"', shell=True)
assert output_number == 0

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Tue Jul 28 05:48:08 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.7.2:
* Update release instructions for the 0.x branch, by @ccordoba12
* Do not call python directly in tests, by @scarabeusiv
* Remove warning for Python 2.7, by @dalthviz (140)
* al design icons to 4.9.95
* t class to display icons as widgets
* rowser
* Fix file lock (125)
* Update documentation and images (45)
* Use Github as the only CI provider
* Update MDI to 4.9.95
* Add IconWidget to display icon as widget
* Add an icon browser
* Improve sponsors section in readme
* Replace QtGui by QtWidgets in docs
* Update MDI to 4.5.95
* Update number of icons in Readme and docs
- Drop no-py2.patch, merged upstream.
- Add update-alternatives for new qta-browser binary
-------------------------------------------------------------------
Thu Apr 23 12:03:50 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -18,14 +18,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-QtAwesome
Version: 0.6.0
Version: 0.7.2
Release: 0
Summary: FontAwesome icons in PyQt and PySide applications
License: MIT
Group: Development/Languages/Python
URL: https://github.com/spyder-ide/qtawesome
Source: https://files.pythonhosted.org/packages/source/Q/QtAwesome/QtAwesome-%{version}.tar.gz
Patch0: no-py2.patch
BuildRequires: %{python_module QtPy}
BuildRequires: %{python_module pytest-qt}
BuildRequires: %{python_module pytest}
@@ -37,6 +35,8 @@ BuildRequires: xvfb-run
Requires: python-QtPy
Requires: python-six
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@@ -48,7 +48,6 @@ library by Rick Blommers.
%prep
%setup -q -n QtAwesome-%{version}
%patch0 -p1
%build
%python_build
@@ -56,13 +55,21 @@ library by Rick Blommers.
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/qta-browser
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run py.test-%{$python_bin_suffix} -v qtawesome/tests
%post
%python_install_alternative qta-browser
%postun
%python_uninstall_alternative qta-browser
%files %{python_files}
%license LICENSE
%license LICENSE.txt
%doc CHANGELOG.md README.md
%{python_sitelib}/*
%python_alternative %{_bindir}/qta-browser
%changelog